aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-05-10 13:28:41 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-05-10 13:28:41 +0000
commitf3352cabb8c7f078862ee3c1bca06e96a6ebcfd4 (patch)
tree557298bb7e615c65911ed2e91a38c03f905fba25 /gcc/tree-chkp.c
parent4a3255dd4328cf6f3eaf4cb8c8f825d215a5ecdf (diff)
downloadgcc-f3352cabb8c7f078862ee3c1bca06e96a6ebcfd4.zip
gcc-f3352cabb8c7f078862ee3c1bca06e96a6ebcfd4.tar.gz
gcc-f3352cabb8c7f078862ee3c1bca06e96a6ebcfd4.tar.bz2
Add debugging ruler to diagnostic-show-locus.c
When debugging diagnostic-show-locus.c, it's invaluable to have a "ruler" showing column numbers. This patch adds in support via a new "show_ruler_p" flag within the diagnostic_context. There's no direct way for end-users to enable this, but plugins can enable it by setting the flag, so the plugin that tests the diagnostic subsystem uses this to verify that the ruler is correctly printed. gcc/ChangeLog: * diagnostic-show-locus.c (layout::layout): Call show_ruler if show_ruler_p was set on the context. (layout::show_ruler): New method. * diagnostic.h (struct diagnostic_context): Add field "show_ruler_p". gcc/testsuite/ChangeLog: * gcc.dg/plugin/diagnostic-test-show-locus-bw.c (test_very_wide_line): Add ruler to expected output. * gcc.dg/plugin/diagnostic-test-show-locus-color.c (test_very_wide_line): Likewise. * gcc.dg/plugin/diagnostic_plugin_test_show_locus.c (test_show_locus): Within the handling of "test_very_wide_line", enable show_ruler_p on the diagnostic context. From-SVN: r236080
Diffstat (limited to 'gcc/tree-chkp.c')
0 files changed, 0 insertions, 0 deletions