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

Mikael Holmén via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 15 08:07:35 PDT 2023


uabelho added a comment.

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.


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