[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
Tue May 17 08:14:54 PDT 2022
steakhal updated this revision to Diff 430069.
steakhal marked an inline comment as done.
steakhal added a comment.
fix typo `withing` -> `within`
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++11-or-later|c++17)] \
<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++11-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.430069.patch
Type: text/x-patch
Size: 862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220517/ba268b23/attachment.bin>
More information about the cfe-commits
mailing list