diff options
Diffstat (limited to 'include/clang/Edit/EditedSource.h')
-rw-r--r-- | include/clang/Edit/EditedSource.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/clang/Edit/EditedSource.h b/include/clang/Edit/EditedSource.h index 3ad5a6be1464..150a5b41b5a4 100644 --- a/include/clang/Edit/EditedSource.h +++ b/include/clang/Edit/EditedSource.h @@ -28,7 +28,6 @@ class EditedSource { const SourceManager &SourceMgr; const LangOptions &LangOpts; const PPConditionalDirectiveRecord *PPRec; - const bool ForceCommitInSystemHeader; struct FileEdit { StringRef Text; @@ -46,21 +45,15 @@ class EditedSource { public: EditedSource(const SourceManager &SM, const LangOptions &LangOpts, - const PPConditionalDirectiveRecord *PPRec = 0, - const bool FCommitInSystemHeader = true) + const PPConditionalDirectiveRecord *PPRec = nullptr) : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), - ForceCommitInSystemHeader(FCommitInSystemHeader), - StrAlloc(/*size=*/512) { } + StrAlloc() { } const SourceManager &getSourceManager() const { return SourceMgr; } const LangOptions &getLangOpts() const { return LangOpts; } const PPConditionalDirectiveRecord *getPPCondDirectiveRecord() const { return PPRec; } - - bool getForceCommitInSystemHeader() const { - return ForceCommitInSystemHeader; - } bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); |