[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat May 10 16:11:37 PDT 2025


================
@@ -0,0 +1,227 @@
+// RUN: %check_clang_tidy -std=c++2b -check-suffix=DEFAULT %s \
----------------
vbvictor wrote:

You can have one test file with multiple RUN-commands with different c++ standarts using defines. Look at `clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-inaccessible-ctors.cpp` for some inspiration, wrap C++23-ish constructs in `#ifdef CXX_23`


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


More information about the cfe-commits mailing list