[PATCH] D125771: [clang-tidy] Add a useful note about -std=c++11-or-later

Richard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 20 09:48:27 PDT 2022


LegalizeAdulthood added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/check_clang_tidy.py:22
     [-check-suffixes=<comma-separated-file-check-suffixes>] \
+    [-std=(c++11-or-later|c++17)] \
     <source-file> <check-name> <temp-file> \
----------------
These aren't the only two valid options for this argument....  Valid values are:


  - `c++98-or-later`
  - `c++11-or-later`
  - `c++14-or-later`
  - `c++17-or-later`
  - `c++20-or-later`

and of course all the specific standard versions:

  - `c++98`
  - `c++11`
  - `c++14`
  - `c++17`
  - `c++20`



================
Comment at: clang-tools-extra/test/clang-tidy/check_clang_tidy.py:30
+Notes:
+  -std=c++11-or-later:
+    This flag will cause multiple runs within the same check_clang_tidy
----------------
Probably need to explain the `-or-later` argument option more generally here and not just for C++11


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125771



More information about the cfe-commits mailing list