We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9bafe commit be54822Copy full SHA for be54822
clang/lib/Sema/SemaDecl.cpp
@@ -13446,7 +13446,7 @@ bool Sema::GloballyUniqueObjectMightBeAccidentallyDuplicated(
13446
// Not perfect: doesn't account for mutable members, for example, or
13447
// elements of container types.
13448
// For nested pointers, any individual level being non-const is sufficient.
13449
-bool looksMutable(QualType T, const ASTContext &Ctx) {
+static bool looksMutable(QualType T, const ASTContext &Ctx) {
13450
T = T.getNonReferenceType();
13451
if (T->isFunctionType())
13452
return false;
0 commit comments