]> granicus.if.org Git - clang/commit
Introduce a new libclang parsing flag,
authorDouglas Gregor <dgregor@apple.com>
Fri, 6 May 2011 16:33:08 +0000 (16:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 6 May 2011 16:33:08 +0000 (16:33 +0000)
commitdca8ee8b7bc86076916a3a80f553f7a4e98c14af
tree0303bfa98d1f2d6aa725a8ae2dc771071c1ba685
parent54ec6c59d8b2e529fc3f07ae97415721f394ad92
Introduce a new libclang parsing flag,
CXTranslationUnit_NestedMacroInstantiations, which indicates whether
we want to see "nested" macro instantiations (e.g., those that occur
inside other macro instantiations) within the detailed preprocessing
record. Many clients (e.g., those that only care about visible tokens)
don't care about this information, and in code that uses preprocessor
metaprogramming, this information can have a very high cost.

Addresses <rdar://problem/9389320>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130990 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang-c/Index.h
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/PreprocessorOptions.h
include/clang/Lex/PreprocessingRecord.h
include/clang/Lex/Preprocessor.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Lex/PreprocessingRecord.cpp
lib/Lex/Preprocessor.cpp
lib/Serialization/ASTReader.cpp
test/Index/nested-macro-instantiations.cpp [new file with mode: 0644]
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp