Closed mycoboco closed 7 years ago
When a macro-guard detected, #include
will not be performed, in which case setting syslev
should be also avoided. Moving the code to change syslev
below the check for macro-guards solves the problem.
112265506a0bf0d0b49825e4979b14549ab28a8a
Assuming that
<bar.h>
is a system header and macro-guarded, the following code does not let diagnostics correctly point into the macro definition that triggers them becausefoo.h
is incorrectly recognized as a system header.Works fine when
<bar.h>
is treated as a normal one.