Seems to be a bug, workaround
1. Out of sight is pure: Turn off the relevant prompt options in Project->Properties->C/C++ General->Code Analysis
2. Project->Properties->C/C++ General->Indexer Select Enable project specific settings Indexer Options Remove Index source files not included in the build Remove index unused headers (some errors are valid)