• Home
  • Raw
  • Download

Lines Matching +full:require +full:- +full:directory

1 # -*- coding: utf-8 -*-
26 '-c': 0, # compile option will be overwritten
27 '-fsyntax-only': 0, # static analyzer option will be overwritten
28 '-o': 1, # will set up own output file
30 '-g': 0,
31 '-save-temps': 0,
32 '-install_name': 1,
33 '-exported_symbols_list': 1,
34 '-current_version': 1,
35 '-compatibility_version': 1,
36 '-init': 1,
37 '-e': 1,
38 '-seg1addr': 1,
39 '-bundle_loader': 1,
40 '-multiply_defined': 1,
41 '-sectorder': 3,
42 '--param': 1,
43 '--serialize-diagnostics': 1
47 def require(required): function
68 @require(['command', # entry from compilation database
69 'directory', # entry from compilation database
86 that the needed parameters received. (This is done by the 'require'
102 @require(['clang', 'directory', 'flags', 'file', 'output_dir', 'language',
114 mapping = {'objective-c++': '.mii', 'objective-c': '.mi', 'c++': '.ii'}
118 """ Creates failures directory if not exits yet. """
130 cwd = opts['directory']
131 cmd = get_arguments([opts['clang'], '-fsyntax-only', '-E'] +
132 opts['flags'] + [opts['file'], '-o', name], cwd)
154 @require(['clang', 'directory', 'flags', 'direct_args', 'file', 'output_dir',
163 if opts['output_format'] in {'plist', 'plist-html'}:
164 (handle, name) = tempfile.mkstemp(prefix='report-',
171 cwd = opts['directory']
172 cmd = get_arguments([opts['clang'], '--analyze'] + opts['direct_args'] +
173 opts['flags'] + [opts['file'], '-o', output()],
197 @require(['flags', 'force_debug'])
203 opts.update({'flags': opts['flags'] + ['-UNDEBUG']})
208 @require(['file', 'directory'])
210 """ Set source file path to relative to the working directory.
214 opts.update({'file': os.path.relpath(opts['file'], opts['directory'])})
219 @require(['language', 'compiler', 'file', 'flags'])
225 'c', 'c++', 'objective-c', 'objective-c++', 'c-cpp-output',
226 'c++-cpp-output', 'objective-c-cpp-output'
245 'flags': ['-x', language] + opts['flags']})
249 @require(['arch_list', 'flags'])
257 # filter out disabled architectures and -arch switches
262 # the same, those should not change the pre-processing step.
267 opts.update({'flags': ['-arch', current] + opts['flags']})
279 language (-x) and architecture (-arch) flags for future processing. """
292 if arg == '-arch':
295 elif arg == '-x':
298 elif re.match(r'^[^-].+', arg) and classify_source(arg):
307 elif re.match(r'^-W.+', arg) and not re.match(r'^-Wno-.+', arg):