]> granicus.if.org Git - clang/commit
[modules] Stop trying to fake up a linear MacroDirective history.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 29 Apr 2015 23:20:19 +0000 (23:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 29 Apr 2015 23:20:19 +0000 (23:20 +0000)
commit1f468121f536d0087a5e64aa9fa7b2d4800fb3f0
tree68511be04fca093b48365f08d7bad8235fa67864
parentf6dfb10742fe2954dc75d04a29bbf14150ab883a
[modules] Stop trying to fake up a linear MacroDirective history.

Modules builds fundamentally have a non-linear macro history. In the interest
of better source fidelity, represent the macro definition information
faithfully: we have a linear macro directive history within each module, and at
any point we have a unique "latest" local macro directive and a collection of
visible imported directives. This also removes the attendent complexity of
attempting to create a correct MacroDirective history (which we got wrong
in the general case).

No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236176 91177308-0d34-0410-b5e6-96231b3b80d8
31 files changed:
include/clang/AST/NSAPI.h
include/clang/Basic/IdentifierTable.h
include/clang/Lex/HeaderSearch.h
include/clang/Lex/Preprocessor.h
include/clang/Serialization/ASTReader.h
lib/ARCMigrate/ObjCMT.cpp
lib/ARCMigrate/TransAPIUses.cpp
lib/ARCMigrate/TransRetainReleaseDealloc.cpp
lib/ARCMigrate/TransUnusedInitDelegate.cpp
lib/ARCMigrate/Transforms.cpp
lib/ARCMigrate/Transforms.h
lib/AST/NSAPI.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/MacroArgs.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPExpressions.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Lex/Pragma.cpp
lib/Lex/Preprocessor.cpp
lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaFixItUtils.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
test/Index/complete-macros.c
test/Modules/macros.c
tools/libclang/CIndex.cpp