How to configure CLion to embed GCC prime code instead of the clang pragma?

CLION detects an "Unused import statement" in the cpp file. When I select "Suppress UnusedImportStatement for file" insertion of CLion:

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

....

#pragma clang diagnostic pop

How to configure CLION to create these pragmas targeting GCC instead of clang?

+4
source share

Source: https://habr.com/ru/post/1615482/


All Articles