ymandel marked 2 inline comments as done.
ymandel added inline comments.

================
Comment at: clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h:38
+
+  // DEPRECATED. Use overload above.
   static llvm::Expected<ControlFlowContext> build(const Decl *D, Stmt *S,
----------------
xazax.hun wrote:
> I think LLVM can use the `[[deprecated]]` attribute.
Thanks -- I verifed and it works. But, it produces warnings which I'm afraid 
may be a problem with some builds. So, I want to hold off until I can clean up 
all of our uses.


================
Comment at: 
clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h:63-65
+  const Decl *ContainingDecl;
   std::unique_ptr<CFG> Cfg;
   llvm::DenseMap<const Stmt *, const CFGBlock *> StmtToBlock;
----------------
xazax.hun wrote:
> This starts to look more and more similar to `AnalysisDeclContext`. I wonder 
> if at some point we should factor the common code out into a common base 
> class or something.
Agreed. Filed issue #56932.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131039

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to