================
@@ -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;
----------------
gamesh411 wrote:
True, we do not have to recompute this every time. I have cached this value
inside of the visitor class, so it is cached per TU.
https://github.com/llvm/llvm-project/pull/168704
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits