[cfe-commits] r44943 - /cfe/trunk/include/clang/Basic/SourceLocation.h
Ted Kremenek
kremenek at apple.com
Wed Dec 12 10:18:05 PST 2007
Author: kremenek
Date: Wed Dec 12 12:18:05 2007
New Revision: 44943
URL: http://llvm.org/viewvc/llvm-project?rev=44943&view=rev
Log:
Constified a predicate method.
Modified:
cfe/trunk/include/clang/Basic/SourceLocation.h
Modified: cfe/trunk/include/clang/Basic/SourceLocation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceLocation.h?rev=44943&r1=44942&r2=44943&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceLocation.h (original)
+++ cfe/trunk/include/clang/Basic/SourceLocation.h Wed Dec 12 12:18:05 2007
@@ -214,7 +214,7 @@
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; }
More information about the cfe-commits
mailing list