RedDocMD added a comment. Judging by this line <https://github.com/llvm/llvm-project/blob/ebe408ad8003c946ef871b955ab18e64e82697cb/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp#L2730> in the `LikelyFalsePositiveSuppressionBRVisitor::finalizeVisitor()` method, it seems that the bug report is squelched when the visitor encounters an `ExplodedNode` which corresponds to a `LocationContext`, whose associated `Decl` lies in **std** namespace. I guess, by default, the option to suppress warnings from the std library is enabled. Which makes sense, except in this case since `unique_ptr` is in std and it is being used in that function, the bug report is suppressed.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D98726/new/ https://reviews.llvm.org/D98726 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits