Author: Bogdan Vetrenko Date: 2025-07-14T20:37:26+03:00 New Revision: 2244f57130a5bc01f1c7713b6d7d55da926814cf
URL: https://github.com/llvm/llvm-project/commit/2244f57130a5bc01f1c7713b6d7d55da926814cf DIFF: https://github.com/llvm/llvm-project/commit/2244f57130a5bc01f1c7713b6d7d55da926814cf.diff LOG: [clang][NFC] Fix typos and grammar in comments in ASTDiagnostic (#148359) Added: Modified: clang/lib/AST/ASTDiagnostic.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ASTDiagnostic.cpp b/clang/lib/AST/ASTDiagnostic.cpp index 0fa9234159f22..2ef0c31ec1bd9 100644 --- a/clang/lib/AST/ASTDiagnostic.cpp +++ b/clang/lib/AST/ASTDiagnostic.cpp @@ -582,7 +582,7 @@ class TemplateDiff { /// IsBold - Keeps track of the bold formatting for the output string. bool IsBold; - /// DiffTree - A tree representation the diff erences between two types. + /// DiffTree - A tree representation of the diff erences between two types. class DiffTree { public: /// DiffKind - The diff erence in a DiffNode. Fields of @@ -802,7 +802,7 @@ class TemplateDiff { CurrentNode = FlatTree[CurrentNode].ParentNode; } - /// AddNode - Adds a child node to the current node, then sets that node + /// AddNode - Adds a child node to the current node, then sets that /// node as the current node. void AddNode() { assert(FlatTree[CurrentNode].Kind == Template && @@ -937,12 +937,12 @@ class TemplateDiff { return FlatTree[ReadNode].ToArgInfo.IsDefault; } - /// NodeIsSame - Returns true the arguments are the same. + /// NodeIsSame - Returns true if the arguments are the same. bool NodeIsSame() { return FlatTree[ReadNode].Same; } - /// HasChildrend - Returns true if the node has children. + /// HasChildren - Returns true if the node has children. bool HasChildren() { return FlatTree[ReadNode].ChildNode != 0; } @@ -982,7 +982,7 @@ class TemplateDiff { /// TSTiterator - a pair of iterators that walks the /// TemplateSpecializationType and the desugared TemplateSpecializationType. - /// The deseguared TemplateArgument should provide the canonical argument + /// The desugared TemplateArgument should provide the canonical argument /// for comparisons. class TSTiterator { typedef const TemplateArgument& reference; @@ -993,7 +993,7 @@ class TemplateDiff { /// parameter packs in order with the rest of the TemplateArguments. struct InternalIterator { /// TST - the template specialization whose arguments this iterator - /// traverse over. + /// traverses over. const TemplateSpecializationType *TST; /// Index - the index of the template argument in TST. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits