• Home
  • Raw
  • Download

Lines Matching +full:capture +full:- +full:exit

1 # -*- coding: utf-8 -*-
6 """ This module implements the 'scan-build' command API.
10 -- Intercept: capture the compilation command during the build,
11 -- Analyze: run the analyzer against the captured commands,
12 -- Report: create a cover report from the analyzer outputs. """
25 from libscanbuild.intercept import capture
32 COMPILER_WRAPPER_CC = 'analyze-cc'
33 COMPILER_WRAPPER_CXX = 'analyze-c++'
38 """ Entry point for 'analyze-build' and 'scan-build'. """
55 # run build command and capture compiler executions
56 exit_code = capture(args, bin_dir)
65 # set exit status as it was requested
75 logging.debug('build finished with exit code: %d', exit_code)
78 # set exit status as it was requested
88 To run `scan-build` against the configure step might be neccessary,
90 check the compiler and capture the location for the build process. """
148 """ Entry point for `analyze-cc` and `analyze-c++` compiler wrappers. """
159 # exit when it fails, ...
178 'command': [sys.argv[0], '-c'] + compilation.flags
209 result.append('-analyzer-store={0}'.format(args.store_model))
211 result.append('-analyzer-constraints={0}'.format(
214 result.append('-analyzer-stats')
216 result.append('-analyzer-opt-analyze-headers')
218 result.append('-analyzer-checker=debug.Stats')
220 result.extend(['-analyzer-max-loop', str(args.maxloop)])
222 result.append('-analyzer-output={0}'.format(args.output_format))
226 result.append('-analyzer-display-progress')
228 result.extend(prefix_with('-load', args.plugins))
231 result.extend(['-analyzer-checker', checkers])
234 result.extend(['-analyzer-disable-checker', checkers])
236 result.append('-analyzer-viz-egraph-ubigraph')
238 return prefix_with('-Xclang', result)
274 parser.exit()
277 parser.exit()
290 '--verbose', '-v',
296 '--override-compiler',
301 '--intercept-first',
306 With '--override-compiler' it use compiler wrapper, but does
309 '--cdb',
315 '--output', '-o',
322 '--status-bugs',
324 help="""By default, the exit status of '%(prog)s' is the same as the
325 executed build command. Specifying this option causes the exit
329 '--html-title',
334 '--analyze-headers',
341 '--plist', '-plist',
348 '--plist-html', '-plist-html',
350 const='plist-html',
355 # TODO: implement '-view '
359 '--keep-empty',
364 '--no-failure-reports', '-no-failure-reports',
370 '--stats', '-stats',
375 '--internal-stats',
379 '--maxloop', '-maxloop',
386 '--store', '-store',
391 'region' specifies a field- sensitive store model.
394 checker-0.221 and earlier.""")
396 '--constraints', '-constraints',
402 checker-0.160 and earlier.""")
404 '--use-analyzer',
413 '--use-cc',
429 '--use-c++',
433 help="""This is the same as "--use-cc" but for C++ code.""")
435 '--analyzer-config', '-analyzer-config',
438 -analyzer-config flag. Several options are separated with
442 stable-report-filename=true or false (default)
445 report-<filename>-<function/method name>-<id>.html
446 instead of report-XXXXXX.html""")
448 '--exclude',
459 '--force-analyze-debug-code',
467 '--load-plugin', '-load-plugin',
473 '--enable-checker', '-enable-checker',
478 '--disable-checker', '-disable-checker',
483 '--help-checkers',
490 '--help-checkers-verbose',