diff options
author | Eric Liu <ioeric@google.com> | 2016-04-28 07:52:03 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-04-28 07:52:03 +0000 |
commit | 635423e61869a0997ec2eb853c1e1c92eaa8352d (patch) | |
tree | eb2c1d0e2de0f06c363b4882c814b9afa2c3b43e /clang/lib/Format/WhitespaceManager.h | |
parent | c5cad396dde973c4a7251a39daf685f7f6dc6f14 (diff) | |
download | bcm5719-llvm-635423e61869a0997ec2eb853c1e1c92eaa8352d.tar.gz bcm5719-llvm-635423e61869a0997ec2eb853c1e1c92eaa8352d.zip |
Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.
Summary: Make SourceManager in Environment, WhitespaceManager, and FormatTokenAnalyzer etc constant members.
Reviewers: djasper, klimek
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D19587
llvm-svn: 267859
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.h')
-rw-r--r-- | clang/lib/Format/WhitespaceManager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/WhitespaceManager.h b/clang/lib/Format/WhitespaceManager.h index 9ca9db6f748..3562347a0e6 100644 --- a/clang/lib/Format/WhitespaceManager.h +++ b/clang/lib/Format/WhitespaceManager.h @@ -37,7 +37,7 @@ namespace format { /// There may be multiple calls to \c breakToken for a given token. class WhitespaceManager { public: - WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style, + WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, bool UseCRLF) : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {} @@ -203,7 +203,7 @@ private: unsigned Spaces, unsigned WhitespaceStartColumn); SmallVector<Change, 16> Changes; - SourceManager &SourceMgr; + const SourceManager &SourceMgr; tooling::Replacements Replaces; const FormatStyle &Style; bool UseCRLF; |