Author: Nico Weber Date: 2022-04-04T10:18:08-04:00 New Revision: a97e3097cfdfea5a20d3b867571c42ffa0666b01
URL: https://github.com/llvm/llvm-project/commit/a97e3097cfdfea5a20d3b867571c42ffa0666b01 DIFF: https://github.com/llvm/llvm-project/commit/a97e3097cfdfea5a20d3b867571c42ffa0666b01.diff LOG: fix comment typos to cycle bots Added: Modified: clang/include/clang/AST/DeclTemplate.h clang/include/clang/AST/NestedNameSpecifier.h clang/include/clang/AST/Stmt.h clang/include/clang/CrossTU/CrossTranslationUnit.h clang/include/clang/Index/IndexingOptions.h Removed: ################################################################################ diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 0459ee8fb6164..ca3a8030ffc61 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -1109,7 +1109,7 @@ class FunctionTemplateDecl : public RedeclarableTemplateDecl { bool isAbbreviated() const { // Since the invented template parameters generated from 'auto' parameters // are either appended to the end of the explicit template parameter list or - // form a new template paramter list, we can simply observe the last + // form a new template parameter list, we can simply observe the last // parameter to determine if such a thing happened. const TemplateParameterList *TPL = getTemplateParameters(); return TPL->getParam(TPL->size() - 1)->isImplicit(); diff --git a/clang/include/clang/AST/NestedNameSpecifier.h b/clang/include/clang/AST/NestedNameSpecifier.h index eb01780598a7f..3b6cf97211850 100644 --- a/clang/include/clang/AST/NestedNameSpecifier.h +++ b/clang/include/clang/AST/NestedNameSpecifier.h @@ -162,7 +162,7 @@ class NestedNameSpecifier : public llvm::FoldingSetNode { /// Return the prefix of this nested name specifier. /// /// The prefix contains all of the parts of the nested name - /// specifier that preced this current specifier. For example, for a + /// specifier that precede this current specifier. For example, for a /// nested name specifier that represents "foo::bar::", the current /// specifier will contain "bar::" and the prefix will contain /// "foo::". diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index adde424c938f7..1135981319c1a 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -594,7 +594,7 @@ class alignas(void *) Stmt { unsigned : NumExprBits; /// The kind of source location builtin represented by the SourceLocExpr. - /// Ex. __builtin_LINE, __builtin_FUNCTION, ect. + /// Ex. __builtin_LINE, __builtin_FUNCTION, etc. unsigned Kind : 3; }; @@ -1244,7 +1244,7 @@ class alignas(void *) Stmt { } /// Child Iterators: All subclasses must implement 'children' - /// to permit easy iteration over the substatements/subexpessions of an + /// to permit easy iteration over the substatements/subexpressions of an /// AST node. This permits easy iteration over all nodes in the AST. using child_iterator = StmtIterator; using const_child_iterator = ConstStmtIterator; diff --git a/clang/include/clang/CrossTU/CrossTranslationUnit.h b/clang/include/clang/CrossTU/CrossTranslationUnit.h index a41c32d4068b2..f94f246e6e32a 100644 --- a/clang/include/clang/CrossTU/CrossTranslationUnit.h +++ b/clang/include/clang/CrossTU/CrossTranslationUnit.h @@ -228,7 +228,7 @@ class CrossTranslationUnitContext { StringRef InvocationListFilePath); /// Load the ASTUnit by its identifier found in the index file. If the - /// indentifier is suffixed with '.ast' it is considered a dump. Otherwise + /// identifier is suffixed with '.ast' it is considered a dump. Otherwise /// it is treated as source-file, and on-demand parsed. Relative paths are /// prefixed with CTUDir. LoadResultTy load(StringRef Identifier); diff --git a/clang/include/clang/Index/IndexingOptions.h b/clang/include/clang/Index/IndexingOptions.h index d19653848d59f..97847dd7d5d88 100644 --- a/clang/include/clang/Index/IndexingOptions.h +++ b/clang/include/clang/Index/IndexingOptions.h @@ -29,9 +29,9 @@ struct IndexingOptions { bool IndexFunctionLocals = false; bool IndexImplicitInstantiation = false; bool IndexMacros = true; - // Whether to index macro definitions in the Preprocesor when preprocessor + // Whether to index macro definitions in the Preprocessor when preprocessor // callback is not available (e.g. after parsing has finished). Note that - // macro references are not available in Proprocessor. + // macro references are not available in Preprocessor. bool IndexMacrosInPreprocessor = false; // Has no effect if IndexFunctionLocals are false. bool IndexParametersInDeclarations = false; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits