1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix for 183166: #error creates error and warning preprocessor node (Patch by Emanuel Graf <egraf@hsr.ch>)

This commit is contained in:
Anton Leherbauer 2007-04-19 14:34:42 +00:00
parent 30d620f095
commit aeef04ba75

View file

@ -1679,8 +1679,11 @@ abstract class BaseScanner implements IScanner {
boolean isWarning= type == IPreprocessorDirective.ppWarning;
handleProblem(isWarning ? IProblem.PREPROCESSOR_POUND_WARNING : IProblem.PREPROCESSOR_POUND_ERROR, start,
CharArrayUtils.extract(buffer, start, end-start));
processError(pos, end);
processWarning(pos, end);
if (isWarning) {
processWarning(pos, end);
} else {
processError(pos, end);
}
return;
case IPreprocessorDirective.ppEndif:
skipToNewLine();