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