[clang] 6f2fa9d - [clang][NFC] Document NamedDecl::printName

Bruno Ricci via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 05:55:40 PDT 2020


Author: Bruno Ricci
Date: 2020-08-05T13:54:37+01:00
New Revision: 6f2fa9d312fcea2448706a8e410c7bc1b6436ea7

URL: https://github.com/llvm/llvm-project/commit/6f2fa9d312fcea2448706a8e410c7bc1b6436ea7
DIFF: https://github.com/llvm/llvm-project/commit/6f2fa9d312fcea2448706a8e410c7bc1b6436ea7.diff

LOG: [clang][NFC] Document NamedDecl::printName

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 4dd5e14d36e1..c2511514fe72 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -265,6 +265,8 @@ class NamedDecl : public Decl {
   // FIXME: Deprecated, move clients to getName().
   std::string getNameAsString() const { return Name.getAsString(); }
 
+  /// Pretty-print the unqualified name of this declaration. Can be overloaded
+  /// by derived classes to provide a more user-friendly name when appropriate.
   virtual void printName(raw_ostream &os) const;
 
   /// Get the actual, stored name of the declaration, which may be a special


        


More information about the cfe-commits mailing list