Skip to content

Commit ae8a37e

Browse files
committed
Use enum_select
1 parent c965ad0 commit ae8a37e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8979,17 +8979,17 @@ def err_typecheck_incompatible_ownership : Error<
89798979
"|%diff{casting $ to type $|casting between types}0,1}2"
89808980
" changes retain/release properties of pointer">;
89818981
def err_typecheck_incompatible_ptrauth : Error<
8982-
"%select{%diff{assigning $ to $|assigning to different types}1,0"
8983-
"|%diff{passing $ to parameter of type $|"
8984-
"passing to parameter of different type}0,1"
8985-
"|%diff{returning $ from a function with result type $|"
8986-
"returning from function with different return type}0,1"
8987-
"|%diff{converting $ to type $|converting between types}0,1"
8988-
"|%diff{initializing $ with an expression of type $|"
8989-
"initializing with expression of different type}0,1"
8990-
"|%diff{sending $ to parameter of type $|"
8991-
"sending to parameter of different type}0,1"
8992-
"|%diff{casting $ to type $|casting between types}0,1}2"
8982+
"%enum_select<AssignmentAction>{%Assigning{%diff{assigning $ to $|assigning to different types}1,0}"
8983+
"|%Passing{%diff{passing $ to parameter of type $|"
8984+
"passing to parameter of different type}0,1}"
8985+
"|%Returning{%diff{returning $ from a function with result type $|"
8986+
"returning from function with different return type}0,1}"
8987+
"|%Converting{%diff{converting $ to type $|converting between types}0,1}"
8988+
"|%Initializing{%diff{initializing $ with an expression of type $|"
8989+
"initializing with expression of different type}0,1}"
8990+
"|%Sending{%diff{sending $ to parameter of type $|"
8991+
"sending to parameter of different type}0,1}"
8992+
"|%Casting{%diff{casting $ to type $|casting between types}0,1}}2"
89938993
" changes pointer authentication of pointee type">;
89948994
def err_typecheck_comparison_of_distinct_blocks : Error<
89958995
"comparison of distinct block types%diff{ ($ and $)|}0,1">;

0 commit comments

Comments
 (0)