Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/AST/ASTImporter.cpp | ||
---|---|---|
2549 | Why don't we need to call the setRangeEnd() when e.g. we create a CXXMethodDecl or a CXXConversionDecl? Couldn't we just call this after all these branches (at line 2587)? |
Comment Actions
Hello Rafael.
This change is good, just some cleanup is needed.
lib/AST/ASTImporter.cpp | ||
---|---|---|
2549 | I guess the reason is that they take LocEnd as ctor arguments. However, I think that having a single point is better. |
Comment Actions
Alright, but then I would suggest to pass an invalid loc to the constructors instead to make it more explicit and save a map lookup in the import function.
Why don't we need to call the setRangeEnd() when e.g. we create a CXXMethodDecl or a CXXConversionDecl? Couldn't we just call this after all these branches (at line 2587)?