Skip to content
Snippets Groups Projects
Commit d3fe767c authored by Jonathan Wakely's avatar Jonathan Wakely
Browse files

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.
parent 21de01f5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment