commit | 8883cb3e4004aebddf9bd0f92ea47ba897397794 | [log] [tgz] |
---|---|---|
author | Alexander Kornienko <alexfh@google.com> | Mon Apr 12 18:28:01 2021 +0200 |
committer | Alexander Kornienko <alexfh@google.com> | Mon Apr 12 18:46:13 2021 +0200 |
tree | a1c8e919b119f27fcdf2e9e23b2ff3bc9ad60420 | |
parent | 8a944d82cd14001a92ef088229041ee0fb1fd1e6 [diff] |
Fix nits.
diff --git a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp index 0e931c7..9f53a55 100644 --- a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
@@ -227,7 +227,7 @@ public: explicit FunctionASTVisitor(const bool IgnoreMacros) - : IgnoreMacros(IgnoreMacros){}; + : IgnoreMacros(IgnoreMacros) {} bool traverseStmtWithIncreasedNestingLevel(Stmt *Node) { ++CurrentNestingLevel;
diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-function-cognitive-complexity.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-function-cognitive-complexity.rst index 5337a29..79f6bf4 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-function-cognitive-complexity.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-function-cognitive-complexity.rst
@@ -28,7 +28,7 @@ If set to `true`, the check will ignore code inside macros. Note, that also any macro arguments are ignored, even if they should count to the complexity. - As this might change in the future, this option isn't guarantueed to be + As this might change in the future, this option isn't guaranteed to be forward-compatible. Default is `false`. Building blocks