minor helper during the conversion

fb-mini-snake
Claudius Holeksa 2022-12-18 16:16:11 +01:00
parent a1a718967d
commit 30d363c5f2
1 changed files with 13 additions and 2 deletions

View File

@ -78,10 +78,21 @@ def format_iter(env,files):
for f in files:
env.format_actions.append(env.AlwaysBuild(env.ClangFormat(target=f+"-clang-format",source=f)))
pass
env.tidy_actions = []
def tidy_iter(env,files):
string_of_files = "";
for f in files:
if(f != "/home/keldu/workspace/forstio/source/forstio/async.tmpl.h" or f != "/home/keldu/workspace/forstio/forstio/source/forstio/io_peer.tmpl.h" ):
string_of_files = string_of_files + " " + f;
# env.tidy_actions.append(env.AlwaysBuild(env.ClangTidyFix(target=f+"-clang-tidy-fix",source=f)));
print(string_of_files);
pass
format_iter(env,env.sources + env.driver_sources + env.headers + env.driver_headers)
format_iter(env,env.sources + env.driver_sources + env.headers + env.driver_headers);
tidy_iter(env,env.sources + env.driver_sources + env.headers + env.driver_headers);
env.Alias('format', env.format_actions)
env.Alias('format', env.format_actions);
env.Alias('tidy', env.tidy_actions);
env.Alias('cdb', env.cdb);
env.Alias('all', ['format', 'library', 'test'])