Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-06Clang-tidy: Ignore variable name length and .c/.cc include warningsSebastian Parborg
After some internal discussion it was decided that we should ignore name variable length tidy warnings. Otherwise we would have warnings for every variable that is under three characters long. Additionally we will also ignore any warnings when including non header files as the Unity library in our build system uses this excessively
2022-05-06Fix: Comments in clang-tidy checks list is not allowedSebastian Parborg
Clang-tidy will not parse any options after the comment.
2021-11-23Clang Tidy: ignore some passes that changed or were added in version 13Jacques Lucke
I get hundreds of clang-tidy errors without ignoring those passes right now. To not forget about the passes, I added them to T78535.
2021-04-08Cleanup: enable modernize-use-equals-default checkJacques Lucke
This removes a lot of unnecessary code that is generated by the compiler automatically. In very few cases, a defaulted destructor in a .cc file is still necessary, because of forward declarations in the header. I removed some defaulted virtual destructors, because they are not necessary, when the parent class has a virtual destructor already. Defaulted constructors are only necessary when there is another constructor, but the class should still be default constructible. Differential Revision: https://developer.blender.org/D10911
2021-03-29Clang Tidy: disable WarningsAsErrorsJacques Lucke
This makes regular development more pleasant, because one does not have to fix unrelated clang tidy mistakes when one is in the middle of something. Before this change, I would usually turn clang-tidy off entirely, but then forget to turn it on again. This change has been agreed on by Sergey as well.
2021-03-22Cleanup: add commentJacques Lucke
See rBb9cd2f4531ca670c196b0b14b1359d0f375103c2 for more info.
2021-03-22Clang Tidy: disable modernize-raw-string-literal againJacques Lucke
This check does not work when gtests are enabled yet. See rBb9cd2f4531ca670c196b0b14b1359d0f375103c2 for more details.
2021-02-05Cleanup: Use raw string literalSergey Sharybin
Resolves modernize-raw-string-literal Clang-Tidy warning The way warning works is it suggests to use raw literal when overhead of having escape characters is higher than the overhead of having raw literal syntax (talking about code size overhead). This means that the warning will not trigger for "foo\"bar". Differential Revision: https://developer.blender.org/D10322
2021-02-05Cleanup: Use lambda instead of function bindSergey Sharybin
More detailed explanation why it is a preferred way of coding nowadays can be found at https://clang.llvm.org/extra/clang-tidy/checks/modernize-avoid-bind.html Resolves modernize-avoid-bind Clang-Tidy warning. Differential Revision: https://developer.blender.org/D10320
2021-02-05Cleanup: Use transparent functorSergey Sharybin
Resolves modernize-use-transparent-functors Clang-Tidy warning. Differential Revision: https://developer.blender.org/D10323
2021-02-05Cleanup: Clang-tidy modernize-use-default-member-initAnkit Meel
Using assignment syntax as we don't use `{}` initialization yet. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9501
2020-12-04Cleanup: Clang-Tidy, modernize-use-usingSybren A. Stüvel
Replace `typedef` with `using` in C++ code. In the case of `typedef struct SomeName { ... } SomeName;` I removed the `typedef` altogether, as this is unnecessary in C++. Such cases have been rewritten to `struct SomeName { ... };` No functional changes.
2020-12-04Cleanup: Clang-tidy, actually enable the modernize-use-override ruleSybren A. Stüvel
Forgot this in rB168909d9741. No functional changes.
2020-12-04Cleanup: Clang-Tidy, modernize-deprecated-headersSybren A. Stüvel
No functional changes.
2020-11-17Clang-tidy, fix bugprone-exception-escape.Ankit Meel
Remove redundant call to `ofstream::close()` from `~PSStrokeRenderer` and `~TextStrokeRenderer`. ofstream will be destructed automatically. - For `~Depsgraph`, `std::function`'s constructor can throw. - Passing throwing statements in the lambda will not be detected by clang-tidy. Fix these issues by using lambda as function argument. Reviewed By: sergey, sybren Differential Revision: https://developer.blender.org/D9497
2020-11-07Cleanup: Clang-tidy, modernize-concat-nested-namespacesAnkit Meel
2020-11-06Cleanup: Clang-Tidy modernize-use-nullptrSybren A. Stüvel
Replace `NULL` with `nullptr` in C++ code. No functional changes.
2020-11-06Cleanup: Clang-Tidy, modernize-make-uniqueSergey Sharybin
2020-11-06Cleanup: Clang-Tidy, modernize-use-bool-literalsSergey Sharybin
2020-11-06Cleanup: Clang-Tidy, modernize-use-emplaceSergey Sharybin
2020-11-06Cleanup: Clang-Tidy, modernize-redundant-void-argSergey Sharybin
2020-11-06Clang Tidy: Expand modernize categorySergey Sharybin
Gives an idea of which warnings are affecting Blender code base.
2020-11-06Cleanup: Clang-Tidy, readability-redundant-member-initSergey Sharybin
2020-10-21Cleanup: Clang-tidy readability-named-parameterAnkit Meel
No functional change.
2020-10-21Cleanup: Clang-tidy readability-redundant-string-initAnkit Meel
No functional change.
2020-10-21Clang-tidy: disable new warnings.Ankit Meel
Until it is decided whether to work on, or ignore these warning, disable them. See T78535 Reviewed By: sergey Differential Revision: https://developer.blender.org/D9281
2020-09-04Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fixSebastian Parborg
No functional changes
2020-09-04Cleanup: Clang-Tidy bugprone-copy-constructor-init fixSybren A. Stüvel
No expected functional changes.
2020-09-04Cleanup: Clang-Tidy, describe current status of rulesSybren A. Stüvel
No functional changes.
2020-09-04Cleanup: Clang-Tidy bugprone-incorrect-roundings fixesSybren A. Stüvel
Should cause no noticeable difference.
2020-09-04Cleanup: Enable Clang-Tidy readability-qualified-auto ruleSybren A. Stüvel
No functional changes. No changes except enabling the rule, even.
2020-09-04Cleanup: Clang-Tidy readability-redundant-declaration fixSybren A. Stüvel
No functional changes.
2020-09-04Cleanup: Clang-Tidy readability-static-accessed-through-instance fixesSybren A. Stüvel
No functional changes.
2020-09-04Cleanup: Clang-Tidy readability-const-return-type fixesSybren A. Stüvel
No functional changes.
2020-09-04Cleanup: Clang-Tidy readability-redundant-preprocessor fixesSybren A. Stüvel
Remove redundantly nested `#if` and `#ifdef` statements. One nested `#if 0` block was left untouched, as it's in particle code that's no longer maintained. Furthermore, that block also has some explanation as to the differences between the enabled & disabled parts. One nested `#if 0` construct was completely removed, leaving only the actually used bit of code. There was no explanation as to the usefulness of the disabled code, and it hasn't been touched in years. No functional changes.
2020-08-07Cleanup: enable Clang-Tidy `bugprone-parent-virtual-call` ruleSybren A. Stüvel
I added a single `NOLINT` exception with explanation. No functional changes.
2020-08-07Cleanup: enabled Clang-Tidy `bugprone-suspicious-missing-comma` ruleSybren A. Stüvel
No functional changes because no code changed.
2020-08-07Cleanup: enabled Clang-Tidy `bugprone-not-null-terminated-result` ruleSybren A. Stüvel
No functional changes because no code changed.
2020-08-07Cleanup: fixed Clang-Tidy `bugprone-suspicious-string-compare` warningsSybren A. Stüvel
No functional changes.
2020-08-07Cleanup: enabled Clang-Tidy rule `bugprone-infinite-loop`Sybren A. Stüvel
Enabling it and doing a full rebuild didn't cause any warnings, so nothing else to do here. No functional changes.
2020-08-07Cleanup: enable and silence Clang-Tidy readability-function-sizeSybren A. Stüvel
Enable Clang-Tidy's `readability-function-size` rule and add a few `NOLINT` markers to explicitly silence warnings for three functions. These functions are huge and would IMO benefit from splitting up, but are hard to without intimate knowledge of the code. At least by enabling the rule, we can start tweaking the values and refactoring other functions that bubble up as being too long/complex. No functional changes.
2020-08-07Cleanup: Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule. This should be the final commit of the series of commits that addresses this particular rule. No functional changes.
2020-08-07Clang-Tidy: Address readability-redundant-string-initSergey Sharybin
2020-07-15Clang-Tidy: ignore some newer checksJacques Lucke
Those checks have been added to clang tidy within the last year. They fail when I use a clang tidy version I built from source. Reviewers: sergey Differential Revision: https://developer.blender.org/D8302
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-07-03Clang-tidy: Enable braces-around-statements warningSebastian Parborg
2020-07-03Clang-Tidy: Enable bugprone-misplaced-widening-castSergey Sharybin
2020-07-03Clang-Tidy: enable readability-named-parameterJacques Lucke
2020-07-03Clang-Tidy: enable bugprone-too-small-loop-variableJacques Lucke
2020-07-03Clang-Tidy: enable bugprone-assert-side-effectJacques Lucke
Looks like we have no assertions with side effects.