diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 4497197592cd..2dcafa3c24d0 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -2172,7 +2172,7 @@ public: /// \brief Declaration of a function specialization at template class scope. /// -/// This is a non standard extension needed to support MSVC. +/// This is a non-standard extension needed to support MSVC. /// /// For example: /// \code diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index e1ca10fc83bc..4f92d95944ff 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -5032,7 +5032,7 @@ def err_qualified_catch_declarator : Error< "exception declarator cannot be qualified">; def err_early_catch_all : Error<"catch-all handler must come last">; def err_bad_memptr_rhs : Error< - "right hand operand to %0 has non pointer-to-member type %1">; + "right hand operand to %0 has non-pointer-to-member type %1">; def err_bad_memptr_lhs : Error< "left hand operand to %0 must be a %select{|pointer to }1class " "compatible with the right hand operand, but is %2">; diff --git a/clang/include/clang/Basic/TargetCXXABI.h b/clang/include/clang/Basic/TargetCXXABI.h index 9ef3274b6e15..7fe38953b939 100644 --- a/clang/include/clang/Basic/TargetCXXABI.h +++ b/clang/include/clang/Basic/TargetCXXABI.h @@ -230,7 +230,7 @@ public: /// Only allocate objects in the tail padding of a base class if /// the base class is not POD according to the rules of C++ TR1. - /// This is non strictly conforming in C++11 mode. + /// This is non-strictly conforming in C++11 mode. UseTailPaddingUnlessPOD03, /// Only allocate objects in the tail padding of a base class if diff --git a/clang/include/clang/Frontend/CompilerInstance.h b/clang/include/clang/Frontend/CompilerInstance.h index 5673c5908d78..ad752acf7828 100644 --- a/clang/include/clang/Frontend/CompilerInstance.h +++ b/clang/include/clang/Frontend/CompilerInstance.h @@ -123,7 +123,7 @@ class CompilerInstance : public ModuleLoader { /// \brief Holds information about the output file. /// /// If TempFilename is not empty we must rename it to Filename at the end. - /// TempFilename may be empty and Filename non empty if creating the temporary + /// TempFilename may be empty and Filename non-empty if creating the temporary /// failed. struct OutputFile { std::string Filename; diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h index c5d0a92cabdd..85e0277a1888 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h @@ -99,7 +99,7 @@ public: Loc lhs, Loc rhs, QualType resultTy) = 0; /// Create a new value which represents a binary expression with a memory - /// location and non location operands. For example, this would be used to + /// location and non-location operands. For example, this would be used to /// evaluate a pointer arithmetic operation. virtual SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op, Loc lhs, NonLoc rhs, QualType resultTy) = 0; diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 868bc11244a7..ae4fbf7f0480 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -1611,7 +1611,7 @@ void MicrosoftCXXNameMangler::mangleType( // ::= // ::= E? -// # the E is required for 64-bit non static pointers +// # the E is required for 64-bit non-static pointers void MicrosoftCXXNameMangler::mangleType(const PointerType *T, SourceRange Range) { QualType PointeeTy = T->getPointeeType(); @@ -1630,7 +1630,7 @@ void MicrosoftCXXNameMangler::mangleType(const ObjCObjectPointerType *T, // ::= // ::= A E? -// # the E is required for 64-bit non static lvalue references +// # the E is required for 64-bit non-static lvalue references void MicrosoftCXXNameMangler::mangleType(const LValueReferenceType *T, SourceRange Range) { Out << 'A'; @@ -1641,7 +1641,7 @@ void MicrosoftCXXNameMangler::mangleType(const LValueReferenceType *T, // ::= // ::= $$Q E? -// # the E is required for 64-bit non static rvalue references +// # the E is required for 64-bit non-static rvalue references void MicrosoftCXXNameMangler::mangleType(const RValueReferenceType *T, SourceRange Range) { Out << "$$Q"; diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp index 4390e66c8b1c..cd5ce67f1d36 100644 --- a/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/clang/lib/AST/RecordLayoutBuilder.cpp @@ -2485,7 +2485,7 @@ MicrosoftRecordLayoutBuilder::layoutZeroWidthBitField(const FieldDecl *FD) { if (!LastFieldIsNonZeroWidthBitfield) { placeFieldAtOffset(IsUnion ? CharUnits::Zero() : Size); // TODO: Add a Sema warning that MS ignores alignment for zero - // sized bitfields that occur after zero-size bitfields or non bitfields. + // sized bitfields that occur after zero-size bitfields or non-bitfields. return; } diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp index 6e0e1732bae9..8e02dba3a38d 100644 --- a/clang/lib/Analysis/ThreadSafety.cpp +++ b/clang/lib/Analysis/ThreadSafety.cpp @@ -2043,7 +2043,7 @@ void BuildLockset::handleCall(Expr *Exp, const NamedDecl *D, VarDecl *VD) { break; } - // Ignore other (non thread-safety) attributes + // Ignore attributes unrelated to thread-safety default: break; } diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 451a6848bafc..df6868ab1a54 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2278,7 +2278,7 @@ void CGDebugInfo::CollectContainingType(const CXXRecordDecl *RD, llvm::DICompositeType ContainingType; const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); if (const CXXRecordDecl *PBase = RL.getPrimaryBase()) { - // Seek non virtual primary base root. + // Seek non-virtual primary base root. while (1) { const ASTRecordLayout &BRL = CGM.getContext().getASTRecordLayout(PBase); const CXXRecordDecl *PBT = BRL.getPrimaryBase(); diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index f3a5387c58d3..789c986bbed3 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1485,7 +1485,7 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { } case CK_ZeroToOCLEvent: { - assert(DestTy->isEventT() && "CK_ZeroToOCLEvent cast on non event type"); + assert(DestTy->isEventT() && "CK_ZeroToOCLEvent cast on non-event type"); return llvm::Constant::getNullValue(ConvertType(DestTy)); } diff --git a/clang/lib/CodeGen/CGRecordLayout.h b/clang/lib/CodeGen/CGRecordLayout.h index b29fc987a120..0fc7b8acbd49 100644 --- a/clang/lib/CodeGen/CGRecordLayout.h +++ b/clang/lib/CodeGen/CGRecordLayout.h @@ -130,7 +130,7 @@ private: llvm::DenseMap BitFields; // FIXME: Maybe we could use a CXXBaseSpecifier as the key and use a single - // map for both virtual and non virtual bases. + // map for both virtual and non-virtual bases. llvm::DenseMap NonVirtualBases; /// Map from virtual bases to their field index in the complete object. @@ -201,7 +201,7 @@ public: /// \brief Return the BitFieldInfo that corresponds to the field FD. const CGBitFieldInfo &getBitFieldInfo(const FieldDecl *FD) const { - assert(FD->isBitField() && "Invalid call for non bit-field decl!"); + assert(FD->isBitField() && "Invalid call for non-bit-field decl!"); llvm::DenseMap::const_iterator it = BitFields.find(FD); assert(it != BitFields.end() && "Unable to find bitfield info"); diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 8325dddbb8af..779054b450e9 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1287,7 +1287,7 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { // Clear the insertion point to indicate we are in unreachable code. Builder.ClearInsertionPoint(); - // All break statements jump to NextBlock. If BreakContinueStack is non empty + // All break statements jump to NextBlock. If BreakContinueStack is non-empty // then reuse last ContinueBlock. JumpDest OuterContinue; if (!BreakContinueStack.empty()) diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 42e22f0d74b6..2fda9263f99a 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -751,7 +751,7 @@ CodeGenVTables::GenerateClassData(const CXXRecordDecl *RD) { /// strongly elsewhere. Otherwise, we'd just like to avoid emitting /// v-tables when unnecessary. bool CodeGenVTables::isVTableExternal(const CXXRecordDecl *RD) { - assert(RD->isDynamicClass() && "Non dynamic classes have no VTable."); + assert(RD->isDynamicClass() && "Non-dynamic classes have no VTable."); // If we have an explicit instantiation declaration (and not a // definition), the v-table is defined elsewhere. diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 76acf871da26..c09a85bd3d54 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -395,7 +395,7 @@ llvm::Value *DefaultABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty, ABIArgInfo DefaultABIInfo::classifyArgumentType(QualType Ty) const { if (isAggregateTypeForABI(Ty)) { - // Records with non trivial destructors/constructors should not be passed + // Records with non-trivial destructors/constructors should not be passed // by value. if (isRecordReturnIndirect(Ty, getCXXABI())) return ABIArgInfo::getIndirect(0, /*ByVal=*/false); @@ -809,7 +809,7 @@ ABIArgInfo X86_32ABIInfo::getIndirectResult(QualType Ty, bool ByVal, unsigned &FreeRegs) const { if (!ByVal) { if (FreeRegs) { - --FreeRegs; // Non byval indirects just use one pointer. + --FreeRegs; // Non-byval indirects just use one pointer. return ABIArgInfo::getIndirectInReg(0, false); } return ABIArgInfo::getIndirect(0, false); diff --git a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp index a248675d771c..c4ae3a8fc65c 100644 --- a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp @@ -2623,7 +2623,7 @@ Stmt *RewriteModernObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { unsigned i; for (i=0; i < tmpName.length(); i++) { char c = tmpName.at(i); - // replace any non alphanumeric characters with '_'. + // replace any non-alphanumeric characters with '_'. if (!isAlphanumeric(c)) tmpName[i] = '_'; } diff --git a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp index 3dda2c56f5dc..b61096972858 100644 --- a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp +++ b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp @@ -2523,7 +2523,7 @@ Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { unsigned i; for (i=0; i < tmpName.length(); i++) { char c = tmpName.at(i); - // replace any non alphanumeric characters with '_'. + // replace any non-alphanumeric characters with '_'. if (!isAlphanumeric(c)) tmpName[i] = '_'; } diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp index d3de1732766e..b58bc5180706 100644 --- a/clang/lib/Sema/JumpDiagnostics.cpp +++ b/clang/lib/Sema/JumpDiagnostics.cpp @@ -191,7 +191,7 @@ static ScopePair GetDiagForGotoScopeDecl(ASTContext &Context, const Decl *D) { if (!Record) return ScopePair(diag::note_protected_by_variable_init, 0); - // If we need to call a non trivial destructor for this variable, + // If we need to call a non-trivial destructor for this variable, // record an out diagnostic. unsigned OutDiag = 0; if (!Init->isGLValue() && !Record->hasTrivialDestructor()) diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 065aba913eae..17f19dc2065c 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -1171,7 +1171,7 @@ static bool IsDisallowedCopyOrAssign(const CXXMethodDecl *D) { // When we see foo we don't know if after the typedef we will get 'A' or '*A' // for example. If 'A', foo will have external linkage. If we have '*A', // foo will have no linkage. Since we can't know untill we get to the end -// of the typedef, this function finds out if D might have non external linkage. +// of the typedef, this function finds out if D might have non-external linkage. // Callers should verify at the end of the TU if it D has external linkage or // not. bool Sema::mightHaveNonExternalLinkage(const DeclaratorDecl *D) { @@ -9783,7 +9783,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, WP.disableCheckFallThrough(); // MSVC permits the use of pure specifier (=0) on function definition, - // defined at class scope, warn about this non standard construct. + // defined at class scope, warn about this non-standard construct. if (getLangOpts().MicrosoftExt && FD->isPure() && FD->isCanonicalDecl()) Diag(FD->getLocation(), diag::warn_pure_function_definition); diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 782b930a5e5e..4188005c7621 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6198,7 +6198,7 @@ InitializationSequence::Perform(Sema &S, case SK_OCLSamplerInit: { assert(Step->Type->isSamplerT() && - "Sampler initialization on non sampler type."); + "Sampler initialization on non-sampler type."); QualType SourceType = CurInit.get()->getType(); @@ -6214,7 +6214,7 @@ InitializationSequence::Perform(Sema &S, } case SK_OCLZeroEvent: { assert(Step->Type->isEventT() && - "Event initialization on non event type."); + "Event initialization on non-event type."); CurInit = S.ImpCastExprToType(CurInit.take(), Step->Type, CK_ZeroToOCLEvent, diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 802f2b7290b3..f0f445a3e5f0 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -9320,7 +9320,7 @@ void TemplateSpecCandidateSet::NoteCandidates(Sema &S, SourceLocation Loc) { for (iterator Cand = begin(), LastCand = end(); Cand != LastCand; ++Cand) { if (Cand->Specialization) Cands.push_back(Cand); - // Otherwise, this is a non matching builtin candidate. We do not, + // Otherwise, this is a non-matching builtin candidate. We do not, // in general, want to list every possible builtin candidate. } diff --git a/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp b/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp index adc54659911a..38d7e5a427cc 100644 --- a/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp +++ b/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp @@ -376,7 +376,7 @@ static bool shouldBeModeledWithNoOp(ASTContext &Context, QualType ToTy, ToTy = Context.getUnqualifiedArrayType(ToTy, Quals1); FromTy = Context.getUnqualifiedArrayType(FromTy, Quals2); - // Make sure that non cvr-qualifiers the other qualifiers (e.g., address + // Make sure that non-cvr-qualifiers the other qualifiers (e.g., address // spaces) are identical. Quals1.removeCVRQualifiers(); Quals2.removeCVRQualifiers(); diff --git a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp index cc0ee0b5c7a9..a8ee625eef85 100644 --- a/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp +++ b/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp @@ -97,7 +97,7 @@ SVal SimpleSValBuilder::evalCastFromNonLoc(NonLoc val, QualType castTy) { return UnknownVal(); } - // If value is a non integer constant, produce unknown. + // If value is a non-integer constant, produce unknown. if (!val.getAs()) return UnknownVal(); @@ -108,7 +108,7 @@ SVal SimpleSValBuilder::evalCastFromNonLoc(NonLoc val, QualType castTy) { } // Only handle casts from integers to integers - if val is an integer constant - // being cast to a non integer type, produce unknown. + // being cast to a non-integer type, produce unknown. if (!isLocType && !castTy->isIntegralOrEnumerationType()) return UnknownVal(); @@ -158,7 +158,7 @@ SVal SimpleSValBuilder::evalCastFromLoc(Loc val, QualType castTy) { } case loc::GotoLabelKind: - // Labels and non symbolic memory regions are always true. + // Labels and non-symbolic memory regions are always true. return makeTruthVal(true, castTy); } } diff --git a/clang/test/Analysis/new.cpp b/clang/test/Analysis/new.cpp index 105a973ccc92..e262aa727e2b 100644 --- a/clang/test/Analysis/new.cpp +++ b/clang/test/Analysis/new.cpp @@ -267,7 +267,7 @@ void testNullDtorDerived() { clang_analyzer_eval(true); // no warn } -//Deleting a non class pointer should not crash/warn +//Deleting a non-class pointer should not crash/warn void test_var_delete() { int *v = new int; delete v; // no crash/warn diff --git a/clang/test/Analysis/null-deref-ps.c b/clang/test/Analysis/null-deref-ps.c index 4dc8fc4ec991..00acc5c85bf4 100644 --- a/clang/test/Analysis/null-deref-ps.c +++ b/clang/test/Analysis/null-deref-ps.c @@ -297,7 +297,7 @@ typedef void (*NoConstType)(int*); int foo10595327(int b) { void (*fp)(int *); // We use path sensitivity to get the function declaration. Even when the - // function pointer is cast to non pointer-to-const parameter type, we can + // function pointer is cast to non-pointer-to-const parameter type, we can // find the right function declaration. if (b > 5) fp = (NoConstType)ttt2; diff --git a/clang/test/Analysis/objc-for.m b/clang/test/Analysis/objc-for.m index 2f14b8ad1aae..d1e044a6513b 100644 --- a/clang/test/Analysis/objc-for.m +++ b/clang/test/Analysis/objc-for.m @@ -109,7 +109,7 @@ void collectionIsEmptyCollectionIsModified(NSMutableDictionary *D){ } int collectionIsEmptyNSSet(NSSet *S){ - if ([S count] == 2) { // Count is non zero. + if ([S count] == 2) { // Count is non-zero. int tapCounts[2]; int i = 0; for (NSString *elem in S) { diff --git a/clang/test/Analysis/objc-properties.m b/clang/test/Analysis/objc-properties.m index 323f41af54ce..f6ed3e5ef043 100644 --- a/clang/test/Analysis/objc-properties.m +++ b/clang/test/Analysis/objc-properties.m @@ -23,8 +23,8 @@ typedef signed char BOOL; @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented - @property (assign, nonatomic) MyClass* Z; // non synthesized ivar, implemented setter - @property (readonly) id nonSynth; // non synthesized, explicitly implemented to return ivar with expected name + @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter + @property (readonly) id nonSynth; // non-synthesized, explicitly implemented to return ivar with expected name - (id) initWithPtr:(MyClass*) value; - (id) myInitWithPtr:(MyClass*) value; diff --git a/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m b/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m index f1ecd548eb3e..4777aed99d91 100644 --- a/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m +++ b/clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m @@ -32,8 +32,8 @@ typedef signed char BOOL; @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented - @property (assign, nonatomic) MyClass* Z; // non synthesized ivar, implemented setter - @property (readonly) id nonSynth; // non synthesized, explicitly implemented to return ivar with expected name + @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter + @property (readonly) id nonSynth; // non-synthesized, explicitly implemented to return ivar with expected name @property (assign) MyClass* NotA; // warnings should be suppressed, backing ivar is annotated @property (assign) MyClass* NotX __attribute__((annotate("objc_allow_direct_instance_variable_assignment"))); // warnings should be suppressed diff --git a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp index 7e35788d898b..e159ab729d5f 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp @@ -17,7 +17,7 @@ void f() { A a(b); int A::*ip = &A::s; // expected-error {{cannot initialize a variable of type 'int A::*' with an rvalue of type 'int *'}} - a.*&A::s = 10; // expected-error{{right hand operand to .* has non pointer-to-member type 'int *'}} + a.*&A::s = 10; // expected-error{{right hand operand to .* has non-pointer-to-member type 'int *'}} a.*&A::i = 10; // expected-error{{cannot form a pointer-to-member to member 'i' of reference type 'int &'}} ft(a); // expected-note{{in instantiation of function template specialization 'ft' requested here}} diff --git a/clang/test/CodeGen/debug-info-iv.c b/clang/test/CodeGen/debug-info-iv.c index aafd71d2ec2a..7511f9d58bb5 100644 --- a/clang/test/CodeGen/debug-info-iv.c +++ b/clang/test/CodeGen/debug-info-iv.c @@ -7,7 +7,7 @@ static void test_indvars(int *Array1, int Array2[100][200]) { Array1[1] = Array2[3][6] = 12345; for (i = 0; i < 100; i+=2) - Array1[i] = i; /* Step by non unit amount */ + Array1[i] = i; /* Step by non-unit amount */ for (i = 3; i < 103; i++) Array1[i] = i+4; /* Step with an offset */ diff --git a/clang/test/Index/comment-to-html-xml-conversion.cpp b/clang/test/Index/comment-to-html-xml-conversion.cpp index 91986320fadc..43737b8ade99 100644 --- a/clang/test/Index/comment-to-html-xml-conversion.cpp +++ b/clang/test/Index/comment-to-html-xml-conversion.cpp @@ -693,12 +693,12 @@ void comment_to_html_conversion_34(); /// © the copyright symbol /// ™ the trade mark symbol /// ® the registered trade mark symbol -///   a non breakable space. +///   a non-breakable space. /// Δ Greek letter Delta Δ. /// Γ Greek letter Gamma Γ. void comment_to_html_conversion_35(); -// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_35:{{.*}} FullCommentAsHTML=[

