23f1dea440
Cleanup: spelling
2020-09-09 13:30:05 +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
a1d57e3f05
Cleanup: replace sizeof division with ARRAY_SIZE macro
2020-08-08 14:08:37 +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
b274d18aec
Cleanup: correct usage of extern-C blocks in various places
...
This removes extern-C blocks around other includes and adds
such blocks for some headers that need them.
2020-07-28 16:33:43 +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
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
f4ee9643ad
Fix Linux/GCC build error after recent changes
2020-04-21 14:28:26 +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
f0b0524c5f
Cleanup: spelling
2020-03-14 15:43:21 +11:00
85424397b1
Cleanup: tweak Freestyle #includes in preparation for clang-format sorting
2020-03-06 17:26:32 +01:00
9a855f94fc
Cleanup: Spelling
2020-02-28 10:12:08 +01:00
d119e163d0
Fix many typos and other issues in UI messages.
2020-02-17 13:01:07 +01:00
dc2cd2d0dc
Cleanup: clang-format, spelling
2019-10-10 10:29:50 +11:00
b1959a96a2
Cleanup: spelling
2019-08-18 04:26:34 +10:00
0d719fcacb
Cleanup: spelling
2019-08-12 01:10:43 +10: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
e85635b882
Cleanup: comment spelling
2019-06-17 08:05:58 +10: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
1cb091ae7a
Cleanup: correct arg wrapping from recent cleanup
2019-05-01 20:32:38 +10: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
b9af4efe41
Cleanup: fix compiler warnings.
2019-03-16 20:21:16 +01:00
35b78d9807
Cleanup: indentation, wrapping
...
Mostly functions wrapping args, not confirming to our style guide.
2019-03-15 09:54:30 +11: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
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
91a155833e
Cleanup: comments causing bad clang-format output
2019-01-08 10:37:43 +11:00
9200dc0eb1
Cleanup: preprocessor indentation
2019-01-03 15:52:07 +11:00
6d89337257
Fix/cleanup typos and such in UI messages (and some comments).
2018-12-24 15:03:49 +01:00
49490e5cfb
Merge branch 'master' into blender2.8
2018-12-12 13:02:09 +11:00
e757c4a3be
Cleanup: use colon separator after parameter
...
Helps separate variable names from descriptive text.
Was already used in some parts of the code,
double space and dashes were used elsewhere.
2018-12-12 12:50:58 +11:00
8ceff4c9ee
Merge branch 'master' into blender2.8
2018-09-05 15:01:58 +10:00
44d4a61ed0
Cleanup: replace doxy @ with backslash
...
The rest of Blender uses backslashes.
2018-09-05 14:56:29 +10:00
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
410880552b
Cleanup: trailing space for freestyle
2018-06-17 17:05:14 +02:00
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +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