Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 68ef916

Browse files
author
Erich Keane
committed
Delete PrintingPolicy's copy constructor/operator.
This type is 'fat' now thanks to the callbacks, so it should never be copied as far as I know. Delete the copy operations so that we don't do so accidentially.
1 parent 55e12f7 commit 68ef916

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/AST/PrettyPrinter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ struct PrintingPolicy {
7676
SuppressImplicitBase(false), FullyQualifiedName(false),
7777
PrintCanonicalTypes(false), PrintInjectedClassNameWithArguments(true) {}
7878

79+
PrintingPolicy(const PrintingPolicy&) = delete;
80+
PrintingPolicy &operator=(const PrintingPolicy &) = delete;
81+
7982
/// Adjust this printing policy for cases where it's known that we're
8083
/// printing C++ code (for instance, if AST dumping reaches a C++-only
8184
/// construct). This should not be used if a real LangOptions object is

0 commit comments

Comments
 (0)