[clang] 0566791 - Restore TagDecl::printName(raw_ostream &)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 8 05:32:25 PDT 2023


Author: Aaron Ballman
Date: 2023-07-08T08:30:58-04:00
New Revision: 0566791ab28b5b842c3befea63d7d47fe9ba1a59

URL: https://github.com/llvm/llvm-project/commit/0566791ab28b5b842c3befea63d7d47fe9ba1a59
DIFF: https://github.com/llvm/llvm-project/commit/0566791ab28b5b842c3befea63d7d47fe9ba1a59.diff

LOG: Restore TagDecl::printName(raw_ostream &)

Changes in 19e984ef8f49bc3ccced15621989fa9703b2cd5b accidentally hid
the raw_ostream& declaration from NamedDecl, so this brings back access
to that function through a TagDecl.

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 b9c3bb03c9fb31..788f6ab97b1bbf 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -3725,6 +3725,7 @@ class TagDecl : public TypeDecl,
     return getExtInfo()->TemplParamLists[i];
   }
 
+  using TypeDecl::printName;
   void printName(raw_ostream &OS, const PrintingPolicy &Policy) const override;
 
   void setTemplateParameterListsInfo(ASTContext &Context,


        


More information about the cfe-commits mailing list