This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang-tidy modernizations & clang-format reformat (#2012)
- Reformats according to tools/fix-format.sh: Google style. Headers sorted -- except for a handful where that resulted in errors. That part needs to be automated, and isn't contained yet in `tools/fix-format.sh` - adds a script to tools/ to generate compile_commands.json for clang_tidy. - Ran some auto-fixes from clang-tidy-10: ``` modernize-deprecated-headers modernize-make-shared modernize-make-unique modernize-use-default modernize-use-emplace modernize-use-nullptr modernize-use-override modernize-use-using ``` Should be a functional no-op, but not everything could be automated. Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
- Loading branch information
Showing
1,397 changed files
with
42,659 additions
and
50,094 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
--- | ||
Language: Cpp | ||
AccessModifierOffset: -2 | ||
ColumnLimit: 100 | ||
# Use the Google style in this project. | ||
BasedOnStyle: Google | ||
Language: Cpp | ||
AccessModifierOffset: -1 | ||
ColumnLimit: 80 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
SortIncludes: true | ||
... | ||
|
||
SortIncludes: false | ||
# This excludes multi-line comments, and with that | ||
# we leave license banners as-is | ||
CommentPragmas: "." | ||
ReflowComments: false | ||
--- | ||
Language: Proto | ||
ColumnLimit: 100 | ||
SpacesInContainerLiterals: false | ||
AllowShortFunctionsOnASingleLine: false | ||
... |
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ bazel-* | |
.vscode/ipch | ||
.vscode/.vs_code_bazel_build/vs_code_aspect.bzl | ||
external/ | ||
compile_commands.json |
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
Oops, something went wrong.