3 ms·
So, instead of using > <> means system headers and "" means project headers (my naive understanding of the difference) they just convert everything to a proje
by RHSeeger 2y ago
So, instead of using
> <> means system headers and "" means project headers (my naive understanding of the difference)
they just convert everything to a project header? That seems bonkers to me. It is intentionally removing useful information.
- hoseja 2y agoHierarchy is problematic.
- rileymat2 2y agoThe main difference is how the search for the file works. “” prefers local directory before the search path, <> goes to the search path first.
- plq 2y agoFirst, here's the actual guide: https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes https://google.github.io/styleguide/cppguide.html#Names_and_... . Of course they still have to use stuff like #include <windows.h> but it's very very limited. They also are not removing any info -- most of it IS project headers. To me that's the actual bonkers bit :) With GCC/Clang, headers found in paths passed with -isystem are headers that are immune to compiler arguments like -Werror because they are, by definition, out of your control. In Google's case, ALL code is already checked in the project repo, including language stdlib. So none of them are system headers "per se".