When the SearchName is already calculated we should use that for the lookup.
That is why the check for a found TypedefNameDecl can be relevant in the for loop and we (probably) have to iterate over fewer decls.
I havent added test cases because it does not produce a bug since in the isStrucuralMatch function calls to the StructuralEquivalenceContext::Finish() function and in case of unnamed decls it checks for TypeDefName and returns false (without any warning message).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good. Thank you!
Could you try to write a test using the fact that new code covers typedefs for anonymous structures?