-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* clang-tidy config and fixes * tidy script * CI tidy checks * Run only on pushes to main
- Loading branch information
Showing
17 changed files
with
138 additions
and
73 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
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,37 @@ | ||
Checks: | ||
- readability-* | ||
- portability-* | ||
- performance-* | ||
- modernize-* | ||
- misc-* | ||
- cppcoreguidelines-* | ||
- concurrency-* | ||
- cert-* | ||
- bugprone-* | ||
- -misc-include-cleaner # not reliable | ||
- -llvm-header-guard # #pragma once | ||
- -llvm-include-order # managed by clang-format | ||
- -modernize-use-trailing-return-type # TODO | ||
- -misc-no-recursion # simplifies code | ||
|
||
CheckOptions: | ||
- { key: readability-identifier-naming.ClassCase, value: CamelCase } | ||
- { key: readability-identifier-naming.StructCase, value: CamelCase } | ||
- { key: readability-identifier-naming.MemberCase, value: camelBack } | ||
- { key: readability-identifier-naming.FunctionCase, value: camelBack } | ||
- { key: readability-identifier-naming.LocalVariableCase, value: camelBack } | ||
- { key: readability-identifier-naming.ParameterCase, value: camelBack } | ||
- { key: readability-identifier-naming.StaticConstantCase, value: CamelCase } | ||
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase } | ||
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase } | ||
- { key: readability-identifier-naming.ConstantMemberCase, value: camelBack } | ||
- { key: readability-identifier-length.MinimumVariableNameLength, value: 3 } | ||
- { key: readability-identifier-length.MinimumParameterNameLength, value: 3 } | ||
- { | ||
key: readability-identifier-length.IgnoredParameterNames, | ||
value: "i|j|k|x|y|z|os", | ||
} | ||
- { | ||
key: readability-identifier-length.IgnoredVariableNames, | ||
value: "i|j|k|x|y|z|os", | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/python | ||
|
||
from pathlib import Path | ||
import subprocess | ||
import argparse | ||
|
||
from common.project import cpp_files | ||
|
||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser(add_help=True) | ||
parser.add_argument('--clang-tidy', | ||
help='clang-tidy executable to use', | ||
type=str, | ||
default='run-clang-tidy') | ||
parser.add_argument('--compile-commands', | ||
help='Path to the directory with compile commands', | ||
type=Path, | ||
default='build') | ||
|
||
args = parser.parse_args() | ||
|
||
subprocess.run([args.clang_tidy, '-quiet', '-p', args.compile_commands.as_posix(), | ||
*[file.as_posix() for file in cpp_files()]]) |
This file was deleted.
Oops, something went wrong.
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,6 +1,7 @@ | ||
#include <pfr-orm/api.hpp> | ||
#include <pfr-orm/definitions.hpp> | ||
|
||
#include <array> | ||
#include <cstdint> | ||
|
||
namespace { | ||
|
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