clang-tidy checks frequently use source ranges of functions.
The source range of constructors and destructors in template instantiations
is currently a single token.
The factory method for constructors and destructors does not allow the
end source location to be specified.
Set end location manually after creating instantiation.
Details
Details
- Reviewers
aaron.ballman arphaman rsmith - Commits
- rG57ae857548bd: [Sema] Set range end of constructors and destructors in template instantiations
rC288025: [Sema] Set range end of constructors and destructors in template instantiations
rL288025: [Sema] Set range end of constructors and destructors in template instantiations
Diff Detail
Diff Detail
- Build Status
Buildable 1406 Build 1406: arc lint + arc unit
Event Timeline
Comment Actions
Is it possible to add a test for this change? Maybe you could dump the AST and check if the range is the one that you would expect (See test/Misc/ast-dump-decl.cpp for an example).