Bug 94229 - more clarification on the warning message from -Wmisleading-indent
Summary: more clarification on the warning message from -Wmisleading-indent
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 10.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2020-03-19 21:51 UTC by qinzhao
Modified: 2022-08-05 18:39 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qinzhao 2020-03-19 21:51:01 UTC
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.