From today's nightly build, you can also add directories to parse in the project properties, ie right click on the project, click on Properties and select the C/C++ parser options.
Just to clarify: these are not directories to parse but directories to be searched when locating a file to parse.
They 're mostly useful when you don't add compiler search dirs in build options but use backticked expressions (e.g.
`freetype-config --cflags`). In this case, the parser is not aware of where freetype (in this example) is located. So, by manually adding the freetype's directory in the parser's search dirs you 're actually helping the parser find freetype's files.
Of course, backticked expressions are not the only reason these parser search dirs are useful. As another example, I have a set of projects in a workspace. To minimize maintenance overhead, I 'm using build scripts to configure these projects. Now, although build scripts are an awesome feature, the C/C++ parser faces the same problem: it doesn't know where to search for files. The parser search directories come to the rescue again.