Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Index/IndexTypeSourceInfo.cpp | ||
---|---|---|
168 | I don't see how, given that WalkUpFromTemplateSpecializationTypeLoc()needs to be called with Relations containing RelationIsBaseOf, while TraverseTemplateArgumentLoc() needs to be called with Relations empty. |
clang/lib/Index/IndexTypeSourceInfo.cpp | ||
---|---|---|
168 | you're right. I misthought the above 4 lines are exactly the same as the one in RAV. | |
175 | if something bad happens (TraverseTemplateArgumentLoc returns false), we will not restore the Relations, I think we need a RAII pattern (llvm::make_scope_exit) to restore the Relations. |
nit: this could be simplified by calling the base::TraverseTemplateSpecializationTypeLoc