• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:format +full:- +full:3

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. """
27 from libscanbuild.clang import get_checkers
32 COMPILER_WRAPPER_CC = 'analyze-cc'
33 COMPILER_WRAPPER_CXX = 'analyze-c++'
38 """ Entry point for 'analyze-build' and 'scan-build'. """
88 To run `scan-build` against the configure step might be neccessary,
104 'clang': args.clang,
136 'ANALYZE_BUILD_CLANG': args.clang if need_analyzer(args.build) else '',
148 """ Entry point for `analyze-cc` and `analyze-c++` compiler wrappers. """
151 logging.basicConfig(format='analyze: %(levelname)s: %(message)s',
170 'clang': os.getenv('ANALYZE_BUILD_CLANG'),
178 'command': [sys.argv[0], '-c'] + compilation.flags
202 eg.: prefix_with(0, [1,2,3]) creates [0, 1, 0, 2, 0, 3] """
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)
259 print(' {0} {1}'.format(prefix, name))
262 print(' {0} {1: <30} {2}'.format(prefix, name, description))
273 print_checkers(get_checkers(args.clang, args.plugins))
276 print_active_checkers(get_checkers(args.clang, args.plugins))
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',
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',
406 dest='clang',
407 default='clang',
408 help="""'%(prog)s' uses the 'clang' executable relative to itself for
410 option by using the 'clang' packaged with Xcode (on OS X) or
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',
455 Could be usefull when project contains 3rd party libraries.
459 '--force-analyze-debug-code',
467 '--load-plugin', '-load-plugin',
471 help="""Loading external checkers using the clang plugin interface.""")
473 '--enable-checker', '-enable-checker',
478 '--disable-checker', '-disable-checker',
483 '--help-checkers',
490 '--help-checkers-verbose',