c93f826661
Cleanup: various clang tidy fixes
2020-12-09 16:29:11 +01:00
7f2d356a67
Cleanup: Clang-Tidy, modernize-use-using
...
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-04 12:46:43 +01:00
168909d974
Cleanup: Clang-Tidy, modernize-use-override
...
No functional changes.
2020-12-04 12:02:52 +01:00
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
Ankit Meel
88de58fd1a
Clang-tidy, fix bugprone-exception-escape.
...
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-17 17:33:25 +05:30
cd9acfed4f
Cleanup: use preprocessor version check for PyTypeObject declaration
...
While `tp_print` was deprecated, Python 3.8+ uses this for
'tp_vectorcall_offset' which wasn't stated in the comment from
efd71aad4f .
Instead of suppressing clang-tidy, use preprocessor a check since
this properly represents the difference between Python versions.
2020-11-11 09:11:21 +11:00
b5d310b569
Cleanup: clang-format
2020-11-10 09:42:03 +11:00
efd71aad4f
Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_print
...
Clang-tidy behavior changes from Python 3.7 to 3.8+ so it's simplest
to suppress the warning in this instance.
2020-11-10 09:40:20 +11:00
e118426e46
Fix T82520: error building freestyle with Python3.8
...
Caused by 16732def37 ,
This is a 'Py_ssize_t' in Python 3.8,
replace with zero as this works in both 3.7 and 3.8.
2020-11-09 16:08:29 +11:00
8c846cccd6
Cleanup: clang-format
2020-11-09 15:47:08 +11:00
9cd9ea591f
Cleanup: NULL to nullptr.
2020-11-07 21:52:53 +05:30
40d4a4cb1a
Cleanup: Clang-format.
2020-11-07 18:48:13 +05:30
4525049aa0
Cleanup: Clang-tidy, modernize-concat-nested-namespaces
2020-11-07 18:48:13 +05:30
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
3cb4c51308
Cleanup: Clang-Tidy, modernize-make-unique
2020-11-06 16:47:16 +01:00
580ff2cb93
Cleanup: Render Module: combine intern/ source & include
2020-11-06 10:37:40 -05:00
e15076b22f
Cleanup: Render Module: move header files to main directory
...
Move headers files from `render/extern/` to `render/`
Part of T73586
2020-11-06 10:10:41 -05:00
af35ada2f3
Cleanup: Clang-Tidy, modernize-use-bool-literals
2020-11-06 14:32:51 +01:00
8d5073345d
Cleanup: Clang-Tidy, modernize-use-emplace
2020-11-06 14:06:52 +01:00
a331d5c992
Cleanup: Clang-Tidy, modernize-redundant-void-arg
2020-11-06 13:40:46 +01:00
190170d4cc
Cleanup: Clang-Tidy, readability-redundant-member-init
2020-11-06 11:54:53 +01:00
605425c006
Cleanup: doxygen comments
2020-11-06 14:35:38 +11:00
aa3a4973a3
Cleanup: use ELEM macro
2020-11-06 12:32:54 +11:00
7cb20d841d
Cleanup: follow our code style for float literals
2020-11-06 12:32:54 +11:00
569b7c2821
Cleanup: remove unused Blender Internal render stats code
2020-10-29 14:23:06 +01:00
Aaron Carlisle
baa24f1c91
Pydoc: Fix sphinx compile warnings about freestyle
...
Sphinx expects functions and methods with the same name and different
parameters to be written using one directive. See:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#basic-markup
Unfortunately this makes giving different descriptions for each harder.
This was already a request for better support for this in sphinx, see:
https://github.com/sphinx-doc/sphinx/issues/7787
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D9170
2020-10-22 17:22:05 -04:00
Valentin
5ac4778056
Cleanup: convert gforge task ID's to phabricator format
...
Cleanup old tracker task format to the new. e.g: [#34039 ] to T34039
Ref D8718
2020-09-30 20:11:06 +10:00
14b2a35c8b
Cleanup: use parenthesis for if statements in macros
2020-09-19 16:28:17 +10:00
23f1dea440
Cleanup: spelling
2020-09-09 13:30:05 +10:00
c350d1eb13
Cleanup: remove redundant scene argument in BKE_object_add
2020-09-07 14:09:50 +10:00
ffec86bb62
Cleanup: clang-format
2020-09-06 02:21:27 +10:00
2115232a16
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
...
No functional changes
2020-09-04 21:04:16 +02:00
ce67a9d39f
Cleanup: Clang-Tidy bugprone-copy-constructor-init fix
...
No expected functional changes.
2020-09-04 17:17:57 +02:00
fb5e2f5610
Cleanup: Clang-Tidy bugprone-incorrect-roundings fixes
...
Should cause no noticeable difference.
2020-09-04 16:23:08 +02:00
8057ab10db
Cleanup: Clang-Tidy readability-const-return-type fixes
...
No functional changes.
2020-09-04 12:04:47 +02:00
6a4f5e6a8c
Depsgraph: simplify build API
...
Reviewers: sergey, sybren
Differential Revision: https://developer.blender.org/D8611
2020-08-18 15:51:32 +02:00
d9f7cbb8af
Cleanup: remove bmain argument from BKE_scene_graph_update_for_newframe
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8613
2020-08-18 15:45:58 +02:00
0967935b42
Cleanup: split BPY_run_string_ex into two functions
...
Using a boolean to select between eval/exec behavior wasn't very
readable.
2020-08-17 18:32:20 +10:00
7341ceb674
Cleanup: move Python script execution into BPY_extern_run.h
...
This commit renames 'execute' to 'run' because:
- This follows Python's "PyRun" which these functions wrap.
- Execution functions can use either exec/eval modes,
making naming awkward (for future API refactoring).
2020-08-17 18:32:20 +10:00
a1d57e3f05
Cleanup: replace sizeof division with ARRAY_SIZE macro
2020-08-08 14:08:37 +10:00
171e77c3c2
Cleanup: use array syntax for sizeof with fixed values
...
Also order sizeof(..) first to promote other values to size_t.
2020-08-08 13:38:00 +10:00
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10:00
e3f369e13f
Cleanup: fix some clang tidy warnings
2020-08-07 19:19:38 +02:00
ad6e63cb96
Cleanup: enable Clang-Tidy bugprone-parent-virtual-call rule
...
I added a single `NOLINT` exception with explanation.
No functional changes.
2020-08-07 17:59:26 +02:00
326e137a8c
Cleanup: Freestyle, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/freestyle` module.
No functional changes.
2020-08-07 13:38:06 +02:00
7283e6fb73
Merge branch 'blender-v2.90-release' into master
2020-08-07 10:04:57 +02:00
91694b9b58
Code Style: use "#pragma once" in source directory
...
This replaces header include guards with `#pragma once`.
A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`),
because they are used in other places.
This patch has been generated by P1561 followed by `make format`.
Differential Revision: https://developer.blender.org/D8466
2020-08-07 09:50:34 +02:00
nutti
c442ff0017
Fix RST syntax for freestyle documentation
2020-08-02 18:12:22 +10:00
901ee66ea1
Cleanup: use term init instead of initialize/initialise
...
The abbreviation 'init' is brief, unambiguous and already used
in thousands of places, also initialize is often accidentally
written with British spelling.
2020-08-01 13:51:05 +10:00
a3c6304a27
Cleanup: quiet possible comma misuse warning in feestyle PyAPI
2020-07-29 11:00:32 +10:00