If a macro has been #undef'd in a precompiled header, we still need to
write out the macro history for that macro. Similarly, we need to cope with reading a macro definition that has been #undef'd. Take advantage of this new ability so that global code-completion results can refer to #undef'd macros, rather than losing them entirely. For multiply defined/#undef'd macros, we will still get the wrong result, but it's better than getting no result. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165502 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/IdentifierTable.h 3 additions, 0 deletionsinclude/clang/Basic/IdentifierTable.h
- lib/Sema/SemaCodeComplete.cpp 12 additions, 14 deletionslib/Sema/SemaCodeComplete.cpp
- lib/Serialization/ASTReader.cpp 2 additions, 0 deletionslib/Serialization/ASTReader.cpp
- lib/Serialization/ASTWriter.cpp 2 additions, 3 deletionslib/Serialization/ASTWriter.cpp
- test/Index/complete-macros.c 3 additions, 2 deletionstest/Index/complete-macros.c
Loading
Please register or sign in to comment