From da170fedbf6f338cdda33c09260d45895de0e069 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue <inouehrs@jp.ibm.com> Date: Fri, 26 Jan 2018 08:15:52 +0000 Subject: [PATCH] [NFC] fix trivial typos in comments and documents "in in" -> "in", "on on" -> "on" etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323509 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/InternalsManual.rst | 2 +- docs/doxygen.cfg.in | 2 +- include/clang/AST/OpenMPClause.h | 2 +- include/clang/Frontend/SerializedDiagnosticPrinter.h | 2 +- include/clang/Lex/HeaderSearch.h | 2 +- include/clang/Lex/MultipleIncludeOpt.h | 2 +- lib/CodeGen/CGObjC.cpp | 2 +- lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp | 2 +- test/Analysis/temporaries.cpp | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/InternalsManual.rst b/docs/InternalsManual.rst index 058c63f0af..b23d31468d 100644 --- a/docs/InternalsManual.rst +++ b/docs/InternalsManual.rst @@ -1823,7 +1823,7 @@ Note that setting this member to 1 will opt out of common attribute semantic handling, requiring extra implementation efforts to ensure the attribute appertains to the appropriate subject, etc. -If the attribute should not be propagated from from a template declaration to an +If the attribute should not be propagated from a template declaration to an instantiation of the template, set the ``Clone`` member to 0. By default, all attributes will be cloned to template instantiations. diff --git a/docs/doxygen.cfg.in b/docs/doxygen.cfg.in index 13ed72222b..08f4253d85 100644 --- a/docs/doxygen.cfg.in +++ b/docs/doxygen.cfg.in @@ -284,7 +284,7 @@ MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word +# be prevented in individual cases by putting a % sign in front of the word # or globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. diff --git a/include/clang/AST/OpenMPClause.h b/include/clang/AST/OpenMPClause.h index b2ea8bf8e3..abcd1cbefc 100644 --- a/include/clang/AST/OpenMPClause.h +++ b/include/clang/AST/OpenMPClause.h @@ -3902,7 +3902,7 @@ public: OpenMPMapClauseKind Type, bool TypeIsImplicit, SourceLocation TypeLoc); - /// \brief Creates an empty clause with the place for for \a NumVars original + /// \brief Creates an empty clause with the place for \a NumVars original /// expressions, \a NumUniqueDeclarations declarations, \NumComponentLists /// lists, and \a NumComponents expression components. /// diff --git a/include/clang/Frontend/SerializedDiagnosticPrinter.h b/include/clang/Frontend/SerializedDiagnosticPrinter.h index 4c57e9d404..36ef01488f 100644 --- a/include/clang/Frontend/SerializedDiagnosticPrinter.h +++ b/include/clang/Frontend/SerializedDiagnosticPrinter.h @@ -29,7 +29,7 @@ namespace serialized_diags { /// a bitcode file. /// /// The created DiagnosticConsumer is designed for quick and lightweight -/// transfer of of diagnostics to the enclosing build system (e.g., an IDE). +/// transfer of diagnostics to the enclosing build system (e.g., an IDE). /// This allows wrapper tools for Clang to get diagnostics from Clang /// (via libclang) without needing to parse Clang's command line output. /// diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h index 6b9dbfcd1e..14a7198475 100644 --- a/include/clang/Lex/HeaderSearch.h +++ b/include/clang/Lex/HeaderSearch.h @@ -416,7 +416,7 @@ public: return FrameworkMap[FWName]; } - /// \brief Mark the specified file as a target of of a \#include, + /// \brief Mark the specified file as a target of a \#include, /// \#include_next, or \#import directive. /// /// \return false if \#including the file will have no effect or true diff --git a/include/clang/Lex/MultipleIncludeOpt.h b/include/clang/Lex/MultipleIncludeOpt.h index 3967f86889..00d3047e53 100644 --- a/include/clang/Lex/MultipleIncludeOpt.h +++ b/include/clang/Lex/MultipleIncludeOpt.h @@ -119,7 +119,7 @@ public: /// Note, we don't care about the input value of 'ReadAnyTokens'. The caller /// ensures that this is only called if there are no tokens read before the /// \#ifndef. The caller is required to do this, because reading the \#if - /// line obviously reads in in tokens. + /// line obviously reads in tokens. void EnterTopLevelIfndef(const IdentifierInfo *M, SourceLocation Loc) { // If the macro is already set, this is after the top-level #endif. if (TheMacro) diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 1e022f0e9a..43f34e7965 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -2071,7 +2071,7 @@ CodeGenFunction::EmitARCRetainAutoreleasedReturnValue(llvm::Value *value) { /// Claim a possibly-autoreleased return value at +0. This is only /// valid to do in contexts which do not rely on the retain to keep -/// the object valid for for all of its uses; for example, when +/// the object valid for all of its uses; for example, when /// the value is ignored, or when it is being assigned to an /// __unsafe_unretained variable. /// diff --git a/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp b/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp index b67ba7e9f4..bfd4019ed8 100644 --- a/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp +++ b/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp @@ -535,7 +535,7 @@ void ObjCDeallocChecker::diagnoseMissingReleases(CheckerContext &C) const { continue; // Prevents diagnosing multiple times for the same instance variable - // at, for example, both a return and at the end of of the function. + // at, for example, both a return and at the end of the function. NewUnreleased = F.remove(NewUnreleased, IvarSymbol); if (State->getStateManager() diff --git a/test/Analysis/temporaries.cpp b/test/Analysis/temporaries.cpp index 99851dd685..9e2d45f693 100644 --- a/test/Analysis/temporaries.cpp +++ b/test/Analysis/temporaries.cpp @@ -434,7 +434,7 @@ namespace destructors { const CtorWithNoReturnDtor &c = CtorWithNoReturnDtor(); // This represents an (expected) loss of coverage, since the destructor - // of the lifetime-exended temporary is executed at at the end of + // of the lifetime-exended temporary is executed at the end of // scope. clang_analyzer_warnIfReached(); // no-warning } -- 2.40.0