Skip to content

Commit 7f5892f

Browse files
committed
Ignore conflicts with decls that are not generated
1 parent 9621e88 commit 7f5892f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Generator/Passes/RenamePass.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ where typedefDecl.Type.Desugar() is FunctionType
194194
declarations.AddRange(@class.TemplateParameters);
195195
}
196196

197+
declarations.RemoveAll(d => !d.IsGenerated);
198+
197199
var existing = declarations.Find(d => d != decl && d.Name == newName);
198200
if (existing != null)
199201
return CheckExisting(decl, existing);

0 commit comments

Comments
 (0)