* Change _ctype.h and __locale to cctype and clocale
* Change _wctype.h to cwctype in game.cpp
* Change __functional_base to functional
* Remove libcxx internal headers
* Remove UNIX system headers
* Fix clang-tidy error with -nostdinc++
* fix#44068 (thick smoke causes character sprite to disappear completely)
fix related issue with character disappearance in the low light
document transparency and related caches
* introduce `VISIBILITY_FULL=1.0f` constant as the starting value for visibility calculation
remove `LIGHT_TRANSPARENCY_CLEAR` usage from tests
fix the crouching case that breaks the tests
* add vision test case for the avatar fully surrounded by walls (or smoke)
Use the new clang-tidy check to convert a bunch of declarations to
static.
In a few cases, there were 'secret' dependencies being exposed without
headers. Convert those to work via headers instead.
* Helper script to run IWYU
* Run IWYU
* Update deprecated headers
* Run IWYU again
* Re-suppress cxxabi.h
This pragma got accidentally removed because it was deemed to be a
comment attached to a #include.
* Remove extra SDL header includes
* Fix ime.cpp headers
Some tweaks to help IWYU not break this file by messing with
platform-specific stuff not relevant on Linux.
* Update game.h
* Move new point.h includes inside #ifdef
* Re-add platform_win.h to mapsharing.cpp
* Apply suggestions from code review
Co-authored-by: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
* Consolidate main_menu::LAST_TERM
* Add some point overloads for functions
Also a suppression for an SDL wrapper function
* Refactor calls to new functions
* Port function implementations
* Initial version of UseNamedPointConstantsCheck
This is intended to convert hand-rolled point constants like
point( 0, 0 ) into point_zero.
* Apply refactoring pass
* Manual fixup of refactored code
Add various manual tweaks to the automatically refactored code where I
think it makes sense.
* Remove some unnecessary initializations
* Add IWYU pragma: keep
* Run IWYU and astyle
* Run IWYU a second time
* Prevent #include <cxxabi.h>
Unclear why IWYU thinks this is needed. It isn't, and it causes
problems on Visual Studio.
* Fix missing declarations
Mark functions with no prior declarations as static, and remove the
unused ones.
* Move debug_is_safe_string definition
Put it inside !WIN32 since it's only used there.
To help tests behave the same on different platforms.
On libstdc++ std::default_random_engine is std::minstd_rand0, so this is
no change there, but may potentially bring other platforms in line.
A first step towards IWYU support. Doing the sorting first because it
makes reviewing any additions or removals of headers much simpler.
The IWYU order is:
- Associated headers
- Misc system headers
- C++ STL headers
- Other project headers
The biggest change is moving system headers before project headers (they
are usually afterwards in Cata at the moment.
The associated header for a cpp file is the header file which declares
the functions defined in that cpp file. Normally that's the one which
shares the same name (up to extension), and if so IWYU figures it out
automatically.
However, in this project there are many corner cases, so we need to use
IWYU pragma: associated to tell it which header (or, in some cases,
which headers) is the associated header. We are unusual in having
multiple associated headers for some files, which might lead to
discovering some interesting IWYU bugs later, but in theory it is
supported.
New lighting model to resolve the issue whereby walls appear bright when
they are lit from the other side.
For each opaque tile (such as a wall) we store four different lighting
values, one for each quadrant from which the lighting may come. Then,
when determining the lightness of such a tile, we consider only those
values for the quadrants where we can also observe an adjacent tile in
that quadrant.
Wherever possible, static objects should be constexpr to avoid static
initialization.
These are all the static tripoints I can find.
I found no static point objects.