Pragma directives are crucial to access several compiler extensions.
In particular, OpenMP and OpenACC use them in C/C++ to map most of their features.
Is there a way to forward pragma directives inline as they appear in a *.cpp2 to downstream generations?
Sadly, C++ code cannot be nested inside Cpp2, so forwarding them is the only way to make use of compiler extensions and standard which are mapped on pragmas.
Pragma directives are crucial to access several compiler extensions.
In particular, OpenMP and OpenACC use them in C/C++ to map most of their features.
Is there a way to forward pragma directives inline as they appear in a
*.cpp2to downstream generations?Sadly, C++ code cannot be nested inside Cpp2, so forwarding them is the only way to make use of compiler extensions and standard which are mapped on pragmas.