================
@@ -0,0 +1,33 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify
%s
+// expected-no-diagnostics
+
+void clang_analyzer_warnIfReached();
+
+// Forward declaration
+namespace N { // 1st
+template <class T> struct Wrapper;
----------------
ziqingluo-90 wrote:
hmm... actually, for `DeclWithIssue initially was 0xacad0d4d0 CXXMethod`,
there are two possibilities:
- it is the `CXXMethod` in the template definition; or
- it is the `CXXMethod` in the template specialization declaration.
Although none of their lexical parents should be in the second namespace, I
wonder if we try to start with a different `CXXMethod`, the result might be
different🧐.
https://github.com/llvm/llvm-project/pull/178441
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits