fix function ptr arg names
This commit is contained in:
@@ -12,7 +12,7 @@ static class FileMatcher
|
||||
Runtime.Assert(Directory.Exists(directory), scope $"No such directory {directory}");
|
||||
void Dir(StringView dir)
|
||||
{
|
||||
for (let element in Directory.Enumerate(dir))
|
||||
dir: for (let element in Directory.Enumerate(dir))
|
||||
{
|
||||
let path = element.GetFilePath(..scope .());
|
||||
path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
|
||||
@@ -23,8 +23,15 @@ static class FileMatcher
|
||||
}
|
||||
let relpath = Path.GetRelativePath(path, directory, ..scope .());
|
||||
for (let pattern in patterns)
|
||||
if (IsMatch(pattern, relpath))
|
||||
{
|
||||
if (!pattern.StartsWith('^') && !pattern.StartsWith('!')) continue;
|
||||
if (IsMatch(pattern[1...], relpath))
|
||||
continue dir;
|
||||
}
|
||||
for (let pattern in patterns)
|
||||
{
|
||||
if (pattern.StartsWith('^') || pattern.StartsWith('!')) continue;
|
||||
if (!IsMatch(pattern, relpath)) continue;
|
||||
callback(relpath);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -793,7 +793,7 @@ abstract class Cpp2BeefGenerator
|
||||
{
|
||||
if (Clang.GetTokenKind(last) != .Identifier) break;
|
||||
str.Append(' ');
|
||||
str.Append(GetTokenSpelling!(last));
|
||||
Compiler.Identifier.GetSourceName(GetTokenSpelling!(last), str);
|
||||
break;
|
||||
}
|
||||
last = token;
|
||||
|
||||
Reference in New Issue
Block a user