diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-09 21:49:52 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-11 04:00:58 +0000 |
commit | d3fe767c16e7c528e4fc71c8a68ac14b4573d880 (patch) | |
tree | 6e2c1d83054da0462c94e21ff347c3ebf813003b /gcc/gimple-range.cc | |
parent | 21de01f5554fa037f59b27525d2eb7342f5649c7 (diff) | |
download | gcc-d3fe767c16e7c528e4fc71c8a68ac14b4573d880.zip gcc-d3fe767c16e7c528e4fc71c8a68ac14b4573d880.tar.gz gcc-d3fe767c16e7c528e4fc71c8a68ac14b4573d880.tar.bz2 |
c-family: Support #pragma region/endregion [PR85487]
These pragmas are used by some editors to mark regions of code for
grouping and folding. GCC should silently ignore them, rather than
giving -Wunknown-pragmas warnings.
PR c/85487
gcc/ChangeLog:
* doc/cpp/pragmas.rst (Pragmas): Document region pragmas.
gcc/c-family/ChangeLog:
* c-pragma.cc (handle_pragma_ignore): New function.
(init_pragma): Register region and endregion pragmas.
gcc/testsuite/ChangeLog:
* c-c++-common/pragma-region.c: New test.
Diffstat (limited to 'gcc/gimple-range.cc')
0 files changed, 0 insertions, 0 deletions