From f3d587ea7cade0d3ca857f88382031c6113c58fc Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 4 Dec 2012 07:27:05 +0000 Subject: Refactor recording the preprocessor conditional directive regions out of PreprocessingRecord and into its own class, PPConditionalDirectiveRecord. Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord without needing a PreprocessingRecord. llvm-svn: 169229 --- clang/lib/Lex/Preprocessor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/lib/Lex/Preprocessor.cpp') diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 9488584..b5fb89f 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -765,11 +765,10 @@ CommentHandler::~CommentHandler() { } CodeCompletionHandler::~CodeCompletionHandler() { } -void Preprocessor::createPreprocessingRecord(bool RecordConditionalDirectives) { +void Preprocessor::createPreprocessingRecord() { if (Record) return; - Record = new PreprocessingRecord(getSourceManager(), - RecordConditionalDirectives); + Record = new PreprocessingRecord(getSourceManager()); addPPCallbacks(Record); } -- cgit v1.1