================
@@ -1043,6 +1045,36 @@ def warn_npot_ms_struct : Warning<
def err_itanium_layout_unimplemented : Error<
"Itanium-compatible layout for the Microsoft C++ ABI is not yet supported">;
+// Unsupported features in name mangling
+def err_unsupported_itanium_mangling
+ : Error<"cannot yet mangle "
+ "%enum_select<UnsupportedItaniumManglingKind>"
+ "{%FixedPointLiteral{fixed point literal}"
+ "|%DependentNeonVector{dependent neon vector type}"
+ "|%DependentFixedLengthSVEVector{dependent fixed-length SVE vector
"
+ "type}"
+ "|%DependentFixedLengthRVVVectorType{dependent fixed-length RVV "
+ "vector type}"
+ "|%TernaryWithOmittedMiddleOperand{?: operator with omitted middle
"
+ "operand}"
+ "|%OpenACCAsteriskSizeExpr{OpenACC Asterisk Size expression}"
+ "|%UnnamedUnionNTTP{unnamed union non-type template parameter}"
+ "|%RequiresExprWithSubstitutionFailure{requires-expression "
+ "containing a substitution failure}"
+ "}0 yet">;
+
+def err_unsupported_itanium_expr_mangling
+ : Error<"cannot yet mangle %0 expression">;
----------------
Sirraide wrote:
So I know this is how clang-format formats these, but that’s not how we want
them to be formatted unfortunately... so can you instead reformat them to be
like the other diagnostics. E.g. instead of
```td
def err_unsupported_itanium_expr_mangling
: Error<"cannot yet mangle %0 expression">;
```
do
```td
def err_unsupported_itanium_expr_mangling : Error<
"cannot yet mangle %0 expression">;
```
https://github.com/llvm/llvm-project/pull/172532
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits