fix function ptr arg names

This commit is contained in:
Rune
2026-02-23 15:22:55 +01:00
parent 806f27381a
commit 3590478b20
2 changed files with 14 additions and 7 deletions

View File

@@ -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,8 +23,15 @@ 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;
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); callback(relpath);
break; break;
} }

View File

@@ -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;