From c14f5eb3ec4dfacf4c8e18d0eb4e84b60fe8366e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 7 May 2010 20:07:19 +0000 Subject: [PATCH] Add NamedDecl::printName() for clients that to use getNameAsString() but are already using a raw_ostream. llvm-svn: 103284 --- clang/include/clang/AST/Decl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 2d975853d0fc..9b120a4e55b5 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -138,6 +138,8 @@ public: // FIXME: Deprecated, move clients to getName(). std::string getNameAsString() const { return Name.getAsString(); } + void printName(llvm::raw_ostream &os) const { return Name.printName(os); } + /// getDeclName - Get the actual, stored name of the declaration, /// which may be a special name. DeclarationName getDeclName() const { return Name; }