]> granicus.if.org Git - clang/commitdiff
Fix a typo (the the => the)
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Jul 2012 08:59:39 +0000 (08:59 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Jul 2012 08:59:39 +0000 (08:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160622 91177308-0d34-0410-b5e6-96231b3b80d8

30 files changed:
docs/InternalsManual.html
include/clang-c/Index.h
include/clang/AST/CommentLexer.h
include/clang/Basic/DiagnosticIDs.h
include/clang/Basic/SourceManager.h
include/clang/Lex/HeaderSearch.h
include/clang/Sema/Sema.h
include/clang/Serialization/ASTReader.h
lib/ARCMigrate/TransBlockObjCVariable.cpp
lib/AST/Decl.cpp
lib/AST/VTableBuilder.cpp
lib/Analysis/ThreadSafety.cpp
lib/CodeGen/CGObjC.cpp
lib/Frontend/TextDiagnostic.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Lex/TokenLexer.cpp
lib/Parse/ParseDecl.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOverload.cpp
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
lib/StaticAnalyzer/Core/CoreEngine.cpp
test/Modules/cstd.m
test/Sema/conditional-expr.c
test/SemaObjC/continuation-class-err.m
www/get_started.html

index 38cd8498e66e6f278a40ae360b802936808c69de..c6df19c0d004fe8e6855228839ce0c79d4ddcaad 100644 (file)
@@ -361,7 +361,7 @@ Clang:</p>
 <tr><td colspan="2"><b>"diff" format</b></td></tr>
 <tr><td>Example:</td><td><tt>"no known conversion %diff{from | to | }1,2"</tt></td></tr>
 <tr><td>Class:</td><td>QualType</td></tr>
-<tr><td>Description</td><td><p>This formatter takes two QualTypes and attempts to print a template difference between the two.  If tree printing is off, the text inside the the braces before the pipe is printed, with the formatted text replacing the $.  If tree printing is on, the text after the pipe is printed and a type tree is printed after the diagnostic message.
+<tr><td>Description</td><td><p>This formatter takes two QualTypes and attempts to print a template difference between the two.  If tree printing is off, the text inside the braces before the pipe is printed, with the formatted text replacing the $.  If tree printing is on, the text after the pipe is printed and a type tree is printed after the diagnostic message.
 </p></td></tr>
     
 </table>
index 93a522457e7a4d5a60d21374acdf58675d4da3ab..0c45697a80a0ce2c10a98548cd152d2619fb6333 100644 (file)
@@ -2788,7 +2788,7 @@ CINDEX_LINKAGE long long clang_getNumElements(CXType T);
 CINDEX_LINKAGE CXType clang_getArrayElementType(CXType T);
 
 /**
- * \brief Return the the array size of a constant array.
+ * \brief Return the array size of a constant array.
  *
  * If a non-array type is passed in, -1 is returned.
  */
index 41e84db839f871545e43509fc570bf29ddc23680..d5319a314e94553512220ac6850d8bab104f4f8f 100644 (file)
@@ -270,7 +270,7 @@ private:
   /// Registered verbatim-like block commands.
   VerbatimBlockCommandVector VerbatimBlockCommands;
 
-  /// If State is LS_VerbatimBlock, contains the the name of verbatim end
+  /// If State is LS_VerbatimBlock, contains the name of verbatim end
   /// command, including command marker.
   SmallString<16> VerbatimBlockEndCommandName;
 
index 1cf103acdedc76998b7ccf98adaadccd05e7ad3e..11552af8f0af702751a85be0002bea5b0143451c 100644 (file)
@@ -190,7 +190,7 @@ public:
   /// category.
   static bool isARCDiagnostic(unsigned DiagID);
 
-  /// \brief Enumeration describing how the the emission of a diagnostic should
+  /// \brief Enumeration describing how the emission of a diagnostic should
   /// be treated when it occurs during C++ template argument deduction.
   enum SFINAEResponse {
     /// \brief The diagnostic should not be reported, but it should cause
index 082cbb1fb102894588b5ef21ae5d9304200783b7..1496355f672e5804351c051f420758b3ecac3c5d 100644 (file)
@@ -779,7 +779,7 @@ public:
                             const llvm::MemoryBuffer *Buffer,
                             bool DoNotFree = false);
 
-  /// \brief Override the the given source file with another one.
+  /// \brief Override the given source file with another one.
   ///
   /// \param SourceFile the source file which will be overriden.
   ///
index df64f2aba2361224d0f698a18ebb71920850ba8a..8e9491fdc33919ec758f689c15eafb86a98dd6f6 100644 (file)
@@ -409,7 +409,7 @@ public:
   bool isFileMultipleIncludeGuarded(const FileEntry *File);
 
   /// CreateHeaderMap - This method returns a HeaderMap for the specified
-  /// FileEntry, uniquing them through the the 'HeaderMaps' datastructure.
+  /// FileEntry, uniquing them through the 'HeaderMaps' datastructure.
   const HeaderMap *CreateHeaderMap(const FileEntry *FE);
 
   /// \brief Retrieve the name of the module file that should be used to 
index 246a9630824a6cb239c76a322d6cc11d9fbaa8e8..a3be78c4df8d5a90062b7e6521cb3af7182ee505 100644 (file)
@@ -3247,7 +3247,7 @@ public:
                               TypeResult Type);
 
   /// InitializeVarWithConstructor - Creates an CXXConstructExpr
-  /// and sets it as the initializer for the the passed in VarDecl.
+  /// and sets it as the initializer for the passed in VarDecl.
   bool InitializeVarWithConstructor(VarDecl *VD,
                                     CXXConstructorDecl *Constructor,
                                     MultiExprArg Exprs,
index 3bbd3f8e723b9e510bb67a105f4afd6613c5904f..f0b727531a571f6ff45c78147d25f3ed7267a743 100644 (file)
@@ -456,7 +456,7 @@ private:
   /// consumer eagerly.
   SmallVector<uint64_t, 16> ExternalDefinitions;
 
-  /// \brief The IDs of all tentative definitions stored in the the chain.
+  /// \brief The IDs of all tentative definitions stored in the chain.
   ///
   /// Sema keeps track of all tentative definitions in a TU because it has to
   /// complete them and pass them on to CodeGen. Thus, tentative definitions in
index ec233ba5e184a98ca147d7f2643e498462c63cbe..2a79c9aeff20c11f8b9f35d35afd2acec7fc7df6 100644 (file)
@@ -9,7 +9,7 @@
 //
 // rewriteBlockObjCVariable:
 //
-// Adding __block to an obj-c variable could be either because the the variable
+// Adding __block to an obj-c variable could be either because the variable
 // is used for output storage or the user wanted to break a retain cycle.
 // This transformation checks whether a reference of the variable for the block
 // is actually needed (it is assigned to or its address is taken) or not.
index fa7b066ce6519f991f2e094d92c889aff31d84b0..c98853adec57422c4748cd3f9b7bdc680db40b68 100644 (file)
@@ -517,7 +517,7 @@ static LinkageInfo getLVForClassMember(const NamedDecl *D, bool OnlyTemplate) {
 
   // If this class member has an explicit visibility attribute, the only
   // thing that can change its visibility is the template arguments, so
-  // only look for them when processing the the class.
+  // only look for them when processing the class.
   bool ClassOnlyTemplate =  LV.visibilityExplicit() ? true : OnlyTemplate;
 
   // If this member has an visibility attribute, ClassF will exclude
index d7763f5f0b04d11d4c4a221be68b3396c23494a7..104530fc13052a6292d1534f621c36058d8c18a7 100644 (file)
@@ -165,7 +165,7 @@ FinalOverriders::FinalOverriders(const CXXRecordDecl *MostDerivedClass,
                      SubobjectOffsets, SubobjectLayoutClassOffsets, 
                      SubobjectCounts);
 
-  // Get the the final overriders.
+  // Get the final overriders.
   CXXFinalOverriderMap FinalOverriders;
   MostDerivedClass->getFinalOverriders(FinalOverriders);
 
index 5bf3f8c65a105343661942d453395b5179db4651..cc4eafb692200d86d4fd1de18d11b5dd6f9bf539 100644 (file)
@@ -811,7 +811,7 @@ void LocalVariableMap::intersectBackEdge(Context C1, Context C2) {
 // incoming back edge, it duplicates the context, creating new definitions
 // that refer back to the originals.  (These correspond to places where SSA
 // might have to insert a phi node.)  On the second pass, these definitions are
-// set to NULL if the the variable has changed on the back-edge (i.e. a phi
+// set to NULL if the variable has changed on the back-edge (i.e. a phi
 // node was actually required.)  E.g.
 //
 //                       { Context           | VarDefinitions }
index 5f014f3c92b64896f4acb435c8ccdbdd9f5c96c5..d5f3eccf48fcc5d174490ca8d46eb46687a6ee7e 100644 (file)
@@ -580,7 +580,7 @@ namespace {
   };
 }
 
-/// Pick an implementation strategy for the the given property synthesis.
+/// Pick an implementation strategy for the given property synthesis.
 PropertyImplStrategy::PropertyImplStrategy(CodeGenModule &CGM,
                                      const ObjCPropertyImplDecl *propImpl) {
   const ObjCPropertyDecl *prop = propImpl->getPropertyDecl();
index 1f2e2c05c5a5203080647a89464c3cafddae1a3e..7c2b03748c0239d3c8d46e266aba22d749b72fe0 100644 (file)
@@ -184,7 +184,7 @@ static void expandTabs(std::string &SourceLine, unsigned TabStop) {
 ///  characters will appear at (numbering the first column as 0).
 ///
 /// If a byte 'i' corresponds to muliple columns (e.g. the byte contains a tab
-///  character) then the the array will map that byte to the first column the
+///  character) then the array will map that byte to the first column the
 ///  tab appears at and the next value in the map will have been incremented
 ///  more than once.
 ///
index 30da72b4a9bf11b98f379ff0397cfe3488b596f8..382e1567c7f46d692279648f19a197f2cd425e8b 100644 (file)
@@ -118,7 +118,7 @@ void TextDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level,
   llvm::raw_svector_ostream DiagMessageStream(OutStr);
   printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts);
 
-  // Keeps track of the the starting position of the location
+  // Keeps track of the starting position of the location
   // information (e.g., "foo.c:10:4:") that precedes the error
   // message. We use this information to determine how long the
   // file+line+column number prefix is.
index 30811bb6be709599212db3fbda2135480c162086..a75c45e227d0184205bb3992567b69836c0ac1a6 100644 (file)
@@ -84,7 +84,7 @@ void HeaderSearch::PrintStats() {
 }
 
 /// CreateHeaderMap - This method returns a HeaderMap for the specified
-/// FileEntry, uniquing them through the the 'HeaderMaps' datastructure.
+/// FileEntry, uniquing them through the 'HeaderMaps' datastructure.
 const HeaderMap *HeaderSearch::CreateHeaderMap(const FileEntry *FE) {
   // We expect the number of headermaps to be small, and almost always empty.
   // If it ever grows, use of a linear search should be re-evaluated.
index a46e31af4468e36ab11f9fff5f7b6b26cc2a055d..c9d400fc6611bcb524d954d8e7d3a60b1a70cd54 100644 (file)
@@ -215,7 +215,7 @@ bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
 
   // If this is a function-like macro, read the arguments.
   if (MI->isFunctionLike()) {
-    // C99 6.10.3p10: If the preprocessing token immediately after the the macro
+    // C99 6.10.3p10: If the preprocessing token immediately after the macro
     // name isn't a '(', this macro should not be expanded.
     if (!isNextPPTokenLParen())
       return true;
index 0f1004f2b2f766ddee5a97aabe078c57875433e6..ade40dad77d9ae2e735bc52780cd13136f0fd79b 100644 (file)
@@ -578,7 +578,7 @@ bool TokenLexer::PasteTokens(Token &Tok) {
         Result.setKind(tok::unknown);
     }
 
-    // Transfer properties of the LHS over the the Result.
+    // Transfer properties of the LHS over the Result.
     Result.setFlagValue(Token::StartOfLine , Tok.isAtStartOfLine());
     Result.setFlagValue(Token::LeadingSpace, Tok.hasLeadingSpace());
     
index 9e58b312e3c754be3616f519afc06212cff45e7e..c6a7d05c8f7627d21fa1215d5a5a4b22325d8129 100644 (file)
@@ -4943,7 +4943,7 @@ void Parser::ParseBracketDeclarator(Declarator &D) {
 
   // Handle the case where we have '[*]' as the array size.  However, a leading
   // star could be the start of an expression, for example 'X[*p + 4]'.  Verify
-  // the the token after the star is a ']'.  Since stars in arrays are
+  // the token after the star is a ']'.  Since stars in arrays are
   // infrequent, use of lookahead is not costly here.
   if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) {
     ConsumeToken();  // Eat the '*'.
index 519a5ca3fdfa963fd002c1117d7333e11e8f6a9a..2e920676655dd402ec1fa0e78eb0ff2f68330168 100644 (file)
@@ -4782,7 +4782,7 @@ bool Sema::CheckParmsForFunctionDef(ParmVarDecl **P, ParmVarDecl **PEnd,
     QualType PType = Param->getOriginalType();
     if (const ArrayType *AT = Context.getAsArrayType(PType)) {
       if (AT->getSizeModifier() == ArrayType::Star) {
-        // FIXME: This diagnosic should point the the '[*]' if source-location
+        // FIXME: This diagnosic should point the '[*]' if source-location
         // information is added for it.
         Diag(Param->getLocation(), diag::err_array_star_in_function_definition);
       }
index 8f03f81e565550f96013cde63d02b2e7e7acfe22..1480c2ef98d27af950d6a43ae7c94a73e9e20d5e 100644 (file)
@@ -9207,7 +9207,7 @@ CheckOperatorNewDeleteTypes(Sema &SemaRef, const FunctionDecl *FnDecl,
                         diag::err_operator_new_delete_too_few_parameters)
       << FnDecl->getDeclName();
  
-  // Check the the first parameter type is not dependent.
+  // Check the first parameter type is not dependent.
   QualType FirstParamType = FnDecl->getParamDecl(0)->getType();
   if (FirstParamType->isDependentType())
     return SemaRef.Diag(FnDecl->getLocation(), DependentParamTypeDiag)
index 84096074f23ae0d15189480f97a7d9da71291210..e280705449e7c84fbcd8796ec8be42687092756d 100644 (file)
@@ -899,7 +899,7 @@ bool Sema::CppLookupName(LookupResult &R, Scope *S) {
     if (!Ctx && S->isTemplateParamScope() && OutsideOfTemplateParamDC &&
         S->getParent() && !S->getParent()->isTemplateParamScope()) {
       // We've just searched the last template parameter scope and
-      // found nothing, so look into the the contexts between the
+      // found nothing, so look into the contexts between the
       // lexical and semantic declaration contexts returned by
       // findOuterContext(). This implements the name lookup behavior
       // of C++ [temp.local]p8.
@@ -1004,7 +1004,7 @@ bool Sema::CppLookupName(LookupResult &R, Scope *S) {
     if (!Ctx && S->isTemplateParamScope() && OutsideOfTemplateParamDC &&
         S->getParent() && !S->getParent()->isTemplateParamScope()) {
       // We've just searched the last template parameter scope and
-      // found nothing, so look into the the contexts between the
+      // found nothing, so look into the contexts between the
       // lexical and semantic declaration contexts returned by
       // findOuterContext(). This implements the name lookup behavior
       // of C++ [temp.local]p8.
index b80e374b60765425327462569ac4e0002ae46fa8..bdf6f60df3a9bc4cc3a7edaa11fb79c592996eae 100644 (file)
@@ -2500,7 +2500,7 @@ void Sema::HandleFunctionTypeMismatch(PartialDiagnostic &PDiag,
 /// for equality of their argument types. Caller has already checked that
 /// they have same number of arguments. This routine assumes that Objective-C
 /// pointer types which only differ in their protocol qualifiers are equal.
-/// If the parameters are different, ArgPos will have the the parameter index
+/// If the parameters are different, ArgPos will have the parameter index
 /// of the first different parameter.
 bool Sema::FunctionArgTypesAreEqual(const FunctionProtoType *OldType,
                                     const FunctionProtoType *NewType,
index aca5f798d465f26724c7f37f10afe116f045f992..4fe66f2e96b6aa81fdb24c4858a66aa0cd0e4b0c 100644 (file)
@@ -2756,7 +2756,7 @@ void RetainCountChecker::checkPostCall(const CallEvent &Call,
 
 /// GetReturnType - Used to get the return type of a message expression or
 ///  function call with the intention of affixing that type to a tracked symbol.
-///  While the the return type can be queried directly from RetEx, when
+///  While the return type can be queried directly from RetEx, when
 ///  invoking class methods we augment to the return type to be that of
 ///  a pointer to the class (as opposed it just being id).
 // FIXME: We may be able to do this with related result types instead.
index 600de659b974be6c3a7c0475bc1f46a3ef7a28b2..f173cde17d12f938f2afd1e06037a016ac5494cb 100644 (file)
@@ -256,7 +256,7 @@ void UnixAPIChecker::BasicAllocationCheck(CheckerContext &C,
     (void) ReportZeroByteAllocation(C, falseState, arg, fn); 
     return;
   }
-  // Assume the the value is non-zero going forward.
+  // Assume the value is non-zero going forward.
   assert(trueState);
   if (trueState != state)
     C.addTransition(trueState);                           
@@ -292,7 +292,7 @@ void UnixAPIChecker::CheckCallocZero(CheckerContext &C,
     }
   }
 
-  // Assume the the value is non-zero going forward.
+  // Assume the value is non-zero going forward.
   assert(trueState);
   if (trueState != state)
     C.addTransition(trueState);
index d7a4baa0a853634b404e32189a2faee309451890..c3be8c8c0a2bbb2d996134ffc73f9192226f41ce 100644 (file)
@@ -541,7 +541,7 @@ ExplodedNode *CoreEngine::generateCallExitBeginNode(ExplodedNode *N) {
   const StackFrameContext *LocCtx
                          = cast<StackFrameContext>(N->getLocationContext());
 
-  // Use the the callee location context.
+  // Use the callee location context.
   CallExitBegin Loc(LocCtx);
 
   bool isNew;
index 1752cd314bb3791502586d46ab2ec9ae8ed30e0b..e262c7e1442989cee12839bb7df12d2384f85499 100644 (file)
@@ -13,7 +13,7 @@ void test_fprintf(FILE *file) {
   fprintf(file, "Hello, modules\n");
 }
 
-// Supplied by compiler, which forwards to the the "/usr/include" version.
+// Supplied by compiler, which forwards to the "/usr/include" version.
 @__experimental_modules_import cstd.stdint;
 
 my_awesome_nonstandard_integer_type value;
index 184ac4a9e7e9e8bfd96ac5cfaed1799dd0d82f59..5ff58a2ec476ed7b17fa8741435f31295762e713 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wsign-conversion %s
 void foo() {
   *(0 ? (double *)0 : (void *)0) = 0;
-  // FIXME: GCC doesn't consider the the following two statements to be errors.
+  // FIXME: GCC doesn't consider the following two statements to be errors.
   *(0 ? (double *)0 : (void *)(int *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}}
   *(0 ? (double *)0 : (void *)(double *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}}
   *(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}} expected-warning {{pointer type mismatch ('double *' and 'int *')}}
index 9da97dcd78e1f3f2c6b596052d1f91fdec500a90..ceb8ee90c9f5d4d335010a3ac5b3e7e1d6ae1b15 100644 (file)
@@ -13,7 +13,7 @@
 @interface ReadOnly ()
 @property(readwrite, copy) id object;  // expected-warning {{property attribute in class extension does not match the primary class}}
 @property(readonly) id object1; // expected-error {{illegal redeclaration of property in class extension 'ReadOnly' (attribute must be 'readwrite', while its primary must be 'readonly')}}
-@property (readwrite, assign) int indentLevel; // OK. assign the the default in any case.
+@property (readwrite, assign) int indentLevel; // OK. assign the default in any case.
 @end
 
 @protocol Proto
index 9e49bf188068865faeb433a51b4920ce44d7215b..8e339b20146ae4443ee36f705d36f679b780f86a 100644 (file)
@@ -264,7 +264,7 @@ $ <b>clang -fsyntax-only ~/t.c -pedantic</b>
 
 <h3>Pretty printing from the AST:</h3>
 
-<p>Note, the <tt>-cc1</tt> argument indicates the the compiler front-end, and
+<p>Note, the <tt>-cc1</tt> argument indicates the compiler front-end, and
 not the driver, should be run. The compiler front-end has several additional
 Clang specific features which are not exposed through the GCC compatible driver
 interface.</p>