Enhance clang support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37847 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2014-05-06 13:11:45 +00:00
parent 847052d58a
commit 1293803645
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-05-03 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectBuilder.m
Enhance clang support.
2014-05-03 Riccardo Mottola <rm@gnu.org> 2014-05-03 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectBuilder.m * Framework/PCProjectBuilder.m

View file

@ -1105,7 +1105,7 @@
if (lastEL == ELIncluded) NSLog(@"+++ELIncluded"); if (lastEL == ELIncluded) NSLog(@"+++ELIncluded");
if (lastEL == ELError) NSLog(@"+++ELError"); if (lastEL == ELError) NSLog(@"+++ELError");
if (lastEL == ELNone) NSLog(@"+++ELNone");*/ 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) if ([errorArray count] > 0)
{ {
lastFile = [[errorArray lastObject] objectForKey:@"File"]; lastFile = [[errorArray lastObject] objectForKey:@"File"];
@ -1156,6 +1156,10 @@
type = [components objectAtIndex:typeIndex]; type = [components objectAtIndex:typeIndex];
warningsCount++; warningsCount++;
} }
else if ((typeIndex = [components indexOfObject:@" note"]) != NSNotFound) // generated by clang
{
type = [components objectAtIndex:typeIndex];
}
else if ((typeIndex = [components indexOfObject:@" error"]) != NSNotFound) else if ((typeIndex = [components indexOfObject:@" error"]) != NSNotFound)
{ {
type = [components objectAtIndex:typeIndex]; type = [components objectAtIndex:typeIndex];
@ -1167,7 +1171,7 @@
errorsCount++; errorsCount++;
} }
// NSLog(@"typeIndex: %u", (unsigned int)typeIndex); // NSLog(@"typeIndex: %u", (unsigned int)typeIndex);
// position // position
if (typeIndex == 2) // :line: if (typeIndex == 2) // :line:
{ {