hokein updated this revision to Diff 69343. hokein added a comment. Fix style.
https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-namespaces.rst docs/clang-tidy/checks/google-readability-namespace-comments.rst docs/clang-tidy/checks/google-runtime-int.rst docs/clang-tidy/checks/list.rst docs/clang-tidy/checks/misc-definitions-in-headers.rst docs/clang-tidy/checks/misc-move-constructor-init.rst docs/clang-tidy/checks/misc-sizeof-expression.rst docs/clang-tidy/checks/misc-string-constructor.rst docs/clang-tidy/checks/misc-suspicious-missing-comma.rst docs/clang-tidy/checks/misc-suspicious-string-compare.rst docs/clang-tidy/checks/modernize-pass-by-value.rst docs/clang-tidy/checks/modernize-replace-auto-ptr.rst docs/clang-tidy/checks/performance-for-range-copy.rst docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst docs/clang-tidy/checks/performance-unnecessary-value-param.rst docs/clang-tidy/checks/readability-implicit-bool-cast.rst
Index: docs/clang-tidy/checks/readability-implicit-bool-cast.rst =================================================================== --- docs/clang-tidy/checks/readability-implicit-bool-cast.rst +++ docs/clang-tidy/checks/readability-implicit-bool-cast.rst @@ -97,3 +97,16 @@ Occurrences of implicit casts inside macros and template instantiations are deliberately ignored, as it is not clear how to deal with such cases. + +Options +------- + +.. option:: AllowConditionalIntegerCasts + + When non-zero, the check will allow conditional integer casts. + `0` by default. + +.. option:: AllowConditionalPointerCasts + + When non-zero, the check will allow conditional pointer casts. + `0` by default. Index: docs/clang-tidy/checks/performance-unnecessary-value-param.rst =================================================================== --- docs/clang-tidy/checks/performance-unnecessary-value-param.rst +++ docs/clang-tidy/checks/performance-unnecessary-value-param.rst @@ -53,3 +53,11 @@ void setValue(string Value) { Field = std::move(Value); } + +Options +------- + +.. option:: IncludeStyle + + A string specifying which include-style is used, `llvm` or `google`. `llvm` + by default. Index: docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst =================================================================== --- docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst +++ docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst @@ -47,3 +47,11 @@ void g() { f(std::string(a).append("Bar").append(b)); } + +Options +------- + +.. option:: StrictMode + + When zero, the check will only check the string usage in ``while``, ``for`` + and ``for-range`` statements. 0 by default. Index: docs/clang-tidy/checks/performance-for-range-copy.rst =================================================================== --- docs/clang-tidy/checks/performance-for-range-copy.rst +++ docs/clang-tidy/checks/performance-for-range-copy.rst @@ -17,3 +17,10 @@ 2. The loop variable is not const, but only const methods or operators are invoked on it, or it is used as const reference or value argument in constructors or function calls. + +Options +------- + +.. options:: WarnOnAllAutoCopies + + When non-zero, the check will warn on all auto copies. `0` by default. Index: docs/clang-tidy/checks/modernize-replace-auto-ptr.rst =================================================================== --- docs/clang-tidy/checks/modernize-replace-auto-ptr.rst +++ docs/clang-tidy/checks/modernize-replace-auto-ptr.rst @@ -70,3 +70,11 @@ // only 'f<int>()' (or similar) will trigger the replacement. + +Options +------- + +.. option:: IncludeStyle + + A string specifying which include-style is used, `llvm` or `google`. + `llvm` by default. Index: docs/clang-tidy/checks/modernize-pass-by-value.rst =================================================================== --- docs/clang-tidy/checks/modernize-pass-by-value.rst +++ docs/clang-tidy/checks/modernize-pass-by-value.rst @@ -151,3 +151,11 @@ For more information about the pass-by-value idiom, read: `Want Speed? Pass by Value`_. .. _Want Speed? Pass by Value: http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/ + +Options +------- + +.. option:: IncludeStyle + + A string specifying which include-style is used, `llvm` or `google`. `llvm` + by default. Index: docs/clang-tidy/checks/misc-suspicious-string-compare.rst =================================================================== --- docs/clang-tidy/checks/misc-suspicious-string-compare.rst +++ docs/clang-tidy/checks/misc-suspicious-string-compare.rst @@ -38,3 +38,19 @@ .. code:: c++ if (strcmp(...) < 0.) // Incorrect usage of the returned value. + +Options +------- + +.. option:: WarnOnImplicitComparison + + When non-zero, the check will warn on implicit comparison. `1` by default. + +.. option:: WarnOnLogicalNotComparison + + When non-zero, the check will warn on logical not comparison. `0` by default. + +.. option:: StringCompareLikeFunctions + + A string represents the name of detecting string compare function. `` by + default. Index: docs/clang-tidy/checks/misc-suspicious-missing-comma.rst =================================================================== --- docs/clang-tidy/checks/misc-suspicious-missing-comma.rst +++ docs/clang-tidy/checks/misc-suspicious-missing-comma.rst @@ -39,3 +39,21 @@ "Code " PRIu64, // May warn here. "Warning %s", }; + +Options +------- + +.. option:: SizeThreshold + + An unsigned integer represents minimal size of a string literals array to be + considered by the checker. `5U` by default. + +.. option:: RatioThreshold + + A string represents maximal threshold ratio of suspicious string literals to + be considered. `.2` by default. + +.. option:: MaxConcatenatedTokens + + An unsigned integer represents maximal number of concatenated tokens. + `5U` by default. Index: docs/clang-tidy/checks/misc-string-constructor.rst =================================================================== --- docs/clang-tidy/checks/misc-string-constructor.rst +++ docs/clang-tidy/checks/misc-string-constructor.rst @@ -30,3 +30,16 @@ .. code-block:: c++ std::string("test", 0); // Creation of an empty string. + +Options +------- + +.. options:: WarnOnLargeLength + + When non-zero, the check will warn on the large length string. `1` by + default. + +.. options:: LargeLengthThreshold + + An integer represents the large length threshold. `134217728 (0x8000000)` by + default. Index: docs/clang-tidy/checks/misc-sizeof-expression.rst =================================================================== --- docs/clang-tidy/checks/misc-sizeof-expression.rst +++ docs/clang-tidy/checks/misc-sizeof-expression.rst @@ -135,3 +135,21 @@ void getInt(int* dst) { memcpy(dst, buf, sizeof(INT_SZ)); // sizeof(sizeof(int)) is suspicious. } + +Options +------- + +.. option:: WarnOnSizeOfConstant + + When non-zero, the check will warn on expression like ``sizeof(CONSTANT)``. + `1` by default. + +.. option:: WarnOnSizeOfThis + + When non-zero, the check will warn on expression like ``sizeof(this)``. + `1` by default. + +.. option:: WarnOnSizeOfCompareToConstant + + When non-zero, the check will warn on expression like ``sizeof(epxr) <= k`` + for a suspicious constant 'k'. `1` by default. Index: docs/clang-tidy/checks/misc-move-constructor-init.rst =================================================================== --- docs/clang-tidy/checks/misc-move-constructor-init.rst +++ docs/clang-tidy/checks/misc-move-constructor-init.rst @@ -11,3 +11,17 @@ It also flags constructor arguments that are passed by value, have a non-deleted move-constructor and are assigned to a class field by copy construction. + +Options +------- + +.. option:: IncludeStyle + + A string specifying which include-style is used, `llvm` or `google`. `llvm` + by default. + + +.. option:: UseCERTSemantics + + When non-zero, the checker is also used to implement cert-oop11-cpp. `0` by + default. Index: docs/clang-tidy/checks/misc-definitions-in-headers.rst =================================================================== --- docs/clang-tidy/checks/misc-definitions-in-headers.rst +++ docs/clang-tidy/checks/misc-definitions-in-headers.rst @@ -73,3 +73,18 @@ // OK: member function definition of a class template is allowed. template <typename T> void B<T>::f1() {} + +Options +------- + +.. option:: HeaderFileExtensions + + A comma-separated list of filename extensions of header files (the filename + extensions should not contain "." prefix). "h,hh,hpp,hxx" by default. For + extension-less header files, using an empty string or leaving an empty string + between "," if there are other filename extensions. + +.. option:: UseHeaderFileExtension + + When non-zero, the check will use use file extension to distinguish header + files. `1` by default. Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -1,7 +1,7 @@ .. title:: clang-tidy - Clang-Tidy Checks Clang-Tidy Checks -========================= +================= .. toctree:: boost-use-to-string Index: docs/clang-tidy/checks/google-runtime-int.rst =================================================================== --- docs/clang-tidy/checks/google-runtime-int.rst +++ docs/clang-tidy/checks/google-runtime-int.rst @@ -10,3 +10,18 @@ https://google.github.io/styleguide/cppguide.html#Integer_Types. Correspondig cpplint.py check: `runtime/int`. + +Options +------- + +.. options:: UnsignedTypePrefix + + A string represents unsigned type prefix. `uint` by default. + +.. options:: SignedTypePrefix + + A string represents singed type prefix. `int` by default. + +.. options:: TypeSuffix + + A string represents type suffix. `` by default. Index: docs/clang-tidy/checks/google-readability-namespace-comments.rst =================================================================== --- docs/clang-tidy/checks/google-readability-namespace-comments.rst +++ docs/clang-tidy/checks/google-readability-namespace-comments.rst @@ -7,3 +7,15 @@ The google-readability-namespace-comments check is an alias, please see `llvm-namespace-comment <llvm-namespace-comment.html>`_ for more information. + +Options +------- + +.. option:: ShortNamespaceLines; + + An unsigned integer represents the maximal number of lines of the namespace + that is not required closing commments. `1U` by default. + +.. option:: SpacesBeforeComments; + + An unsigned integer represents spaces before comments. `1U` by default. Index: docs/clang-tidy/checks/google-build-namespaces.rst =================================================================== --- docs/clang-tidy/checks/google-build-namespaces.rst +++ docs/clang-tidy/checks/google-build-namespaces.rst @@ -10,3 +10,13 @@ https://google.github.io/styleguide/cppguide.html#Namespaces Corresponding cpplint.py check name: `build/namespaces`. + +Options +------- + +.. option:: HeaderFileExtensions + + A comma-separated list of filename extensions of header files (the filename + extensions should not contain "." prefix). "h,hh,hpp,hxx" by default. For + extension-less header files, using an empty string or leaving an empty string + between "," if there are other filename extensions. Index: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst =================================================================== --- docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst +++ docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst @@ -18,3 +18,8 @@ The check can generate fixes after this option has been set to the name of the include file that contains ``gsl::at()``, e.g. `"gsl/gsl.h"`. + +.. option:: IncludeStyle + + A string specifying which include-style is used, `llvm` or `google`. `llvm` + by default.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits