summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-05 04:47:09 +0000
committerAlp Toker <alp@nuanti.com>2013-12-05 04:47:09 +0000
commitd473363876d4b582c3bea969f4a4efffa7607f87 (patch)
tree27b188c9c0469ffa0437d77407ec520cb9920c56 /clang/test/Analysis
parent62acf8624c135d6d679d94bbc22711b92a9ea781 (diff)
downloadbcm5719-llvm-d473363876d4b582c3bea969f4a4efffa7607f87.tar.gz
bcm5719-llvm-d473363876d4b582c3bea969f4a4efffa7607f87.zip
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
Diffstat (limited to 'clang/test/Analysis')
-rw-r--r--clang/test/Analysis/new.cpp2
-rw-r--r--clang/test/Analysis/null-deref-ps.c2
-rw-r--r--clang/test/Analysis/objc-for.m2
-rw-r--r--clang/test/Analysis/objc-properties.m4
-rw-r--r--clang/test/Analysis/objc/direct-ivar-assignment-in-annotated-functions.m4
5 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Analysis/new.cpp b/clang/test/Analysis/new.cpp
index 105a973ccc9..e262aa727e2 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 4dc8fc4ec99..00acc5c85bf 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 2f14b8ad1aa..d1e044a6513 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 323f41af54c..f6ed3e5ef04 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 f1ecd548eb3..4777aed99d9 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
OpenPOWER on IntegriCloud