aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td4
-rw-r--r--lib/Sema/Sema.h6
-rw-r--r--lib/Sema/SemaExpr.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 1d0b97654c..0a93276981 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1839,8 +1839,8 @@ def ext_typecheck_convert_incompatible_pointer : ExtWarn<
"incompatible pointer types %2 %1, expected %0">;
def ext_typecheck_convert_discards_qualifiers : ExtWarn<
"%2 %1 discards qualifiers, expected %0">;
-def err_multi_pointer_qualifier_mismatch : Error<
- "%2, %0 and %1 have different qualifiers in a multi-level pointer chain">;
+def err_nested_pointer_qualifier_mismatch : Error<
+ "%2, %0 and %1 have different qualifiers in nested pointer types">;
def warn_incompatible_vectors : Warning<
"incompatible vector types %2 %1, expected %0">,
InGroup<VectorConversions>, DefaultIgnore;
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index 84d4c598b2..bfef9a3985 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -3486,11 +3486,11 @@ public:
/// c/v/r qualifiers, which we accept as an extension.
CompatiblePointerDiscardsQualifiers,
- /// IncompatibleMultiPointerQualifiers - The assignment is between two
- /// multi-level pointer types, and the qualifiers other than the first two
+ /// IncompatibleNestedPointerQualifiers - The assignment is between two
+ /// nested pointer types, and the qualifiers other than the first two
/// levels differ e.g. char ** -> const char **. We disallow this.
/// FIXME: GCC only warns for this - should we do the same?
- IncompatibleMultiPointerQualifiers,
+ IncompatibleNestedPointerQualifiers,
/// IncompatibleVectors - The assignment is between two vector types that
/// have the same size, which we accept as an extension.
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index a09f6a9005..887a4c4af4 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -3762,7 +3762,7 @@ Sema::CheckPointerTypesForAssignment(QualType lhsType, QualType rhsType) {
} while (lhptee->isPointerType() && rhptee->isPointerType());
if (lhptee.getUnqualifiedType() == rhptee.getUnqualifiedType())
- return IncompatibleMultiPointerQualifiers;
+ return IncompatibleNestedPointerQualifiers;
}
// General pointer incompatibility takes priority over qualifiers.
@@ -6241,8 +6241,8 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType ConvTy,
return false;
DiagKind = diag::ext_typecheck_convert_discards_qualifiers;
break;
- case IncompatibleMultiPointerQualifiers:
- DiagKind = diag::err_multi_pointer_qualifier_mismatch;
+ case IncompatibleNestedPointerQualifiers:
+ DiagKind = diag::err_nested_pointer_qualifier_mismatch;
break;
case IntToBlockPointer:
DiagKind = diag::err_int_to_block_pointer;