================
@@ -754,7 +760,22 @@ void WalkAST::checkDeprecatedOrUnsafeBufferHandling(const
CallExpr *CE,
if (!filter.check_DeprecatedOrUnsafeBufferHandling)
return;
- if (!BR.getContext().getLangOpts().C11)
+ const bool ShouldReport = [this] {
+ const bool IsAnnexKAvailable = analysis::isAnnexKAvailable(
+ &BR.getPreprocessor(), BR.getContext().getLangOpts());
+ const bool IsC11OrLaterStandard = BR.getContext().getLangOpts().C11;
----------------
steakhal wrote:
A walker is constructed inside the `checkASTCodeBody` which is per fn
definition; so it's not cached per TU, but rather per definition - which is
different.
https://github.com/llvm/llvm-project/pull/168704
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits