diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-25 02:41:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-25 02:41:16 +0000 |
commit | 335c5a42e9cfa70436bce30a6867cb722cac339c (patch) | |
tree | 2997d3c3e38d4ef6959250e95ceeff79713fb470 /clang/lib/Lex/Preprocessor.cpp | |
parent | ef31f376bb7f16f010db30359740a810c2681819 (diff) | |
download | bcm5719-llvm-335c5a42e9cfa70436bce30a6867cb722cac339c.tar.gz bcm5719-llvm-335c5a42e9cfa70436bce30a6867cb722cac339c.zip |
Don't record nested macro expansions in the preprocessing record,
it can only bring pain when dealing with preprocessor abuse (see: boost).
rdar://10898986
llvm-svn: 151427
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 75ab89d4d9b..96dfe360069 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -654,12 +654,10 @@ CommentHandler::~CommentHandler() { } CodeCompletionHandler::~CodeCompletionHandler() { } -void Preprocessor::createPreprocessingRecord( - bool IncludeNestedMacroExpansions) { +void Preprocessor::createPreprocessingRecord() { if (Record) return; - Record = new PreprocessingRecord(getSourceManager(), - IncludeNestedMacroExpansions); + Record = new PreprocessingRecord(getSourceManager()); addPPCallbacks(Record); } |