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
This commit is contained in:
Argyrios Kyrtzidis
2012-02-25 02:41:16 +00:00
parent ef31f376bb
commit 335c5a42e9
14 changed files with 18 additions and 95 deletions

View File

@@ -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);
}