Skip to content

Commit fae4db4

Browse files
[clang] Document -fstrict-flex-arrays option
Fix #138185
1 parent b006756 commit fae4db4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,10 @@ def fstrict_flex_arrays_EQ : Joined<["-"], "fstrict-flex-arrays=">, Group<f_Grou
15541554
Visibility<[ClangOption, CC1Option]>,
15551555
NormalizedValuesScope<"LangOptions::StrictFlexArraysLevelKind">,
15561556
NormalizedValues<["Default", "OneZeroOrIncomplete", "ZeroOrIncomplete", "IncompleteOnly"]>,
1557-
HelpText<"Enable optimizations based on the strict definition of flexible arrays">,
1557+
HelpText<"Enable optimizations based on the strict definition of flexible arrays. "
1558+
"If ``<n>`` is equal to 0, any trailing array member is considered a flexible array. "
1559+
"If ``<n>`` is equal to 1, trailing array members of size 0, 1 and undefined are considered flexible arrays. "
1560+
"If ``<n>`` is equal to 3, only trailing array members of undefined size are considered flexible arrays.">,
15581561
MarshallingInfoEnum<LangOpts<"StrictFlexArraysLevel">, "Default">;
15591562
defm apple_pragma_pack : BoolFOption<"apple-pragma-pack",
15601563
LangOpts<"ApplePragmaPack">, DefaultFalse,

0 commit comments

Comments
 (0)