diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-05-07 20:07:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-05-07 20:07:19 +0000 |
commit | 0b2227e1ca4eb7b2deaec3da963b7777f0bd7f7b (patch) | |
tree | 6d1c5bb0ad83dcdbcb5735545156c4ab4cd125b6 | |
parent | 6b6d01fbc297d703f7ad1e605aa97afc6289a64f (diff) |
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
-rw-r--r-- | include/clang/AST/Decl.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |