Correct hyphenations in comments and assert messages

This patch tries to avoid unrelated changes other than fixing a few
hyphen-related ambiguities in nearby lines.

llvm-svn: 196466
This commit is contained in:
Alp Toker 2013-12-05 04:47:09 +00:00
parent 62acf8624c
commit d473363876
36 changed files with 56 additions and 56 deletions

View File

@ -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

View File

@ -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">;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -1611,7 +1611,7 @@ void MicrosoftCXXNameMangler::mangleType(
// <type> ::= <pointer-type>
// <pointer-type> ::= E? <pointer-cvr-qualifiers> <cvr-qualifiers> <type>
// # 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,
// <type> ::= <reference-type>
// <reference-type> ::= A E? <cvr-qualifiers> <type>
// # 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,
// <type> ::= <r-value-reference-type>
// <r-value-reference-type> ::= $$Q E? <cvr-qualifiers> <type>
// # 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";

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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();

View File

@ -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));
}

View File

@ -130,7 +130,7 @@ private:
llvm::DenseMap<const FieldDecl *, CGBitFieldInfo> 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<const CXXRecordDecl *, unsigned> 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 FieldDecl *, CGBitFieldInfo>::const_iterator
it = BitFields.find(FD);
assert(it != BitFields.end() && "Unable to find bitfield info");

View File

@ -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())

View File

@ -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.

View File

@ -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);

View File

@ -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] = '_';
}

View File

@ -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] = '_';
}

View File

@ -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())

View File

@ -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);

View File

@ -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,

View File

@ -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.
}

View File

@ -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();

View File

@ -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<nonloc::ConcreteInt>())
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);
}
}

View File

@ -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

View File

@ -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;

View File

@ -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) {

View File

@ -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;

View File

@ -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

View File

@ -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<A>' requested here}}

View File

@ -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 */

View File

@ -693,12 +693,12 @@ void comment_to_html_conversion_34();
/// &copy; the copyright symbol
/// &trade; the trade mark symbol
/// &reg; the registered trade mark symbol
/// &nbsp; a non breakable space.
/// &nbsp; a non-breakable space.
/// &Delta; Greek letter Delta Δ.
/// &Gamma; 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=[<p class="para-brief"> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_35</Name><USR>c:@F@comment_to_html_conversion_35#</USR><Declaration>void comment_to_html_conversion_35()</Declaration><Abstract><Para> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</Para></Abstract></Function>]
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_35:{{.*}} FullCommentAsHTML=[<p class="para-brief"> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_35</Name><USR>c:@F@comment_to_html_conversion_35#</USR><Declaration>void comment_to_html_conversion_35()</Declaration><Abstract><Para> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol   a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</Para></Abstract></Function>]
// 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)

View File

@ -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) {

View File

@ -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;
};
};

View File

@ -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.

View File

@ -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() {

View File

@ -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;

View File

@ -8159,7 +8159,7 @@ and <I>POD class</I></td>
<tr class="open">
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1391">1391</a></td>
<td>drafting</td>
<td>Conversions to parameter types with non deduced template arguments</td>
<td>Conversions to parameter types with non-deduced template arguments</td>
<td align="center">Not resolved</td>
</tr>
<tr>