From 0b2227e1ca4eb7b2deaec3da963b7777f0bd7f7b 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103284 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Decl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 2d975853d0..9b120a4e55 100644 --- a/include/clang/AST/Decl.h +++ b/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; } -- 2.40.0