[cfe-dev] Adding parallelism construct.
Anderson, Todd A
todd.a.anderson at intel.com
Wed Sep 21 10:56:06 PDT 2011
I'm adding a set of extensions to clang to support a language we're developing and one of those extensions is a new statement type of the form:
par function_call_expression;
I'm detecting the new keyword "par" in ParseStatementOrDeclaration and then passing parsing over to a new function. My question is how to structure that function. Is there any existing function in clang which parses something that is a priori known (or expected) to be a function call? It doesn't seems that clang would need such a function so perhaps a better approach is to use one of existing generic expression parsing functions (ParseCastExpression or something else?) and then check to see if the resulting expression was of a single function call type. Is there any easy way to check if an expression generated with an existing function is a function call?
All input appreciated.
Thanks,
Todd
More information about the cfe-dev
mailing list