Skip to content

Commit efe9cd9

Browse files
committed
[clang-tidy][doc][NFC] extract common global options in doc
1 parent ad0fbb0 commit efe9cd9

33 files changed

+59
-62
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
==============
2+
Global Options
3+
==============
4+
5+
Some options apply to multiple checks. This page lists all the available
6+
globally options.
7+
8+
.. option:: IncludeStyle
9+
10+
A string specifying which include-style is used, `llvm` or `google`. Default
11+
is `llvm`.
12+
13+
.. option:: IgnoreMacros
14+
15+
If set to `true`, the check will not give warnings inside macros. Default
16+
is `true`.
17+
18+
.. option:: StrictMode
19+
20+
When `true`, some checkers will be more stringent. The default value depends
21+
on the checks.

clang-tools-extra/docs/clang-tidy/checks/abseil/string-find-startswith.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ Options
3939

4040
.. option:: IncludeStyle
4141

42-
A string specifying which include-style is used, `llvm` or `google`. Default
43-
is `llvm`.
42+
See :doc:`global options <clang-tidy/GlobalOptions>`.
4443

4544
.. option:: AbseilStringsMatchHeader
4645

clang-tools-extra/docs/clang-tidy/checks/abseil/string-find-str-contains.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ Options
4343

4444
.. option:: IncludeStyle
4545

46-
A string specifying which include-style is used, `llvm` or `google`. Default
47-
is `llvm`.
46+
See :doc:`global options <clang-tidy/GlobalOptions>`.
4847

4948
.. option:: AbseilStringsMatchHeader
5049

clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ Options
162162

163163
.. option:: IncludeStyle
164164

165-
A string specifying which include-style is used, `llvm` or `google`. Default
166-
is `llvm`.
165+
See :doc:`global options <clang-tidy/GlobalOptions>`.
167166

168167
.. option:: IncludeBoostSystem
169168

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-do-while.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Options
2626

2727
.. option:: IgnoreMacros
2828

29-
Ignore the check when analyzing macros. This is useful for safely defining function-like macros:
29+
See :doc:`global options <clang-tidy/GlobalOptions>`.
30+
This is useful for safely defining function-like macros:
3031

3132
.. code-block:: c++
3233

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/init-variables.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ Options
6262

6363
.. option:: IncludeStyle
6464

65-
A string specifying which include-style is used, `llvm` or `google`. Default
66-
is `llvm`.
65+
See :doc:`global options <clang-tidy/GlobalOptions>`.
6766

6867
.. option:: MathHeader
6968

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-bounds-constant-array-index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ Options
2424

2525
.. option:: IncludeStyle
2626

27-
A string specifying which include-style is used, `llvm` or `google`. Default
28-
is `llvm`.
27+
See :doc:`global options <clang-tidy/GlobalOptions>`.

clang-tools-extra/docs/clang-tidy/checks/misc/uniqueptr-reset-release.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ Options
2020

2121
.. option:: IncludeStyle
2222

23-
A string specifying which include-style is used, `llvm` or `google`. Default
24-
is `llvm`.
23+
See :doc:`global options <clang-tidy/GlobalOptions>`.

clang-tools-extra/docs/clang-tidy/checks/modernize/loop-convert.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ lives.
169169

170170
.. option:: IncludeStyle
171171

172-
A string specifying which include-style is used, `llvm` or `google`. Default
173-
is `llvm`.
172+
See :doc:`global options <clang-tidy/GlobalOptions>`.
174173

175174
Limitations
176175
-----------

clang-tools-extra/docs/clang-tidy/checks/modernize/make-shared.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ Options
4141

4242
.. option:: IncludeStyle
4343

44-
A string specifying which include-style is used, `llvm` or `google`. Default
45-
is `llvm`.
44+
See :doc:`global options <clang-tidy/GlobalOptions>`.
4645

4746
.. option:: IgnoreMacros
4847

49-
If set to `true`, the check will not give warnings inside macros. Default
50-
is `true`.
48+
See :doc:`global options <clang-tidy/GlobalOptions>`.
5149

5250
.. option:: IgnoreDefaultInitialization
5351

0 commit comments

Comments
 (0)