-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SYCL header are not "parsable" #308
Comments
I think the intent is that anything named If the specification consistently used // make_sycl_headers_parseable.h
struct __unspecified__ {}; g++ --include make_sycl_headers_parsable.h stream.h --fsyntax-only |
FWIW, I've been using a comment of the form |
Oh, thanks, I didn't realize! @nliber Pointed me to
Not really. Doing a sed on So the If you think it's useful (at least it should cache any typo...), I can try carving a little time to see if we can make the header "parseable" and unify our coding style. |
Why do we need to say anything other than |
Oh, then it works for me. The C++ spec uses multiple specifiers, and we are doing the same right now. But if we can go away with one, it may make stuff easier (at least for the parsing) |
Some quick "grep" results ( and I learned about
So Moving to Now regard to making the header parseable, I did some tests.
|
So our header is not "parsable" (sorry, I don't know what the correct term is. "give no error when using
-fsyntax-only
" is quite long).For example, using stream.h (#304 )
I think we may want to fix that. It makes tools that use the header to generate stuff harder to use. For example, at ALCF, we develop a tool that parses header files to generate tracepoints. And the 'header -> ast' transformation fails if not everything is well defined.
PS:
__precision_manipulator__
and__width_manipulator__
doesn't seem to be defined in the spec or by C++The text was updated successfully, but these errors were encountered: