<div dir="ltr">Hey,<div><br></div><div style>I've been playing around with clang defining a custom pragma type. Does the pragma need to consist of expressions? I don't know if I'm phrasing it correctly, but I want to define a custom pragma such as</div>
<div style>#pragma X b[i:j]</div><div style>When I try to implement the HandlePragma method as some of the other examples (using preprocessor's lex function) then I get "error: expected ']'" where the colon is. Something like '[i]' was expected. Is there a way to do this via the lex function? Or would I need to do something like DiscardUntilEndOfDirective and then work on the string "b[i:j]"?</div>
<div style><br></div><div style>Thanks,</div><div style><br></div><div style>Jacques</div></div>