summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/AffectedRangeManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Format/AffectedRangeManager.h')
-rw-r--r--clang/lib/Format/AffectedRangeManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/AffectedRangeManager.h b/clang/lib/Format/AffectedRangeManager.h
index 88b4dcfe76f..1f7769432b4 100644
--- a/clang/lib/Format/AffectedRangeManager.h
+++ b/clang/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;
};
OpenPOWER on IntegriCloud