diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 4dd5e14d36e181..c2511514fe7263 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -265,6 +265,8 @@ class NamedDecl : public Decl { // FIXME: Deprecated, move clients to getName(). std::string getNameAsString() const { return Name.getAsString(); } + /// Pretty-print the unqualified name of this declaration. Can be overloaded + /// by derived classes to provide a more user-friendly name when appropriate. virtual void printName(raw_ostream &os) const; /// Get the actual, stored name of the declaration, which may be a special