© the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.

] FullCommentAsXML=[comment_to_html_conversion_35c:@F@comment_to_html_conversion_35#void comment_to_html_conversion_35() © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.] +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_35:{{.*}} FullCommentAsHTML=[

© the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.

] FullCommentAsXML=[comment_to_html_conversion_35c:@F@comment_to_html_conversion_35#void comment_to_html_conversion_35() © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.] // CHECK-NEXT: CommentAST=[ // CHECK-NEXT: (CXComment_FullComment // CHECK-NEXT: (CXComment_Paragraph @@ -713,7 +713,7 @@ void comment_to_html_conversion_35(); // CHECK-NEXT: (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline) // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) // CHECK-NEXT: (CXComment_Text Text=[ ]) -// CHECK-NEXT: (CXComment_Text Text=[ a non breakable space.] HasTrailingNewline) +// CHECK-NEXT: (CXComment_Text Text=[ a non-breakable space.] HasTrailingNewline) // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) // CHECK-NEXT: (CXComment_Text Text=[Δ]) // CHECK-NEXT: (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline) diff --git a/clang/test/Parser/MicrosoftExtensions.cpp b/clang/test/Parser/MicrosoftExtensions.cpp index 8c1497a94722..2ed0c8ad59b1 100644 --- a/clang/test/Parser/MicrosoftExtensions.cpp +++ b/clang/test/Parser/MicrosoftExtensions.cpp @@ -242,10 +242,10 @@ int __if_exists_test() { b++; } __if_exists(IF_EXISTS::Type_not) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type_not) { b++; @@ -259,11 +259,11 @@ __if_exists(IF_EXISTS::Type) { } __if_exists(IF_EXISTS::Type_not) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type_not) { @@ -280,7 +280,7 @@ int __if_exists_init_list() { int array2[] = { 0, - __if_exists(IF_EXISTS::Type_not) { this wont compile } + __if_exists(IF_EXISTS::Type_not) { this will not compile } 3 }; @@ -292,7 +292,7 @@ int __if_exists_init_list() { int array4[] = { 0, - __if_not_exists(IF_EXISTS::Type) { this wont compile } + __if_not_exists(IF_EXISTS::Type) { this will not compile } 3 }; @@ -309,11 +309,11 @@ class IF_EXISTS_CLASS_TEST { } __if_exists(IF_EXISTS::Type_not) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type) { - this wont compile. + this will not compile. } __if_not_exists(IF_EXISTS::Type_not) { diff --git a/clang/test/Sema/block-misc.c b/clang/test/Sema/block-misc.c index 22604582db80..b4732b599c85 100644 --- a/clang/test/Sema/block-misc.c +++ b/clang/test/Sema/block-misc.c @@ -131,7 +131,7 @@ void test14() { static void *P = ^{ // expected-error {{initializer element is not a compile-time constant}} void *Q = ^{ - // References test14's "X": outer block is non constant. + // References test14's "X": outer block is non-constant. return X+4; }; }; diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 6da027e02c65..6ed665c70039 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -544,7 +544,7 @@ void test_other_formats() { monformat("", 1); // expected-warning{{format string is empty}} monformat(str); // expected-warning{{format string is not a string literal (potentially insecure)}} dateformat(""); // expected-warning{{format string is empty}} - dateformat(str); // no-warning (using strftime non literal is not unsafe) + dateformat(str); // no-warning (using strftime non-literal is not unsafe) } // Do not warn about unused arguments coming from system headers. diff --git a/clang/test/SemaObjC/selector-1.m b/clang/test/SemaObjC/selector-1.m index 186e19fead83..33f8a8d36c20 100644 --- a/clang/test/SemaObjC/selector-1.m +++ b/clang/test/SemaObjC/selector-1.m @@ -12,7 +12,7 @@ SEL func() { - return @selector(compare:); // Non warning on multiple selector found. + return @selector(compare:); // no warning on multiple selector found. } int main() { diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 51bc6e259378..441032eb7c05 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -168,7 +168,7 @@ SBOutputDirName = "ScanBuildResults" SBOutputDirReferencePrefix = "Ref" # The list of checkers used during analyzes. -# Currently, consists of all the non experimental checkers, plus a few alpha +# Currently, consists of all the non-experimental checkers, plus a few alpha # checkers we don't want to regress on. Checkers="alpha.unix.SimpleStream,alpha.security.taint,alpha.cplusplus.NewDeleteLeaks,core,cplusplus,deadcode,security,unix,osx" @@ -363,7 +363,7 @@ def checkBuild(SBOutputDir): if TotalFailed == 0: CleanUpEmptyPlists(SBOutputDir) Plists = glob.glob(SBOutputDir + "/*/*.plist") - print "Number of bug reports (non empty plist files) produced: %d" %\ + print "Number of bug reports (non-empty plist files) produced: %d" %\ len(Plists) return; diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 82552efbe6c0..a360ace7fe1f 100644 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -8159,7 +8159,7 @@ and POD class
1391 drafting - Conversions to parameter types with non deduced template arguments + Conversions to parameter types with non-deduced template arguments Not resolved