mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 23:29:57 +00:00
523c443d13
Update `.clang-format` with configuration to make the 6.0 format as close as possible to what 3.8 produced before. Then revise the style: * Indent preprocessor directives (a feature new since 3.8) * Add a newline and indentation before inheritance `:` and `,` Rename the Git attribute identifying the format to include the clang-format version number: `format.clang-format-6.0`. This will aid external infrastructure in knowing what version of the tool to run.
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
.gitattributes export-ignore
|
|
.hooks* export-ignore
|
|
|
|
# Custom attribute to mark sources as using our C code style.
|
|
[attr]our-c-style whitespace=tab-in-indent format.clang-format-6.0
|
|
|
|
# Custom attribute to mark sources as generated.
|
|
# Do not perform whitespace checks. Do not format.
|
|
[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format-6.0
|
|
|
|
bootstrap eol=lf
|
|
configure eol=lf
|
|
*.[1-9] eol=lf
|
|
*.sh eol=lf
|
|
*.sh.in eol=lf
|
|
|
|
*.bat eol=crlf
|
|
*.bat.in eol=crlf
|
|
*.sln eol=crlf
|
|
*.vcproj eol=crlf
|
|
|
|
*.pfx -text
|
|
*.png -text
|
|
|
|
*.c our-c-style
|
|
*.cc our-c-style
|
|
*.cpp our-c-style
|
|
*.cu our-c-style
|
|
*.cxx our-c-style
|
|
*.h our-c-style
|
|
*.hh our-c-style
|
|
*.hpp our-c-style
|
|
*.hxx our-c-style
|
|
*.notcu our-c-style
|
|
|
|
*.cmake whitespace=tab-in-indent
|
|
*.rst whitespace=tab-in-indent conflict-marker-size=79
|
|
*.txt whitespace=tab-in-indent
|