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
2 changes: 2 additions & 0 deletions include/toml++/toml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ TOML_PRAGMA_CLANG(diagnostic ignored "-Wreserved-identifier")
#endif
#endif

// IWYU pragma: begin_exports
#include "impl/std_new.hpp"
#include "impl/std_string.hpp"
#include "impl/std_optional.hpp"
Expand All @@ -56,6 +57,7 @@ TOML_PRAGMA_CLANG(diagnostic ignored "-Wreserved-identifier")
#include "impl/toml_formatter.hpp"
#include "impl/json_formatter.hpp"
#include "impl/yaml_formatter.hpp"
// IWYU pragma: end_exports

#if TOML_IMPLEMENTATION

Expand Down
2 changes: 2 additions & 0 deletions tools/generate_single_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def main():
toml_h = re.sub(r'([^@][({,])\n\n', r'\1\n', toml_h)
# blank lines preceeding closing brackets
toml_h = re.sub(r'\n\n([ \t]*[})])', r'\n\1', toml_h)
# IWYU pragmas
toml_h = re.sub(r'\n// IWYU pragma: [^\n]+\n', '\n', toml_h)
# ensure only one trailing newline
toml_h = toml_h.strip() + '\n'

Expand Down