-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
58 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Important: Use the same version of clang-format as our linter, which is: | ||
# | ||
# $ ./scripts/install_deps.py --only-python | ||
# $ ./.venv/bin/clang-format --version | ||
# | ||
# Warning: If you use a different version, the formatting will be different. | ||
# | ||
# To install a specific version of clang-format, use pip: | ||
# $ pip install clang-format==<version> | ||
|
||
BasedOnStyle: LLVM | ||
|
||
# Turn off LLVM default alignment of params with the opening bracket, | ||
# which can be less readable in some cases in our code base. | ||
# | ||
# Using `AlwaysBreak` will result in: | ||
# void fooBarBazQuxHelloWorld( | ||
# int a, | ||
# int b); | ||
# | ||
# Instead of: | ||
# void fooBarBazQuxHelloWorld(int a, | ||
# int b); | ||
AlignAfterOpenBracket: AlwaysBreak | ||
|
||
# Turn off LLVM default packing of ctor initializers. | ||
# This makes it easier to see which members were initialized and in what order. | ||
PackConstructorInitializers: CurrentLine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters