@@ -125,7 +125,7 @@ def parse_clang_ast_json(node, loc, search):
125
125
# Strip leading underscore from globals, so the name matches the LLVM one
126
126
if global_underscores :
127
127
storage = node .get ("storageClass" , None )
128
- if storage != "static" and mangled [0 ] == '_' :
128
+ if storage != "static" and mangled [0 ] == "_" :
129
129
mangled = mangled [1 :]
130
130
ret [int (line ) - 1 ].append ((spell , mangled , search ))
131
131
@@ -254,7 +254,9 @@ def config():
254
254
return args , parser
255
255
256
256
257
- def get_function_body (builder , args , filename , clang_args , extra_commands , prefixes , raw_tool_output ):
257
+ def get_function_body (
258
+ builder , args , filename , clang_args , extra_commands , prefixes , raw_tool_output
259
+ ):
258
260
# TODO Clean up duplication of asm/common build_function_body_dictionary
259
261
for extra_command in extra_commands :
260
262
extra_args = shlex .split (extra_command )
@@ -389,12 +391,20 @@ def main():
389
391
# Invoke external tool and extract function bodies.
390
392
raw_tool_output = common .invoke_tool (ti .args .clang , clang_args , ti .path )
391
393
get_function_body (
392
- builder , ti .args , ti .path , clang_args , extra_commands , prefixes , raw_tool_output
394
+ builder ,
395
+ ti .args ,
396
+ ti .path ,
397
+ clang_args ,
398
+ extra_commands ,
399
+ prefixes ,
400
+ raw_tool_output
393
401
)
394
402
395
403
# Invoke clang -Xclang -ast-dump=json to get mapping from start lines to
396
404
# mangled names. Forward all clang args for now.
397
- for k , v in get_line2func_list (ti .args , clang_args , common .get_global_underscores (raw_tool_output )).items ():
405
+ for k , v in get_line2func_list (
406
+ ti .args , clang_args , common .get_global_underscores (raw_tool_output )
407
+ ).items ():
398
408
line2func_list [k ].extend (v )
399
409
400
410
func_dict = builder .finish_and_get_func_dict ()
0 commit comments