diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/cppcoreguidelines')
| -rw-r--r-- | clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp | 4 | ||||
| -rw-r--r-- | clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp b/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp index fc334fb5b3b..96e9d3edc01 100644 --- a/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp +++ b/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp @@ -31,7 +31,7 @@ AST_MATCHER(CXXRecordDecl, hasDefaultConstructor) { } // Iterate over all the fields in a record type, both direct and indirect (e.g. -// if the record contains an anonmyous struct). +// if the record contains an anonymous struct). template <typename T, typename Func> void forEachField(const RecordDecl &Record, const T &Fields, Func &&Fn) { for (const FieldDecl *F : Fields) { @@ -424,7 +424,7 @@ void ProTypeMemberInitCheck::checkMissingMemberInitializer( } // Collect all fields in order, both direct fields and indirect fields from - // anonmyous record types. + // anonymous record types. SmallVector<const FieldDecl *, 16> OrderedFields; forEachField(ClassDecl, ClassDecl.fields(), [&](const FieldDecl *F) { OrderedFields.push_back(F); }); diff --git a/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp b/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp index 62c4c768e84..6f0afe989d4 100644 --- a/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp +++ b/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp @@ -45,7 +45,7 @@ void SlicingCheck::registerMatchers(MatchFinder *Finder) { const auto IsWithinDerivedCtor = hasParent(cxxConstructorDecl(ofClass(equalsBoundNode("DerivedDecl")))); - // Assignement slicing: "a = b;" and "a = std::move(b);" variants. + // Assignment slicing: "a = b;" and "a = std::move(b);" variants. const auto SlicesObjectInAssignment = callExpr(callee(cxxMethodDecl(anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator()), |

