Don't include warning headers from catch_xmlwriter.hpp

This prevents Catch from disabling `Wpadded` for Clang inside test files
(files that do not define either `CATCH_CONFIG_MAIN` or
`CATCH_CONFIG_RUNNER`).

catch_suppress_warnings.h and catch_reenable_warnings.h should be
included only once*, so that the stitching script includes them as the
first and last header respectively, since it only includes each header
once. This caused a bug, where the first one was included properly, but
the second one was included prematurely, from catch_xmlwriter.hpp, and
thus was guarded by `CATCH_IMPL`.

* At least until the stitching script is changed to accomodate common
warning disabling header.

Fixes #871
1 file changed
tree: 2cf97f05c5658525b942472be177b6fd078ed87f
  1. .github/
  2. contrib/
  3. docs/
  4. include/
  5. projects/
  6. scripts/
  7. single_include/
  8. .gitattributes
  9. .gitignore
  10. .travis.yml
  11. appveyor.yml
  12. catch-hand-icon.png
  13. catch-icon-tiny.png
  14. catch-logo-small.png
  15. CMakeLists.txt
  16. LICENSE.txt
  17. README.md
README.md

catch logo

Github Releases Build Status Build status

The latest, single header, version can be downloaded directly using this link

What's the Catch?

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

How to use it

This documentation comprises these three parts:

More