Google C++ Style Guide include order
问题 Google C++ Style Guide recommends to include the header files (.h) to the implementation files (.cpp, .cc) in the following order: In dir/foo.cc or dir/foo_test.cc , whose main purpose is to implement or test the stuff in dir2/foo2.h , order your includes as follows: dir2/foo2.h. A blank line C system files. C++ system files. A blank line Other libraries' .h files. Your project's .h files. As said such order allows to see the omitted dependencies in dir2/foo2.h while compiling the foo -unit,