aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Index/Entity.h2
-rw-r--r--lib/Index/Entity.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Index/Entity.h b/include/clang/Index/Entity.h
index 490a648926..cd87e4ccc1 100644
--- a/include/clang/Index/Entity.h
+++ b/include/clang/Index/Entity.h
@@ -58,7 +58,7 @@ public:
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.
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp
index c7924f65fc..25061e6150 100644
--- a/lib/Index/Entity.cpp
+++ b/lib/Index/Entity.cpp
@@ -156,7 +156,7 @@ Decl *Entity::getDecl(ASTContext &AST) {
return Val.get<EntityImpl *>()->getDecl(AST);
}
-std::string Entity::getPrintableName() {
+std::string Entity::getPrintableName() const {
if (isInvalid())
return "<< Invalid >>";