For example:
project/utility/a.cpp
and
project/utility/a.h
are implementation file and header file for a batch of functions that are used everywhere in this project.
Now, imagine
project/component/b.h
would like to include a.h
. A common solution is to use:
#include "../utility/a.h"
in b.h
.
But this is not allowed in Google C++ style:
All of a project's header files should be listed as descendants of the project's source directory without use of UNIX directory shortcuts
.
(the current directory) or..
(the parent directory).
I tried to include it as showed in the document above, but it does not work.
So what should I do to include it without using '.' or '..' ?