[clang] [analyzer] Support C++23 static operator calls (PR #84972)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 23:46:16 PDT 2024


================
@@ -0,0 +1,16 @@
+// RUN: %clang_analyze_cc1 -std=c++2b -verify %s \
+// RUN:   -analyzer-checker=core,debug.ExprInspection
+
+template <typename T> void clang_analyzer_dump(T);
+
+struct Adder {
+  int data;
+  static int operator()(int x, int y) {
+    return x + y;
----------------
tomasz-kaminski-sonarsource wrote:

Could you dump values of `x` and `y` from inside the body?

https://github.com/llvm/llvm-project/pull/84972


More information about the cfe-commits mailing list