mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
Resolve clang-tidy warnings, update single_header_generator.py
This commit is contained in:
@@ -14,14 +14,21 @@ headers = ['type_traits.hpp',
|
||||
|
||||
combined_file = []
|
||||
includes = []
|
||||
in_pp_block = False
|
||||
|
||||
for header in headers:
|
||||
with open(headers_dir + header) as f:
|
||||
for line in f.read().splitlines():
|
||||
if '#if ' in line:
|
||||
in_pp_block = True
|
||||
|
||||
if '#endif' in line:
|
||||
in_pp_block = False
|
||||
|
||||
if '#include "' in line or '#include <fast_float' in line:
|
||||
continue
|
||||
|
||||
if '#include <' in line:
|
||||
if '#include <' in line and not in_pp_block:
|
||||
includes.append(line)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user