Commit Graph

34 Commits

Author SHA1 Message Date
Carles Fernandez d041f69bd4
CI: add cppcoreguidelines-prefer-member-initializer clang-tidy check
Update clang-tidy keys and values
2021-12-17 20:11:02 +01:00
Carles Fernandez f9911cbc3f
Fix lintian warning very-long-line-length-in-source-file (raised by Lintian v2.110.0)
Rationale:
The source file includes a line length that is well beyond the normally human made code line length.
This very long line length does not allow Lintian to do correctly some source file checks.
This line could also be the result of some text injected by a computer program, and thus could lead to FTBFS bugs.
Last but not least, long line in source code could be used to obfuscate the source code and to hide stuff like backdoors or security problems.
2021-10-29 14:26:55 +02:00
Carles Fernandez b7bf8ceb14
Add bugprone-reserved-identifier check, modernize options 2021-01-05 14:49:45 +01:00
Carles Fernandez 21352a80d1
Apply and add clang-tidy ckecks readability-make-member-function-const and readability-qualified-auto 2020-12-30 21:49:29 +01:00
Carles Fernandez 1cbba82e7e
Add modernize-avoid-bind 2020-04-26 07:53:46 +02:00
Carles Fernandez a49e4d48f6
Remove modernize-avoid-bind clang-tidy filter 2020-04-25 20:30:53 +02:00
Carles Fernandez 4d0d263280
Make the software package compliant with the REUSE Specification v3.0 (see https://reuse.software/spec/)
Update license headers to SPDX format (see https://spdx.org/)
Add license to all files
Add CI job in GitHub Actions to ensure compliance
2020-02-08 01:20:02 +01:00
Carles Fernandez 7126185515
Add and apply readability-braces-around-statements check 2019-10-11 19:24:20 +02:00
Carles Fernandez 0520d400b3 Apply clang-tidy 2019-09-11 22:31:34 +00:00
Carles Fernandez a0a0a7e1c8
Add clang-tidy bugprone checks 2019-08-24 17:38:32 +02:00
Carles Fernandez b956a28a0f
Add clang-analyzer-optin.performance.* and clang-analyzer-optin.portability.UnixAPI checks 2019-08-16 16:04:04 +02:00
Carles Fernandez 942ac32701
Add modernize-return-braced-init-list and modernize-shrink-to-fit checks to .clang-tidy file 2019-08-14 01:33:51 +02:00
Carles Fernandez 4560712791
Apply modernize-use-default-member-init and readability-redundant-member-init clang-tidy checks 2019-08-14 00:56:53 +02:00
Carles Fernandez a66ef4fb34
Apply modernize-redundant-void-arg clang-tidy check 2019-08-14 00:47:48 +02:00
Carles Fernandez b0237d2993
Add clang-analyzer-security.* checks 2019-08-13 14:43:20 +02:00
Carles Fernandez 78b07ee7b2
Add checks to .clang-tidy file 2019-08-13 01:11:41 +02:00
Carles Fernandez 4f9cfedc62
Add more check options to .clang-tidy file 2019-08-12 12:09:05 +02:00
Carles Fernandez 5e5c68c2f9
Add more performance and high integrity checks 2019-07-30 19:07:36 +02:00
Carles Fernandez cc54b4a122 Enforce rule 15.1 of the High Integrity C++ Coding Standard
See https://www.perforce.com/resources/qac/high-integrity-c-coding-standard-exception-handling
2019-07-30 12:51:36 +02:00
Carles Fernandez 6911ad8fce
Remove performance-unnecessary-copy-initialization clang-tidy check
Applying its fixes breaks building when using clnag 8.0 :-(
2019-06-15 13:07:09 +02:00
Carles Fernandez 68bb71e593
Add readability-identifier-naming keys 2019-02-22 12:47:21 +01:00
Carles Fernandez 62a7e54359
Introduce readability-identifier-naming check
This commit enforces naming style for Classes and global constants:
Camel_Snake_Case for Classes
UPPER_CASE for global constants
CamelCase for abstract classes
2019-02-22 10:47:24 +01:00
Carles Fernandez 1e356ad8dc
clang-tidy: add and apply misc-unused-using-decls check 2019-02-21 13:36:21 +01:00
Carles Fernandez 78afe4834d
Improve readability 2019-02-21 11:23:25 +01:00
Carles Fernandez 0715c4de45
clang-tidy: add and apply readability-inconsistent-declaration-parameter-name check 2019-02-20 23:36:26 +01:00
Carles Fernandez 719af13a33 Remove google-runtime-references check 2019-02-14 12:51:43 +01:00
Carles Fernandez 9146b2ef11
Add check options 2019-02-11 21:29:37 +01:00
Carles Fernandez 14fb555b3c Remove modernize-deprecated-headers and modernize-use-using checks since they affect C code 2019-02-11 17:19:51 +01:00
Carles Fernandez 64f7a900c6 Remove llvm-header-guard filter 2019-02-11 11:26:43 +01:00
Carles Fernandez 38858dece6
Apply clang-tidy fix readability-non-const-parameter 2018-12-11 12:38:38 +01:00
Carles Fernandez 27b7a93181
Apply clang-tidy fix readability-container-size-empty 2018-12-11 12:25:38 +01:00
Carles Fernandez f351615ef9
Apply clang-tidy fix modernize-use-bool-literals 2018-12-11 12:08:54 +01:00
Carles Fernandez 54237770a6
Apply fixes by clang-tidy 2018-12-10 22:59:10 +01:00
Carles Fernandez add5ba8112
Add .clang-tidy file and generate a compile_commands.json file containing the exact compiler calls for all translation units of the project in machine-readable form if clang-tidy is detected 2018-12-08 23:16:10 +01:00