Age | Commit message (Collapse) | Author |
|
Fix several issues in CLOG code:
* In `clg_str_reserve`, allocated memory may be bigger than requested
one, do not assign the latter back to `cstr->len_alloc`.
* `clg_str_vappendf` was mis-interpreting returned value from
`vsnprintf`, and completely mixing total allocated memory and extra
needed amount of memory to allocate...
Simplified code of `clg_str_vappendf` to only have allocating code
handled in one place, makes things easier to follow too.
Think this should also be beckported to 2.83.
|
|
|
|
|
|
|
|
|
|
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
|
|
No functional change, this adds LIB definition and args to cmake files.
Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS'
since there are many platforms/configurations that could break when
changing linking order.
Manually add and enable WITHOUT_SORTED_LIBS to try building
without sorted libs (currently fails since all variables are empty).
This check will eventually be removed.
See T46725.
|
|
Previous waning suppression was only tested with clang.
|
|
|
|
There is no need for threading for makesrna/makesdna,
disable it to avoid hassles linking build time utilities.
|
|
|
|
While \file doesn't need an argument, it can't have another doxy
command after it.
|
|
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
|
|
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.
|
|
Part of D4277 by @sobakasu
|
|
Part of D4214 by @sobakasu w/ edits.
|
|
No longer needed and exposes a bug in clang-format see: D4185
|
|
Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.
|
|
D4130 by @miqlas
|
|
|
|
|
|
|
|
fileno could be a macro which can't take a void pointer.
|
|
|
|
Useful in debug builds to see a functions callers.
|
|
Differential Revision: https://developer.blender.org/D3363
|
|
|
|
|
|
|
|
|
|
We're already buffing output, so use write directly.
|
|
|
|
|
|
Causes issues when including in some files.
|
|
Optionally strips leading path from filenames when logging.
|
|
|
|
|
|
|
|
|
|
- See `--log` help message for usage.
- Supports enabling categories.
- Color severity.
- Optionally logs to a file.
- Currently use to replace printf calls in wm module.
See D3120 for details.
|