How to configure CLion to insert GCC pragmas instead of clang pragmas?

Answered

CLion detects "Unused import statement" in a cpp file. When I select "Suppress UnusedImportStatement for file" CLion inserts:

#pragma clang diagnostic push
#pragma ide diagnostic ignored "UnusedImportStatement"

....

#pragma clang diagnostic pop


How do I configure CLion to generate these pragmas targeting GCC instead of clang?

Thanks.

PS: I posted this on SO yesterday as well: http://stackoverflow.com/questions/33660776/how-to-configure-clion-to-insert-gcc-pragmas-instead-of-clang-pragmas

0
2 comments

Hi Jeevaka.

It's not implemented yet. I've created the issue in the tracker: https://youtrack.jetbrains.com/issue/CPP-5059. Feel free to comment or upvote.

0
Avatar
Permanently deleted user

Thanks. Seems like I cannot upvote as my account doesn't have a license linked to it. (Still using eval version.)

0

Please sign in to leave a comment.