summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-09-24 16:35:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-09-24 16:35:29 +0000
commite453a36f6cd0a5346d8355b3d755cba3059a69a5 (patch)
tree42a377275be3fb098e9c6c3a41ebe14b40aa4bd7 /include/clang/Basic/SourceManager.h
parent85e04096eda002133ffed11b0ba125af4e7f4325 (diff)
Constify a functor's function call operator because it can/should be.
Patch by Graham Lee (graham@iamleeg.com)! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index d5426c18da..717258ddcf 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -1677,7 +1677,7 @@ class BeforeThanCompare<SourceRange> {
public:
explicit BeforeThanCompare(SourceManager &SM) : SM(SM) { }
- bool operator()(SourceRange LHS, SourceRange RHS) {
+ bool operator()(SourceRange LHS, SourceRange RHS) const {
return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin());
}
};