aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-12 18:18:05 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-12 18:18:05 +0000
commit25bb23aa20b69b107bbb4526b2d156599c2434ca (patch)
treeab0c475fe6a8f9a1598f974251e46b9222f6ab0f /include/clang/Basic/SourceLocation.h
parenta9793ed6a77946c988ee38035baf4cde6ff2e864 (diff)
Constified a predicate method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index 145d590046..67fb4ac6b7 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -214,7 +214,7 @@ public:
explicit FullContextSourceLocation(SourceLocation loc, SourceManager& smgr)
: Loc(loc), SrcMgr(&smgr) {}
- bool isValid() { return Loc.isValid(); }
+ bool isValid() const { return Loc.isValid(); }
SourceLocation getSourceLocation() const { return Loc; }
operator SourceLocation() const { return Loc; }