diff --git a/clang/include/clang/AST/PrettyPrinter.h b/clang/include/clang/AST/PrettyPrinter.h index 3baf2b2ba94d..3b09c604b47b 100644 --- a/clang/include/clang/AST/PrettyPrinter.h +++ b/clang/include/clang/AST/PrettyPrinter.h @@ -76,6 +76,9 @@ 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