aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a13da5a..9536319 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1018,6 +1018,15 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
A->claim();
Opts.Config[key] = std::string(val);
+
+ // FIXME: Remove this hunk after clang-17 released.
+ constexpr auto SingleFAM =
+ "consider-single-element-arrays-as-flexible-array-members";
+ if (key == SingleFAM) {
+ Diags.Report(diag::warn_analyzer_deprecated_option_with_alternative)
+ << SingleFAM << "clang-17"
+ << "-fstrict-flex-arrays=<N>";
+ }
}
}