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 /include/clang/Edit/Commit.h | |
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 'include/clang/Edit/Commit.h')
-rw-r--r-- | include/clang/Edit/Commit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Edit/Commit.h b/include/clang/Edit/Commit.h index aaf6b18384..610112a716 100644 --- a/include/clang/Edit/Commit.h +++ b/include/clang/Edit/Commit.h @@ -16,7 +16,7 @@ namespace clang { class LangOptions; - class PreprocessingRecord; + class PPConditionalDirectiveRecord; namespace edit { class EditedSource; @@ -46,7 +46,7 @@ public: private: const SourceManager &SourceMgr; const LangOptions &LangOpts; - const PreprocessingRecord *PPRec; + const PPConditionalDirectiveRecord *PPRec; EditedSource *Editor; bool IsCommitable; @@ -55,7 +55,7 @@ private: public: explicit Commit(EditedSource &Editor); Commit(const SourceManager &SM, const LangOptions &LangOpts, - const PreprocessingRecord *PPRec = 0) + const PPConditionalDirectiveRecord *PPRec = 0) : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0), IsCommitable(true) { } |