-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Clang: Add support for clang compiler #299
Comments
The syntax you are referring to is standard per C++14. Clang supports C++14 starting with v3.4. Be sure you are using an up-to-date version of the compiler with the correct flags. |
Sorry @hab-0 , but can you provide the version of clang you are using? We do compile using clang c++14 as part of our CI so it is generally compatible. |
hi @thirtytwobits ,
Generator:
I just created a very simple main program which I try to compile with clang++ with the following options:
output:
tested with same results also with generator version:
IMO, the problem is the way the generator places the "deprecated" attribute.
while nunavut is generating:
GCC is more tolerant and just gives you a warning that you can easily suppress:
Clang seems stricter and so far I did not find the way or an option to compile my application (ignoring or suppressing the error: misplaced attributes) Just for testing, i modified the file with the syntax as follows: Clang++ does complain and the program is compiled without errors. Could you please let me know if my findings are correct and the code generator should be modified to generate the struct declaration with the syntax?
|
The current generated files (c++) are not compatible with the Clang compiler https://clang.llvm.org/.
e.g:
The following syntax used on the Nunavut generated files is not supported by the Clang compiler:
[[deprecated( string-literal )]]
The text was updated successfully, but these errors were encountered: