diff --git a/ChangeLog b/ChangeLog index a134c90..55f2834 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-05-03 Riccardo Mottola + + * Framework/PCProjectBuilder.m + Enhance clang support. + 2014-05-03 Riccardo Mottola * Framework/PCProjectBuilder.m diff --git a/Framework/PCProjectBuilder.m b/Framework/PCProjectBuilder.m index 7606e62..03e554d 100644 --- a/Framework/PCProjectBuilder.m +++ b/Framework/PCProjectBuilder.m @@ -1105,7 +1105,7 @@ if (lastEL == ELIncluded) NSLog(@"+++ELIncluded"); if (lastEL == ELError) NSLog(@"+++ELError"); if (lastEL == ELNone) NSLog(@"+++ELNone");*/ -// NSLog(@"components: %lu, %@", (unsigned long)[components count], components); + //NSLog(@"components: %lu, %@", (unsigned long)[components count], components); if ([errorArray count] > 0) { lastFile = [[errorArray lastObject] objectForKey:@"File"]; @@ -1156,6 +1156,10 @@ type = [components objectAtIndex:typeIndex]; warningsCount++; } + else if ((typeIndex = [components indexOfObject:@" note"]) != NSNotFound) // generated by clang + { + type = [components objectAtIndex:typeIndex]; + } else if ((typeIndex = [components indexOfObject:@" error"]) != NSNotFound) { type = [components objectAtIndex:typeIndex]; @@ -1167,7 +1171,7 @@ errorsCount++; } - // NSLog(@"typeIndex: %u", (unsigned int)typeIndex); + // NSLog(@"typeIndex: %u", (unsigned int)typeIndex); // position if (typeIndex == 2) // :line: {