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:
parent
30d620f095
commit
aeef04ba75
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue