[cfe-commits] r76873 - in /cfe/trunk: include/clang/Index/Entity.h lib/Index/Entity.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jul 23 01:36:07 PDT 2009
Author: zhongxingxu
Date: Thu Jul 23 03:32:25 2009
New Revision: 76873
URL: http://llvm.org/viewvc/llvm-project?rev=76873&view=rev
Log:
constify methods.
Modified:
cfe/trunk/include/clang/Index/Entity.h
cfe/trunk/lib/Index/Entity.cpp
Modified: cfe/trunk/include/clang/Index/Entity.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Index/Entity.h?rev=76873&r1=76872&r2=76873&view=diff
==============================================================================
--- cfe/trunk/include/clang/Index/Entity.h (original)
+++ cfe/trunk/include/clang/Index/Entity.h Thu Jul 23 03:32:25 2009
@@ -58,7 +58,7 @@
Decl *getDecl(ASTContext &AST);
/// \brief Get a printable name for debugging purpose.
- std::string getPrintableName();
+ std::string getPrintableName() const;
/// \brief Get an Entity associated with the given Decl.
/// \returns Null if an Entity cannot refer to this Decl.
Modified: cfe/trunk/lib/Index/Entity.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Entity.cpp?rev=76873&r1=76872&r2=76873&view=diff
==============================================================================
--- cfe/trunk/lib/Index/Entity.cpp (original)
+++ cfe/trunk/lib/Index/Entity.cpp Thu Jul 23 03:32:25 2009
@@ -156,7 +156,7 @@
return Val.get<EntityImpl *>()->getDecl(AST);
}
-std::string Entity::getPrintableName() {
+std::string Entity::getPrintableName() const {
if (isInvalid())
return "<< Invalid >>";
More information about the cfe-commits
mailing list