Campbell Barton
afc091c3c4
Cleanup: spelling in comments
2022-11-01 12:24:58 +11:00
Brecht Van Lommel
1840f44666
Fix build error on Windows without precompiled headers
...
Recent refactoring to use uint relied on indirect includes and precompiled
headers for uint to be defined. Explicitly include BLI_sys_types where this
type is used now.
2022-10-26 19:59:55 +02:00
Campbell Barton
331f850056
Cleanup: redundant parenthesis
2022-10-07 22:55:03 +11:00
Hans Goudey
97746129d5
Cleanup: replace UNUSED macro with commented args in C++ code
...
This is the conventional way of dealing with unused arguments in C++,
since it works on all compilers.
Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
2022-10-03 17:38:16 -05:00
Campbell Barton
8a68f4f808
Cleanup: replace unsigned with uint, use function style casts for C++
2022-09-26 10:09:15 +10:00
Campbell Barton
0419ee871f
Cleanup: remove redundant parenthesis (especially with macros)
2022-09-25 22:41:22 +10:00
Campbell Barton
f68cfd6bb0
Cleanup: replace C-style casts with functional casts for numeric types
2022-09-25 20:17:08 +10:00
Campbell Barton
891949cbb4
Cleanup: use 'u' prefixed integer types for brevity & cast style
...
To use function style cast '(unsigned char)x' can't be replaced by
'unsigned char(x)'.
2022-09-25 18:26:27 +10:00
Campbell Barton
c9e35c2ced
Cleanup: remove redundant double parenthesis
2022-09-25 15:34:32 +10:00
Brecht Van Lommel
cc12f3e0ba
Cleanup: fix various typos
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D15588
2022-08-03 19:28:05 +02:00
Campbell Barton
5e47056e8d
Cleanup: malformed C-style comment blocks, spelling
...
- Missing star prefix.
- Unnecessary indentation.
- Blank line after dot-points
(otherwise doxygen merges with the previous dot-point).
- Use back-slash for doxygen commands.
- Correct spelling.
2022-04-11 12:03:09 +10:00
Brecht Van Lommel
5f1adfc508
Cleanup: fix various typos
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D14443
2022-04-05 22:21:13 +02:00
Yuki Hashimoto
31bfa17a1f
Cleanup: delete unused ViewMapIO files in Freestyle
...
ViewMapIO.h is only included in Controller.cpp init_options().
However, g_models_path and g_flags set here are never used elsewhere.
Therefore, ViewMapIO files can be deleted without affecting anything.
Differential Revision: https://developer.blender.org/D14423
2022-03-23 20:06:12 +01:00
Campbell Barton
be7855591e
Cleanup: rename cnt to count
...
Follow naming from T85728.
2022-03-16 11:58:22 +11:00
Brecht Van Lommel
f130d4f211
Cleanup: fix various typos
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D14203
2022-03-07 17:28:39 +01:00
Campbell Barton
c434782e3a
File headers: SPDX License migration
...
Use a shorter/simpler license convention, stops the header taking so
much space.
Follow the SPDX license specification: https://spdx.org/licenses
- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile
While most of the source tree has been included
- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
use different header conventions.
doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.
See P2788 for the script that automated these edits.
Reviewed By: brecht, mont29, sergey
Ref D14069
2022-02-11 09:14:36 +11:00
Campbell Barton
3d3bc74884
Cleanup: remove redundant const qualifiers for POD types
...
MSVC used to warn about const mismatch for arguments passed by value.
Remove these as newer versions of MSVC no longer show this warning.
2022-01-07 14:16:26 +11:00
Brecht Van Lommel
7d5ef64bfb
Cleanup: fix typos in comments and docs
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D13264
2021-11-19 12:46:49 +01:00
Campbell Barton
f5acfd9c04
Cleanup: remove redundant parenthesis
2021-08-05 16:54:34 +10:00
Campbell Barton
ced94bc11c
Cleanup: code comments punctuation / spacing
2021-07-23 17:03:51 +10:00
Campbell Barton
bf5b1fa726
Cleanup: remove redundant parentheses
2021-07-16 11:45:52 +10:00
Campbell Barton
f0f7282d9d
Cleanup: spelling in comments
2021-07-05 15:54:57 +10:00
Campbell Barton
9b89de2571
Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXX
...
Also use doxy style function reference `#` prefix chars when
referencing identifiers.
2021-07-04 00:43:40 +10:00
Campbell Barton
f1e4903854
Cleanup: full sentences in comments, improve comment formatting
2021-06-26 21:50:48 +10:00
Campbell Barton
1f778dbefc
Cleanup: use Blender's code style for doxygen commetns in freestyle
2021-06-24 15:59:34 +10:00
Campbell Barton
4b9ff3cd42
Cleanup: comment blocks, trailing space in comments
2021-06-24 15:59:34 +10:00
Jacques Lucke
f031791185
Cleanup: modernize-use-equals-default
...
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
2021-04-08 15:51:39 +02:00
Jacques Lucke
de6f19ce22
Cleanup: modernize-use-equals-default
...
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
2021-04-08 11:24:02 +02:00
Campbell Barton
bf13a4d3ff
Cleanup: unused return statements
2021-03-21 14:00:40 +11:00
luzpaz
a4a9d14ba7
UI: Fix Typos in Comments and Docs
...
Approximately 91 spelling corrections, almost all in comments.
Differential Revision: https://developer.blender.org/D10288
Reviewed by Harley Acheson
2021-02-05 19:08:14 -08:00
Sybren A. Stüvel
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
Sybren A. Stüvel
168909d974
Cleanup: Clang-Tidy, modernize-use-override
...
No functional changes.
2020-12-04 12:02:52 +01:00
Sybren A. Stüvel
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
Campbell Barton
8c846cccd6
Cleanup: clang-format
2020-11-09 15:47:08 +11:00
Ankit Meel
9cd9ea591f
Cleanup: NULL to nullptr.
2020-11-07 21:52:53 +05:30
Ankit Meel
4525049aa0
Cleanup: Clang-tidy, modernize-concat-nested-namespaces
2020-11-07 18:48:13 +05:30
Sybren A. Stüvel
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
Sergey Sharybin
3cb4c51308
Cleanup: Clang-Tidy, modernize-make-unique
2020-11-06 16:47:16 +01:00
Sergey Sharybin
8d5073345d
Cleanup: Clang-Tidy, modernize-use-emplace
2020-11-06 14:06:52 +01:00
Sergey Sharybin
190170d4cc
Cleanup: Clang-Tidy, readability-redundant-member-init
2020-11-06 11:54:53 +01:00
Campbell Barton
aa3a4973a3
Cleanup: use ELEM macro
2020-11-06 12:32:54 +11:00
Campbell Barton
23f1dea440
Cleanup: spelling
2020-09-09 13:30:05 +10:00
Sebastian Parborg
2115232a16
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
...
No functional changes
2020-09-04 21:04:16 +02:00
Sybren A. Stüvel
8057ab10db
Cleanup: Clang-Tidy readability-const-return-type fixes
...
No functional changes.
2020-09-04 12:04:47 +02:00
Campbell Barton
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
Campbell Barton
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10:00
Jacques Lucke
e3f369e13f
Cleanup: fix some clang tidy warnings
2020-08-07 19:19:38 +02:00
Sybren A. Stüvel
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
Jacques Lucke
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
Jacques Lucke
725973485a
Clang Tidy: enable readability-non-const-parameter warning
...
Clang Tidy reported a couple of false positives. I disabled
those `NOLINTNEXTLINE`.
Differential Revision: https://developer.blender.org/D8199
2020-07-13 11:27:09 +02:00