Can't exclude folders from code inspection
I followed these instructions
https://www.jetbrains.com/help/resharper/Code_Analysis__Configuring_Warnings.html#exclude_items
to exclude a directory with source files from the code inspection.
When I select go to definition of function, the source files still appear on the list.
A file for example is fixed_volume.cpp.
Please sign in to leave a comment.
How do I edit my post?
Hello,
It's somewhat confusing, but the setting you referenced only turns off code inspections in the excluded files. You probably want to add your folders to "Third-Party code" (https://www.jetbrains.com/help/resharper/Reference_Options_Code_Editing_Third_Party_Code.html). The code excluded using "Third-party" code does not get indexed and most R# features are turned off inside the excluded files.
Not sure why third-party (it's my code even though generated), and what's the difference.
Anyway, both methods work, and it's enough just to add the top dir (and it would apply to its sub-dirs):
C:\prj-external-libs\mantaflow\build\pp\
However, the instructions miss a crucial step: clear cache
https://mike-ward.net/2017/06/29/quick-tip-clear-resharpers-cache-to-fix-errors/