67c8d97db3
Cleanup: spelling
2021-02-14 20:58:04 +11:00
9ad181a5d0
Cleanup: email address formatting
...
Match git style email addresses, ignored by the spell checker.
2021-01-24 16:08:17 +11:00
c93f826661
Cleanup: various clang tidy fixes
2020-12-09 16:29:11 +01:00
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
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
8d5073345d
Cleanup: Clang-Tidy, modernize-use-emplace
2020-11-06 14:06:52 +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
14b2a35c8b
Cleanup: use parenthesis for if statements in macros
2020-09-19 16:28:17 +10:00
2115232a16
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
...
No functional changes
2020-09-04 21:04:16 +02:00
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10: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
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
f891d4e2ad
Clang-Tidy: Fix readability-delete-null-pointer warnings
...
Also enable it in the configuration.
2020-07-03 16:32:51 +02:00
19ff145e66
Clang-Tidy: Enable readability-redundant-control-flow
2020-07-03 09:41:55 -04:00
2633683b52
Clang-tidy: enable readability-container-size-empty warning
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8197
2020-07-03 14:59:27 +02:00
6f985574b7
Cleanup: take includes out of 'extern "C"' blocks
...
Surrounding includes with an 'extern "C"' block is not necessary anymore.
Also that made it harder to add any C++ code to some headers, or include headers
that have "optional" C++ code like `MEM_guardedalloc.h`.
I tested compilation on linux and windows (and got help from @LazyDodo ).
If this still breaks compilation due to some linker error, the header containing
the symbol in question is probably missing an 'extern "C"' block.
Differential Revision: https://developer.blender.org/D7653
2020-05-08 18:22:41 +02:00
5fed9ac9b5
Fix clang-format differences between version 6 and 9
...
Version 6 does not appear to respect clang-format off for header sorting.
2020-04-21 13:16:59 +02:00
a1322d7c95
Cleanup: fix typos in comments
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D7133
2020-03-19 21:55:17 +01:00
85424397b1
Cleanup: tweak Freestyle #includes in preparation for clang-format sorting
2020-03-06 17:26:32 +01:00
2425401a59
Cleanup: spelling
2019-08-04 12:51:44 +10:00
760dbd1cbf
Cleanup: misc spelling fixes
...
T68035 by @luzpaz
2019-08-01 14:02:41 +10:00
604fdb6e85
Spelling fixes in comments and descriptions, patch by luzpaz
...
Differential Revision: https://developer.blender.org/D3744
2019-07-31 14:27:35 +02:00
aba4e6810f
Cleanup: style, use braces in source/ (include disabled blocks)
2019-05-31 23:22:52 +10:00
d8dbd49a2f
Cleanup: style, use braces in source/
...
Automated using clang-tidy.
2019-05-31 22:55:15 +10:00
b20cefdab3
Fix T64623: Freestyle procedural noise not consistent across platforms
...
Use the Blender RNG instead of rand() to solve it.
2019-05-14 23:45:14 +02:00
1e8697cd80
Cleanup: comments (long lines) in freestyle
2019-05-01 07:58:27 +10:00
333cdbb410
Cleanup: comment blocks
2019-04-18 07:59:28 +02:00
41d4a19865
ClangFormat: format '#if 0' code in source/
2019-04-17 08:24:14 +02:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
3be845ce20
Cleanup: Typos in comments (to to)
2019-02-04 01:23:48 +01:00
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +11:00
4ef09cf937
Cleanup: remove author/date info from doxy headers
2019-02-02 11:58:24 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
9200dc0eb1
Cleanup: preprocessor indentation
2019-01-03 15:52:07 +11:00
2083a7e274
Cleanup: style (pointers)
2018-10-11 09:03:39 +11:00
bb3ec3ebaf
BLI_utildefines: rename pointer conversion macros
...
Terms get/set don't make much sense when casting values.
Name macros so the conversion is obvious,
use common prefix for easier completion.
- GET_INT_FROM_POINTER -> POINTER_AS_INT
- SET_INT_IN_POINTER -> POINTER_FROM_INT
- GET_UINT_FROM_POINTER -> POINTER_AS_UINT
- SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19 12:12:21 +10:00
410880552b
Cleanup: trailing space for freestyle
2018-06-17 17:05:14 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
72c9141a7a
Cleanup: doxygen comments
...
Also remove duplicate & mismatching comments from grease-pencil header.
Keep comments close to implementation to avoid getting out of sync.
2017-06-19 10:04:30 +10:00
7f262acb92
Fix T49479: Freestyle inconsistent line drawing with large geometry dimension.
...
Ray-plane intersection routine GeomUtils::intersectRayPlane() was used with an
unnormalized direction vector as input.
2016-12-28 18:09:35 +09:00
9f5621bb4a
Cleanup: comment blocks
2016-07-02 10:08:33 +10:00
a269287f36
Cleanup: use single struct for freestyle globals
...
Was shadowing local vars.
2015-11-23 17:40:09 +11:00
b098609186
Fix various compiler warnings.
2015-10-10 17:35:30 +02:00
09e40a4956
Cleanup: spelling
2015-09-14 02:22:22 +10:00
b9895df36f
Freestyle: internal switch from double to float in mesh loading and construction of winged edges.
2015-07-20 06:17:55 +09:00
13358d049e
Freestyle: Code cleanup, prepare for strict C++ flags
2015-03-27 18:23:31 +05:00