[PATCH] D150352: [clang][dataflow] Don't analyze templated declarations.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 15 11:56:53 PDT 2023


mboehme added a subscriber: amyk.
mboehme added a comment.

In D150352#4342480 <https://reviews.llvm.org/D150352#4342480>, @uabelho wrote:

> Hello,
>
>   ../../clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp:43:27: error: 'build' is deprecated: Use the version that takes a const Decl & instead [-Werror,-Wdeprecated-declarations]
>         ControlFlowContext::build(&FuncDecl, *FuncDecl.getBody(), ASTCtx);
>                             ^
>   ../../clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h:41:3: note: 'build' has been explicitly marked deprecated here
>     LLVM_DEPRECATED("Use the version that takes a const Decl & instead", "")
>     ^
>   ../include/llvm/Support/Compiler.h:143:50: note: expanded from macro 'LLVM_DEPRECATED'
>   #define LLVM_DEPRECATED(MSG, FIX) __attribute__((deprecated(MSG, FIX)))
>                                                    ^
>   1 error generated.

Sorry for the breakage. I ran `check-clang` and fixed all the deprecation warnings, so I'm not sure how I missed this one.

Thank you to @amyk for the fix.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150352/new/

https://reviews.llvm.org/D150352



More information about the cfe-commits mailing list