Author: Kazuaki Ishizaki Date: 2021-09-04T12:59:42+05:30 New Revision: 8f77dc459e31aad6daab89a124fa92067916274c
URL: https://github.com/llvm/llvm-project/commit/8f77dc459e31aad6daab89a124fa92067916274c DIFF: https://github.com/llvm/llvm-project/commit/8f77dc459e31aad6daab89a124fa92067916274c.diff LOG: [clang] NFC: Fix trivial typo in comments and document `the the` -> `the` Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D77470 Added: Modified: clang/docs/LibASTMatchersReference.html clang/include/clang/AST/ASTStructuralEquivalence.h clang/include/clang/AST/ComparisonCategories.h clang/include/clang/AST/OpenMPClause.h clang/include/clang/ASTMatchers/ASTMatchers.h clang/include/clang/DirectoryWatcher/DirectoryWatcher.h clang/include/clang/Tooling/Transformer/RangeSelector.h clang/lib/CodeGen/CGExprScalar.cpp clang/lib/Lex/PPDirectives.cpp clang/lib/Sema/SemaAvailability.cpp Removed: ################################################################################ diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 73b8a4fcafe51..016531043a831 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -5038,7 +5038,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2> <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Stmt.html">Stmt</a>></td><td class="name" onclick="toggle('isExpandedFromMacro1')"><a name="isExpandedFromMacro1Anchor">isExpandedFromMacro</a></td><td>std::string MacroName</td></tr> <tr><td colspan="4" class="doc" id="isExpandedFromMacro1"><pre>Matches statements that are (transitively) expanded from the named macro. Does not match if only part of the statement is expanded from that macro or -if diff erent parts of the the statement are expanded from diff erent +if diff erent parts of the statement are expanded from diff erent appearances of the macro. </pre></td></tr> diff --git a/clang/include/clang/AST/ASTStructuralEquivalence.h b/clang/include/clang/AST/ASTStructuralEquivalence.h index c958a16aba213..0b9e9e4e605fd 100644 --- a/clang/include/clang/AST/ASTStructuralEquivalence.h +++ b/clang/include/clang/AST/ASTStructuralEquivalence.h @@ -117,7 +117,7 @@ struct StructuralEquivalenceContext { static llvm::Optional<unsigned> findUntaggedStructOrUnionIndex(RecordDecl *Anon); - // If ErrorOnTagTypeMismatch is set, return the the error, otherwise get the + // If ErrorOnTagTypeMismatch is set, return the error, otherwise get the // relevant warning for the input error diagnostic. unsigned getApplicableDiagnostic(unsigned ErrorDiagnostic); diff --git a/clang/include/clang/AST/ComparisonCategories.h b/clang/include/clang/AST/ComparisonCategories.h index fb648b322b61c..7b73b582fe2a6 100644 --- a/clang/include/clang/AST/ComparisonCategories.h +++ b/clang/include/clang/AST/ComparisonCategories.h @@ -145,7 +145,7 @@ class ComparisonCategoryInfo { return Kind == CCK::PartialOrdering; } - /// Converts the specified result kind into the the correct result kind + /// Converts the specified result kind into the correct result kind /// for this category. Specifically it lowers strong equality results to /// weak equivalence if needed. ComparisonCategoryResult makeWeakResult(ComparisonCategoryResult Res) const { diff --git a/clang/include/clang/AST/OpenMPClause.h b/clang/include/clang/AST/OpenMPClause.h index fdf032ce63923..3b78dc87684f1 100644 --- a/clang/include/clang/AST/OpenMPClause.h +++ b/clang/include/clang/AST/OpenMPClause.h @@ -2005,13 +2005,13 @@ class OMPUpdateClause final return IsExtended ? 2 : 0; } - /// Sets the the location of '(' in clause for 'depobj' directive. + /// Sets the location of '(' in clause for 'depobj' directive. void setLParenLoc(SourceLocation Loc) { assert(IsExtended && "Expected extended clause."); *getTrailingObjects<SourceLocation>() = Loc; } - /// Sets the the location of '(' in clause for 'depobj' directive. + /// Sets the location of '(' in clause for 'depobj' directive. void setArgumentLoc(SourceLocation Loc) { assert(IsExtended && "Expected extended clause."); *std::next(getTrailingObjects<SourceLocation>(), 1) = Loc; @@ -2085,13 +2085,13 @@ class OMPUpdateClause final return const_child_range(const_child_iterator(), const_child_iterator()); } - /// Gets the the location of '(' in clause for 'depobj' directive. + /// Gets the location of '(' in clause for 'depobj' directive. SourceLocation getLParenLoc() const { assert(IsExtended && "Expected extended clause."); return *getTrailingObjects<SourceLocation>(); } - /// Gets the the location of argument in clause for 'depobj' directive. + /// Gets the location of argument in clause for 'depobj' directive. SourceLocation getArgumentLoc() const { assert(IsExtended && "Expected extended clause."); return *std::next(getTrailingObjects<SourceLocation>(), 1); diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 25b4499146e90..2baa17b59da83 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -308,7 +308,7 @@ AST_POLYMORPHIC_MATCHER_REGEX(isExpansionInFileMatching, /// Matches statements that are (transitively) expanded from the named macro. /// Does not match if only part of the statement is expanded from that macro or -/// if diff erent parts of the the statement are expanded from diff erent +/// if diff erent parts of the statement are expanded from diff erent /// appearances of the macro. AST_POLYMORPHIC_MATCHER_P(isExpandedFromMacro, AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), diff --git a/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h b/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h index 4475807dfce9a..d879b6411c9ed 100644 --- a/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h +++ b/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h @@ -20,7 +20,7 @@ namespace clang { /// Provides notifications for file changes in a directory. /// /// Invokes client-provided function on every filesystem event in the watched -/// directory. Initially the the watched directory is scanned and for every file +/// directory. Initially the watched directory is scanned and for every file /// found, an event is synthesized as if the file was added. /// /// This is not a general purpose directory monitoring tool - list of diff --git a/clang/include/clang/Tooling/Transformer/RangeSelector.h b/clang/include/clang/Tooling/Transformer/RangeSelector.h index 8ff31f7a03428..38ec24efec655 100644 --- a/clang/include/clang/Tooling/Transformer/RangeSelector.h +++ b/clang/include/clang/Tooling/Transformer/RangeSelector.h @@ -50,7 +50,7 @@ inline RangeSelector range(std::string BeginID, std::string EndID) { /// Selects the (empty) range [B,B) when \p Selector selects the range [B,E). RangeSelector before(RangeSelector Selector); -/// Selects the the point immediately following \p Selector. That is, the +/// Selects the point immediately following \p Selector. That is, the /// (empty) range [E,E), when \p Selector selects either /// * the CharRange [B,E) or /// * the TokenRange [B,E'] where the token at E' spans the range [E',E). diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 5485b3d363fbf..6c82fcb1e97fa 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -4961,7 +4961,7 @@ static GEPOffsetAndOverflow EmitGEPOffsetInBytes(Value *BasePtr, Value *GEPVal, auto *GEP = cast<llvm::GEPOperator>(GEPVal); assert(GEP->getPointerOperand() == BasePtr && - "BasePtr must be the the base of the GEP."); + "BasePtr must be the base of the GEP."); assert(GEP->isInBounds() && "Expected inbounds GEP"); auto *IntPtrTy = DL.getIntPtrType(GEP->getPointerOperandType()); diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index b0300b3d68ad0..7ea5cb1eb073b 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -112,7 +112,7 @@ enum PPElifDiag { // the specified module, meaning clang won't build the specified module. This is // useful in a number of situations, for instance, when building a library that // vends a module map, one might want to avoid hitting intermediate build -// products containing the the module map or avoid finding the system installed +// products containimg the module map or avoid finding the system installed // modulemap for that library. static bool isForModuleBuilding(Module *M, StringRef CurrentModule, StringRef ModuleName) { diff --git a/clang/lib/Sema/SemaAvailability.cpp b/clang/lib/Sema/SemaAvailability.cpp index bb704b1066cf8..edbeced3da4e0 100644 --- a/clang/lib/Sema/SemaAvailability.cpp +++ b/clang/lib/Sema/SemaAvailability.cpp @@ -57,7 +57,7 @@ static const AvailabilityAttr *getAttrForPlatform(ASTContext &Context, /// \param D The declaration to check. /// \param Message If non-null, this will be populated with the message from /// the availability attribute that is selected. -/// \param ClassReceiver If we're checking the the method of a class message +/// \param ClassReceiver If we're checking the method of a class message /// send, the class. Otherwise nullptr. static std::pair<AvailabilityResult, const NamedDecl *> ShouldDiagnoseAvailabilityOfDecl(Sema &S, const NamedDecl *D, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits