Suppress/hide errors in external headers

已回答

CLion compiles my project, or files within it, to display issues, errors, warnings and/or suggestions. And - it does so differently than the compilation CMakeLists.txt mandates (which, when the code is stable, doesn't produce all those errors and warnings.)

Some suggestions I can ignore, some I choose to handle; and this is all fine and good (well, sort of, but never mind that.)

My problem is that I also get suggestions or error indicators about headers which aren't mine - which are included from my project, but are under /opt/whatever or /usr/local/somewhere . So I see dozens of supposed errors in those files, which I know are not errors per se, since it's pretty standard and I didn't touch it. I also can't make changes to it, since it's "not mine"; just the local copy is.

So, I just don't want to see errors and warnings from files outside my project. Can I get CLion to not show them?

0

Hello Anna.

 

I can't mark those directories as excluded. This menu item is only active for in-project directories, not for external include directories:

0

CLion shouldn't behave that way. And the whole situation sounds strange, especially

>CLion compiles my project, or files within it, to display issues, errors, warnings and/or suggestions. And - it does so differently than the compilation CMakeLists.txt mandates (which, when the code is stable, doesn't produce all those errors and warnings.)

Please send your project and instructions on how to reproduce the problem to clion-support at jetbrains.com.

 

0

请先登录再写评论。