"note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers if(Min<0) Min = 0; if(Max<Min) Max = Min;" I'm seeing output like this even while -Wmisleading-indentation is #pragma ignored and so cannot be emitted itself. Of course clients shouldn't have to disable this on the command-line in order to quite third party headers. (And so not be able to enjoy this gloriously diversity killing--and therefor creativity eradicating--feature for themselves.)
(In reply to Mick P. from comment #0) > "note: -Wmisleading-indentation is disabled from this point onwards, since > column-tracking was disabled due to the size of the code/headers > if(Min<0) Min = 0; if(Max<Min) Max = Min;" > > I'm seeing output like this even while -Wmisleading-indentation is #pragma > ignored and so cannot be emitted itself. > > Of course clients shouldn't have to disable this on the command-line in > order to quite third party headers. (And so not be able to enjoy this > gloriously diversity killing--and therefor creativity eradicating--feature > for themselves.) Could you attach preprocessed source that triggers this note?
It should be a matter of checking for warn_misleading_indentation at c-family/c-indentation.c:get_visual_column()
(In reply to Manuel López-Ibáñez from comment #2) > It should be a matter of checking for warn_misleading_indentation at > c-family/c-indentation.c:get_visual_column() Oh, I guess if we already know where the fix needs to go, that's a confirmation of the bug
Two years passed and no fix :( Can somebody look at it?
Support disabling forwarding via #paragma please. There is a lot of noise in the log if you include huge generated files. An example can be taken in the github project F2I-Consulting / fesapi. GCC_DIAG_IGNORED ("-Wmisleading-indentation") CLANG_DIAG_IGNORED ("-Wmisleading-indentation") #ifdef NEW_FESAPI #include "fesapi/eml2/AbstractHdfProxy.h" #else #include "fesapi/common/AbstractHdfProxy.h" #endif #include "fesapi/nsDefinitions.h" CLANG_DIAG_RESTORE GCC_DIAG_RESTORE