[PATCH] D125771: [clang-tidy] Add a useful note about -std=c++11-or-later
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 20 12:40:21 PDT 2022
steakhal updated this revision to Diff 431028.
steakhal marked 2 inline comments as done.
steakhal added a comment.
Generalized the flag help text to all supported standard versions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125771/new/
https://reviews.llvm.org/D125771
Files:
clang-tools-extra/test/clang-tidy/check_clang_tidy.py
Index: clang-tools-extra/test/clang-tidy/check_clang_tidy.py
===================================================================
--- clang-tools-extra/test/clang-tidy/check_clang_tidy.py
+++ clang-tools-extra/test/clang-tidy/check_clang_tidy.py
@@ -19,11 +19,17 @@
[-assume-filename=<file-with-source-extension>] \
[-check-suffix=<comma-separated-file-check-suffixes>] \
[-check-suffixes=<comma-separated-file-check-suffixes>] \
+ [-std=c++(98|11|14|17|20)[-or-later]] \
<source-file> <check-name> <temp-file> \
-- [optional clang-tidy arguments]
Example:
// RUN: %check_clang_tidy %s llvm-include-order %t -- -- -isystem %S/Inputs
+
+Notes:
+ -std=c++(98|11|14|17|20)[-or-later]:
+ This flag will cause multiple runs within the same check_clang_tidy
+ execution. Make sure you don't have shared state across these runs.
"""
import argparse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125771.431028.patch
Type: text/x-patch
Size: 886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220520/cdd05cd4/attachment.bin>
More information about the cfe-commits
mailing list