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

--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:d3fe767c16e7c528e4fc71c8a68ac14b4573d880

commit r13-3887-gd3fe767c16e7c528e4fc71c8a68ac14b4573d880
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Nov 9 21:49:52 2022 +0000

    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.
  • [Bug c/85487] Support '#pragma ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to