-
- Downloads
Fix/Improve SourceRange of explicitly defaulted members
When adding the implicit compound statement (required for Codegen?), the end location was previously overridden by the start location, probably based on the assumptions: * The location of the compound statement should be the member's location * The compound statement if present is the last element of a FunctionDecl This patch changes the location of the compound statement to the member's end location. Code review: http://reviews.llvm.org/D4175 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211344 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaDeclCXX.cpp 25 additions, 12 deletionslib/Sema/SemaDeclCXX.cpp
- test/Analysis/inlining/path-notes.cpp 5 additions, 5 deletionstest/Analysis/inlining/path-notes.cpp
- test/Misc/ast-dump-decl.cpp 25 additions, 0 deletionstest/Misc/ast-dump-decl.cpp
- test/SemaTemplate/instantiate-default-assignment-operator.cpp 1 addition, 1 deletion.../SemaTemplate/instantiate-default-assignment-operator.cpp
Loading
Please register or sign in to comment