Changeset View
Changeset View
Standalone View
Standalone View
cfe/trunk/tools/scan-build-py/libscanbuild/analyze.py
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | def need_analyzer(args): | ||||
When static analyzer run against project configure step, it should be | When static analyzer run against project configure step, it should be | ||||
silent and no need to run the analyzer or generate report. | silent and no need to run the analyzer or generate report. | ||||
To run `scan-build` against the configure step might be necessary, | To run `scan-build` against the configure step might be necessary, | ||||
when compiler wrappers are used. That's the moment when build setup | when compiler wrappers are used. That's the moment when build setup | ||||
check the compiler and capture the location for the build process. """ | check the compiler and capture the location for the build process. """ | ||||
return len(args) and not re.search('configure|autogen', args[0]) | return len(args) and not re.search(r'configure|autogen', args[0]) | ||||
def prefix_with(constant, pieces): | def prefix_with(constant, pieces): | ||||
""" From a sequence create another sequence where every second element | """ From a sequence create another sequence where every second element | ||||
is from the original sequence and the odd elements are the prefix. | is from the original sequence and the odd elements are the prefix. | ||||
eg.: prefix_with(0, [1,2,3]) creates [0, 1, 0, 2, 0, 3] """ | eg.: prefix_with(0, [1,2,3]) creates [0, 1, 0, 2, 0, 3] """ | ||||
▲ Show 20 Lines • Show All 672 Lines • Show Last 20 Lines |