Commit Graph

3 Commits

Author SHA1 Message Date
Kevin Granade 6d1841ac67 Precompiled Catch2 header (#42453)
* Hoist catch.hpp include to the top of files

* Precompile the catch header in tests
2020-07-29 01:28:26 +03:00
John Bytheway e189957ff2 Run IWYU 20200408 (#39364)
* 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>
2020-04-10 12:16:19 +03:00
Eric Pierce d017afbbb5 Overmap and mapgen: testing, cleanup, and documentation (#39107)
* Add unit tests for is_ot_match

Includes sections for exact, type, prefix, and contains match types.

* Link other docs and format x,y,z examples

* Add connects_to test case and comments

As the comment above connects_to has indicated for years, this function
is hideous. I must have stared at it for 10 minutes before I understood
what it was doing. Now it remains hideous, but with marginally better
documentation and a fairly comprehensive test case.

* Reformat MAPGEN.md

This is a first pass at reformatting, including:

- Using `preformatted` strings where appropriate
- JSON syntax for code blocks
- Formatting value/description lists as tables
- Wrapping most text to 120 columns
- Simplifying to make vim Markdown syntax highligher happier

* Add table and JSON formatting

* Reformat MAPGEN.md with tables, heading levels

* Format more tables and clean things up

* Format tables, relabel heading, remove quotes

* Format and tidy up tables

* Rewrite headings and eliminate remaining numbers

* Add table of contents

* Add table of top-level JSON fields with links

* Document field intensity

* Align table columns

* Remove JSON table

All these are already referenced in the main TOC; they are redundant
(and possibly misleading) being in this section, and need a more careful
explanation.
2020-04-03 01:17:29 +03:00