summaryrefslogtreecommitdiff
path: root/lib/Format/AffectedRangeManager.h
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2016-04-28 07:52:03 +0000
committerEric Liu <ioeric@google.com>2016-04-28 07:52:03 +0000
commita2db23ba9db427b7dcc995cb44664fcd0b23d940 (patch)
tree5df934916e6ec18965451c92c7a1b5788afec2ef /lib/Format/AffectedRangeManager.h
parent2c27e5fc4d7fcc83a5b553389d67083286d4a63c (diff)
downloadclang-a2db23ba9db427b7dcc995cb44664fcd0b23d940.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/AffectedRangeManager.h')
-rw-r--r--lib/Format/AffectedRangeManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/AffectedRangeManager.h b/lib/Format/AffectedRangeManager.h
index 88b4dcfe76..1f7769432b 100644
--- a/lib/Format/AffectedRangeManager.h
+++ b/lib/Format/AffectedRangeManager.h
@@ -25,7 +25,7 @@ class AnnotatedLine;
class AffectedRangeManager {
public:
- AffectedRangeManager(SourceManager &SourceMgr,
+ AffectedRangeManager(const SourceManager &SourceMgr,
const ArrayRef<CharSourceRange> Ranges)
: SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {}
@@ -57,7 +57,7 @@ private:
bool nonPPLineAffected(AnnotatedLine *Line,
const AnnotatedLine *PreviousLine);
- SourceManager &SourceMgr;
+ const SourceManager &SourceMgr;
const SmallVector<CharSourceRange, 8> Ranges;
};