[modules] Use DeclContext::equals rather than == on DeclContext* when
determining whether a declaration is out of line, instead of assuming that the semantic and lexical DeclContext will be the same declaration whenever they're the same entity. This fixes behavior of declarations within merged classes and enums. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217008 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclBase.h 3 additions, 3 deletionsinclude/clang/AST/DeclBase.h
- lib/AST/Decl.cpp 5 additions, 0 deletionslib/AST/Decl.cpp
- test/Modules/Inputs/templates-left.h 4 additions, 0 deletionstest/Modules/Inputs/templates-left.h
- test/Modules/Inputs/templates-right.h 4 additions, 0 deletionstest/Modules/Inputs/templates-right.h
- test/Modules/Inputs/templates-top.h 4 additions, 0 deletionstest/Modules/Inputs/templates-top.h
- test/Modules/templates.mm 19 additions, 4 deletionstest/Modules/templates.mm
Loading
Please register or sign in to comment