diff options
| -rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp | 10 | ||||
| -rw-r--r-- | clang/include/clang/AST/Decl.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp index 619c0c18fd5..2e007171677 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp @@ -426,7 +426,7 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors( // replacements. To detect overlapping replacements, we use a sweep line // algorithm over these sets of intervals. // An event here consists of the opening or closing of an interval. During the - // proccess, we maintain a counter with the amount of open intervals. If we + // process, we maintain a counter with the amount of open intervals. If we // find an endpoint of an interval and this counter is different from 0, it // means that this interval overlaps with another one, so we set it as // inapplicable. @@ -448,7 +448,7 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors( // priority than begin events. // // * If we have several begin points at the same position, we will mark as - // inapplicable the ones that we proccess later, so the first one has to + // inapplicable the ones that we process later, so the first one has to // be the one with the latest end point, because this one will contain // all the other intervals. For the same reason, if we have several end // points in the same position, the last one has to be the one with the @@ -456,14 +456,14 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors( // position of the complementary. // // * In case of two equal intervals, the one whose error is bigger can - // potentially contain the other one, so we want to proccess its begin + // potentially contain the other one, so we want to process its begin // points before and its end points later. // // * Finally, if we have two equal intervals whose errors have the same // size, none of them will be strictly contained inside the other. // Sorting by ErrorId will guarantee that the begin point of the first - // one will be proccessed before, disallowing the second one, and the - // end point of the first one will also be proccessed before, + // one will be processed before, disallowing the second one, and the + // end point of the first one will also be processed before, // disallowing the first one. if (Type == ET_Begin) Priority = std::make_tuple(Begin, Type, -End, -ErrorSize, ErrorId); diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 109036f9588..90c854535e7 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -789,7 +789,7 @@ public: protected: // A pointer union of Stmt * and EvaluatedStmt *. When an EvaluatedStmt, we - // have allocated the auxilliary struct of information there. + // have allocated the auxiliary struct of information there. // // TODO: It is a bit unfortunate to use a PointerUnion inside the VarDecl for // this as *many* VarDecls are ParmVarDecls that don't have default |

