[PATCH] D133659: [Clang] P1169R4: static operator()

Zhihao Yuan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 12 11:49:00 PDT 2022


lichray added inline comments.


================
Comment at: clang/test/CodeGenCXX/cxx2b-static-call-operator.cpp:5
+struct Functor {
+  static int operator()(int x, int y) {
+    return x + y;
----------------
I want to see some tests that diagnose `extern operator()`.


================
Comment at: clang/test/Parser/cxx2b-lambdas.cpp:43
+auto XL7 = []() static static {}; // expected-error {{cannot appear multiple times}}
+auto XL8 = []() static mutable {}; // expected-error {{cannot be both mutable and static}}
+
----------------
And some tests that diagnose `extern`, `mutable extern`, etc.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133659



More information about the cfe-commits mailing list