Skip to content

[SUGGESTION] Forwarding pragma directives #1396

Description

@KaruroChori

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions