mirror of
https://github.com/boostorg/date_time.git
synced 2026-01-19 16:12:19 +00:00
* Added a test generator for whether all public headers are self-contained. The generator creates a compile test for every public header, unless BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS environment variable is set to 1. * Only enable self-contained header tests on a few jobs. There is no point in performing self-contained header tests on every compiler configuration, so running them only on some saves CI time. * Make public headers self-contained. This commit: - Adds missing includes. - Adjusts gregorian namespace qualification in a few places to use use equivalent symbols from date_time and not have to include gregorian headers. - Converts tabs to spaces and trims trailing spaces. This makes the self-contained header tests pass on Linux. * Move special_value_from_string definition to parsers.hpp. This resolves different attributes applied to the function definition in parsers.hpp and greg_month.hpp. The function is now inline and defined in parsers.hpp. Also, the commit converts tabs to spaces and trims trailing spaces. Fixes https://github.com/boostorg/date_time/issues/143. * Convert tabs to spaces and trim trailing spaces.
23 lines
638 B
C++
23 lines
638 B
C++
/*
|
|
* Copyright Andrey Semashev 2020.
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
|
* http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
/*!
|
|
* \file self_contained_header.cpp
|
|
* \author Andrey Semashev
|
|
* \date 04.04.2020
|
|
*
|
|
* \brief This file contains a test boilerplate for checking that every public header is self-contained and does not have any missing #includes.
|
|
*/
|
|
|
|
#define BOOST_DATE_TIME_TEST_INCLUDE_HEADER() <boost/BOOST_DATE_TIME_TEST_HEADER>
|
|
|
|
#include BOOST_DATE_TIME_TEST_INCLUDE_HEADER()
|
|
|
|
int main(int, char*[])
|
|
{
|
|
return 0;
|
|
}
|