[clang-tools-extra] 8883cb3 - Fix nits.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 12 09:46:55 PDT 2021


Author: Alexander Kornienko
Date: 2021-04-12T18:46:13+02:00
New Revision: 8883cb3e4004aebddf9bd0f92ea47ba897397794

URL: https://github.com/llvm/llvm-project/commit/8883cb3e4004aebddf9bd0f92ea47ba897397794
DIFF: https://github.com/llvm/llvm-project/commit/8883cb3e4004aebddf9bd0f92ea47ba897397794.diff

LOG: Fix nits.

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
    clang-tools-extra/docs/clang-tidy/checks/readability-function-cognitive-complexity.rst

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
index 0e931c708e4a..9f53a5578b0a 100644
--- a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
@@ -227,7 +227,7 @@ class FunctionASTVisitor final
 
 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 5337a2997d37..79f6bf4ddf4f 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 @@ Options
 
    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


        


More information about the cfe-commits mailing list