diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-04 07:27:05 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-04 07:27:05 +0000 |
commit | 37ed12720a35b7bfa1c4de73ad6f1c6c1c88ee17 (patch) | |
tree | bba1cb7716cd13f295e22172dd4ca239d62fae54 /lib/Edit/Commit.cpp | |
parent | df1059cac42d613547d86b4e44c5e364bfc03073 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Edit/Commit.cpp')
-rw-r--r-- | lib/Edit/Commit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Edit/Commit.cpp b/lib/Edit/Commit.cpp index 41c72e42e6..3a9719ada0 100644 --- a/lib/Edit/Commit.cpp +++ b/lib/Edit/Commit.cpp @@ -10,7 +10,7 @@ #include "clang/Edit/Commit.h" #include "clang/Edit/EditedSource.h" #include "clang/Lex/Lexer.h" -#include "clang/Lex/PreprocessingRecord.h" +#include "clang/Lex/PPConditionalDirectiveRecord.h" #include "clang/Basic/SourceManager.h" using namespace clang; @@ -37,7 +37,7 @@ CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { Commit::Commit(EditedSource &Editor) : SourceMgr(Editor.getSourceManager()), LangOpts(Editor.getLangOpts()), - PPRec(Editor.getPreprocessingRecord()), + PPRec(Editor.getPPCondDirectiveRecord()), Editor(&Editor), IsCommitable(true) { } bool Commit::insert(SourceLocation loc, StringRef text, |