Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/toml++/impl/date_time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "forward_declarations.hpp"
#include "print_to_stream.hpp"
#include "std_optional.hpp"
#include "header_start.hpp"

TOML_NAMESPACE_START
Expand Down
8 changes: 5 additions & 3 deletions tools/generate_single_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def main():
# blank lines between consecutive TOML_XXXXX_WARNINGS statements
toml_h = re.sub('(TOML_[A-Z_]+?_WARNINGS;)\n[ \t\n]*\n(TOML_[A-Z_]+?_WARNINGS;)', r'\1\n\2', toml_h)
# blank lines between consecutive #includes
toml_h = re.sub('[#]\s*include\s*<(.+?)>\n[ \t\n]*\n[#]\s*include\s*<(.+?)>', r'#include <\1>\n#include <\2>', toml_h)
toml_h = re.sub(r'[#]\s*include\s*<(.+?)>\n[ \t\n]*\n[#]\s*include\s*<(.+?)>', r'#include <\1>\n#include <\2>', toml_h)
# blank lines following opening brackets or a comma
toml_h = re.sub(r'([^@][({,])\n\n', r'\1\n', toml_h)
# blank lines preceeding closing brackets
Expand All @@ -129,7 +129,7 @@ def main():

# change TOML_LIB_SINGLE_HEADER to 1
toml_h = re.sub(
'#\s*define\s+TOML_LIB_SINGLE_HEADER\s+[0-9]+',
r'#\s*define\s+TOML_LIB_SINGLE_HEADER\s+[0-9]+',
'#define TOML_LIB_SINGLE_HEADER 1',
toml_h, 0, re.I
)
Expand Down Expand Up @@ -242,7 +242,9 @@ def main():
r'TOML_UNDEF_MACROS',
r'TOMLPLUSPLUS_H',
r'TOMLPLUSPLUS_HPP',
r'TOML_SHARED_LIB'
r'TOML_SHARED_LIB',
r'TOML_DISABLE_CONDITIONAL_NOEXCEPT_LAMBDA',
r'TOML_DISABLE_NOEXCEPT_NOEXCEPT'
)
set_defines = []
for define, currently_set in defines.items():
Expand Down
Loading