|
|
@ -33,6 +33,8 @@ def gen_instance(*args):
|
|
|
|
return BuckAnalyzer(*args)
|
|
|
|
return BuckAnalyzer(*args)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def string_in_quotes(value):
|
|
|
|
|
|
|
|
return value.strip('\'')
|
|
|
|
# This creates an empty argparser for the module, which provides only
|
|
|
|
# This creates an empty argparser for the module, which provides only
|
|
|
|
# description/usage information and no arguments.
|
|
|
|
# description/usage information and no arguments.
|
|
|
|
def create_argparser(group_name=MODULE_NAME):
|
|
|
|
def create_argparser(group_name=MODULE_NAME):
|
|
|
@ -64,6 +66,12 @@ def create_argparser(group_name=MODULE_NAME):
|
|
|
|
help='Merge the infer-deps.txt files generated by Buck '
|
|
|
|
help='Merge the infer-deps.txt files generated by Buck '
|
|
|
|
'during the analysis (requires --use-flavors to '
|
|
|
|
'during the analysis (requires --use-flavors to '
|
|
|
|
'work)')
|
|
|
|
'work)')
|
|
|
|
|
|
|
|
group.add_argument('--Xbuck', action='append', default=[],
|
|
|
|
|
|
|
|
type=string_in_quotes,
|
|
|
|
|
|
|
|
help='Pass values as command-line arguments to '
|
|
|
|
|
|
|
|
'invocations of `buck build`.'
|
|
|
|
|
|
|
|
'NOTE: value should be wrapped in single quotes')
|
|
|
|
|
|
|
|
|
|
|
|
return parser
|
|
|
|
return parser
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +118,8 @@ class BuckAnalyzer:
|
|
|
|
'infer.clang_compiler={clang}'.format(clang=clang_path),
|
|
|
|
'infer.clang_compiler={clang}'.format(clang=clang_path),
|
|
|
|
'--config',
|
|
|
|
'--config',
|
|
|
|
'infer.clang_plugin={plugin}'.format(plugin=plugin_path),
|
|
|
|
'infer.clang_plugin={plugin}'.format(plugin=plugin_path),
|
|
|
|
]
|
|
|
|
] + self.args.Xbuck
|
|
|
|
|
|
|
|
|
|
|
|
if self.args.xcode_developer_dir is not None:
|
|
|
|
if self.args.xcode_developer_dir is not None:
|
|
|
|
args.append('--config')
|
|
|
|
args.append('--config')
|
|
|
|
args.append('apple.xcode_developer_dir={devdir}'.format(
|
|
|
|
args.append('apple.xcode_developer_dir={devdir}'.format(
|
|
|
|