[cfe-commits] r76939 - in /cfe/trunk: include/clang/Index/Entity.h lib/Index/Entity.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jul 23 20:38:29 PDT 2009
Author: zhongxingxu
Date: Thu Jul 23 22:38:27 2009
New Revision: 76939
URL: http://llvm.org/viewvc/llvm-project?rev=76939&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=76939&r1=76938&r2=76939&view=diff
==============================================================================
--- cfe/trunk/include/clang/Index/Entity.h (original)
+++ cfe/trunk/include/clang/Index/Entity.h Thu Jul 23 22:38:27 2009
@@ -55,7 +55,7 @@
Entity() { }
/// \brief Find the Decl that can be referred to by this entity.
- Decl *getDecl(ASTContext &AST);
+ Decl *getDecl(ASTContext &AST) const;
/// \brief Get a printable name for debugging purpose.
std::string getPrintableName() const;
Modified: cfe/trunk/lib/Index/Entity.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Entity.cpp?rev=76939&r1=76938&r2=76939&view=diff
==============================================================================
--- cfe/trunk/lib/Index/Entity.cpp (original)
+++ cfe/trunk/lib/Index/Entity.cpp Thu Jul 23 22:38:27 2009
@@ -145,7 +145,7 @@
Entity::Entity(Decl *D) : Val(D->getCanonicalDecl()) { }
/// \brief Find the Decl that can be referred to by this entity.
-Decl *Entity::getDecl(ASTContext &AST) {
+Decl *Entity::getDecl(ASTContext &AST) const {
if (isInvalid())
return 0;
More information about the cfe-commits
mailing list