[clang] [clang] Document -fstrict-flex-arrays option (PR #138388)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Sat May 3 08:23:53 PDT 2025
================
@@ -1554,7 +1554,10 @@ def fstrict_flex_arrays_EQ : Joined<["-"], "fstrict-flex-arrays=">, Group<f_Grou
Visibility<[ClangOption, CC1Option]>,
NormalizedValuesScope<"LangOptions::StrictFlexArraysLevelKind">,
NormalizedValues<["Default", "OneZeroOrIncomplete", "ZeroOrIncomplete", "IncompleteOnly"]>,
- HelpText<"Enable optimizations based on the strict definition of flexible arrays">,
+ HelpText<"Enable optimizations based on the strict definition of flexible arrays. "
+ "If ``<n>`` is equal to 0, any trailing array member is considered a flexible array. "
+ "If ``<n>`` is equal to 1, trailing array members of size 0, 1 and undefined are considered flexible arrays. "
+ "If ``<n>`` is equal to 3, only trailing array members of undefined size are considered flexible arrays.">,
----------------
zygoloid wrote:
What about `2`?
https://github.com/llvm/llvm-project/pull/138388
More information about the cfe-commits
mailing list