Skip to content

Commit f94de06

Browse files
committed
Add DiagGroup to NoRandomizeLayout attribute
All attributes that emit warnings are required to be members of a warning group; this is checked by the clang-test regression suite.
1 parent 287458e commit f94de06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/DiagnosticASTKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,6 @@ def warn_unnecessary_packed : Warning<
347347
// RandStruct implementation
348348
def warn_randomize_attr_conflict : Warning<
349349
"struct declared with 'randomize_layout' and 'no_randomize_layout' attributes;"
350-
"attribute 'no_randomize_layout' takes precedence">;
350+
"attribute 'no_randomize_layout' takes precedence">, InGroup<DiagGroup<"no-randomize-layout">>;
351351

352352
}

0 commit comments

Comments
 (0)