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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user