[Bug c/94229] New: more clarification on the warning message from -Wmisleading-indent

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 19 21:51:01 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94229

            Bug ID: 94229
           Summary: more clarification on the warning message from
                    -Wmisleading-indent
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: qinzhao at gcc dot gnu.org
  Target Milestone: ---

gcc issues the following warning message for -Wmisleading-indentation:

test.c:632: note: -Wmisleading-indentation is disabled from this point 
onwards, since column-tracking was disabled due to the size of the 
code/headers 

For a file test.c on its line #632, which looks very confusing to the user who
got this message because 632 lines in a file is not big at all. 

is it possible to make the warning message more clear on why the size limit is
met to help the user understand this better?

>From my understanding of the gcc code in libcpp/line-map.[hc], looks like that
the "size" here refs to source_location, and the source_location encoded both
line num info and column num info.


More information about the Gcc-bugs mailing list