From: Ted Kremenek Date: Wed, 12 Dec 2007 18:18:05 +0000 (+0000) Subject: Constified a predicate method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25bb23aa20b69b107bbb4526b2d156599c2434ca;p=clang Constified a predicate method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44943 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }