Skip to content

Commit 81e7c8c

Browse files
committed
Don't include IWYU pragmas in single-header toml.hpp
1 parent 66bc184 commit 81e7c8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/generate_single_header.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def main():
122122
toml_h = re.sub(r'([^@][({,])\n\n', r'\1\n', toml_h)
123123
# blank lines preceeding closing brackets
124124
toml_h = re.sub(r'\n\n([ \t]*[})])', r'\n\1', toml_h)
125+
# IWYU pragmas
126+
toml_h = re.sub(r'\n// IWYU pragma: .+\n', '\n', toml_h)
125127
# ensure only one trailing newline
126128
toml_h = toml_h.strip() + '\n'
127129

0 commit comments

Comments
 (0)