I realize the guideline says to use Google style formatting except for 4 space tabs, but this isn't actually the case. For example, Lines are not limited to 80 chars, include files are not always sorted, "private/public:" are at times not indented as in Google, etc. Does it make sense to put a .clang-format file in the source tree Visual Studio document formater can be used without fear of munging the code?
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 0
# AlignConsecutiveAssignments: true # I like this, but I'm not sure you'd agree. It sometimes requires an extra blank line to make it pretty
# AlignConsecutiveDeclarations: true # as above
SortIncludes: false
...
I realize the guideline says to use Google style formatting except for 4 space tabs, but this isn't actually the case. For example, Lines are not limited to 80 chars, include files are not always sorted, "private/public:" are at times not indented as in Google, etc. Does it make sense to put a .clang-format file in the source tree Visual Studio document formater can be used without fear of munging the code?