]> granicus.if.org Git - clang/commitdiff
Add NamedDecl::printName() for clients that to use getNameAsString() but are already...
authorTed Kremenek <kremenek@apple.com>
Fri, 7 May 2010 20:07:19 +0000 (20:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 7 May 2010 20:07:19 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103284 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 2d975853d0fc95ab42d68b2ef12769c0977e89c9..9b120a4e55b5f9ba8a5cd31a1ffaad0404699ffe 100644 (file)
@@ -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; }