minor helper during the conversion
parent
a1a718967d
commit
30d363c5f2
15
SConstruct
15
SConstruct
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue