We may try and re-import an EnumDecl while trying to complete it in IsStructuralMatch(...) specialization for EnumDecl. This change mirrors a similar fix for the specialization for RecordDecl.
Details
Details
- Reviewers
martong teemperor friss a_sidorin - Commits
- rGe5094d6d3d29: [ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re…
rC357100: [ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re…
rL357100: [ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/AST/ASTImporter.cpp | ||
---|---|---|
1951 ↗ | (On Diff #192354) | if (Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum)) if (auto *ToOriginEnum = dyn_cast<EnumDecl>(ToOrigin)) ToEnum = ToOriginEnum; |
lib/AST/ASTImporter.cpp | ||
---|---|---|
1951 ↗ | (On Diff #192354) | I normally just match the local style but this is indeed much better style. |
Comment Actions
Post-LGTM with some stylish nits.
cfe/trunk/lib/AST/ASTImporter.cpp | ||
---|---|---|
1950 | completin_g_; also, comments are required to be ended with dot. |
completin_g_; also, comments are required to be ended with dot.