[clang] e7afaad - Revert "Delete PrintingPolicy's copy constructor/operator."

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 23 11:24:51 PDT 2021


Author: Erich Keane
Date: 2021-07-23T11:24:30-07:00
New Revision: e7afaadd8b7a41cf9fab15786e863e78a8cc1473

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

LOG: Revert "Delete PrintingPolicy's copy constructor/operator."

My test that showed we don't copy it was wrong!

This reverts commit 68ef916659b9cd4127276f9502fc2870ca6cfdea.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/PrettyPrinter.h b/clang/include/clang/AST/PrettyPrinter.h
index 3b09c604b47b0..3baf2b2ba94d6 100644
--- a/clang/include/clang/AST/PrettyPrinter.h
+++ b/clang/include/clang/AST/PrettyPrinter.h
@@ -76,9 +76,6 @@ struct PrintingPolicy {
         SuppressImplicitBase(false), FullyQualifiedName(false),
         PrintCanonicalTypes(false), PrintInjectedClassNameWithArguments(true) {}
 
-  PrintingPolicy(const PrintingPolicy&) = delete;
-  PrintingPolicy &operator=(const PrintingPolicy &) = delete;
-
   /// Adjust this printing policy for cases where it's known that we're
   /// printing C++ code (for instance, if AST dumping reaches a C++-only
   /// construct). This should not be used if a real LangOptions object is


        


More information about the cfe-commits mailing list