You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way to add new vendor-specific pragmas is by modifying the front-end sources.
Proposed:
/*** Checks whether the target/compiler supports the given pragma.
* Params:
* ident = name of the pragma
* args = arguments to pass to pragma
* statement = true if analysing a PragmaStatement.
*/
bool isPragmaSupported(Identifier ident, Expressions* args, bool statement)
{
// Implemented in Target::isPragmaSupported().
return false;
}
Example usage:
In dsymbolsem.d / statementsem.d:
else if (Target.isPragmaSupported(pd.ident, pd.args, false))
{
// Handled by backend.
}
else if (global.params.ignoreUnsupportedPragmas)
{
// Ignored on command-line.
}
else
pd.error("unrecognized pragma %s", pd.ident.toChars());
The text was updated successfully, but these errors were encountered:
Iain Buclaw (@ibuclaw) reported this on 2018-07-22T18:44:16Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19110
CC List
Description
The text was updated successfully, but these errors were encountered: