Skip to content

Commit a66d535

Browse files
serge-sans-pailleIanWood1
authored andcommitted
[clang] Document -fstrict-flex-arrays option (llvm#138388)
Fix llvm#138185
1 parent bde0607 commit a66d535

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,11 @@ 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+
DocBrief<[{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 or undefined are considered flexible arrays.
1560+
If ``<n>`` is equal to 2, trailing array members of size 0 or undefined are considered flexible arrays.
1561+
If ``<n>`` is equal to 3, only trailing array members of undefined size are considered flexible arrays.}]>,
15581562
MarshallingInfoEnum<LangOpts<"StrictFlexArraysLevel">, "Default">;
15591563
defm apple_pragma_pack : BoolFOption<"apple-pragma-pack",
15601564
LangOpts<"ApplePragmaPack">, DefaultFalse,

0 commit comments

Comments
 (0)