[cfe-commits] r103284 - /cfe/trunk/include/clang/AST/Decl.h

Ted Kremenek kremenek at apple.com
Fri May 7 13:07:19 PDT 2010


Author: kremenek
Date: Fri May  7 15:07:19 2010
New Revision: 103284

URL: http://llvm.org/viewvc/llvm-project?rev=103284&view=rev
Log:
Add NamedDecl::printName() for clients that to use getNameAsString() but are already using a raw_ostream.

Modified:
    cfe/trunk/include/clang/AST/Decl.h

Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=103284&r1=103283&r2=103284&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Fri May  7 15:07:19 2010
@@ -138,6 +138,8 @@
   // 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; }





More information about the cfe-commits mailing list