| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 253074
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The regex for -isystem matching is broken. -[D,I,Usystem] matches "-D", "-,",
"-I", "-U", "-s" "-y", etc. Besides that, "-isystem /foo" gets interpreted as
"-i" with a non-empty value "system" and thus the next "/foo" argument is not
read. This patch corrects the regex.
This fixes PR13237 <https://llvm.org/bugs/show_bug.cgi?id=13237>.
A patch by Peter Wu!
Differential Revision: http://reviews.llvm.org/D13800
llvm-svn: 251312
|
|
|
|
|
|
|
|
|
| |
Update ccc-analyzer to forward both -Xclang and its following argument to the
the compiler driver. Previously we were dropping -Xclang and forwarding the
argument on its own if it matched other forwarding criteria. This caused the
argument to be interpreted as a driver rather than a frontend option.
llvm-svn: 251218
|
|
|
|
| |
llvm-svn: 246978
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When interposing on a compiler doing cross-compilation, scan-build
does not infer the target triple needed to pass to clang for
doing static analysis. The --analyzer-target option allows one
to manually specify the target triple used during static analysis
(and only static analysis) for such cases.
Patch by Honggyu Kim!
Reviewed in http://reviews.llvm.org/D10356.
llvm-svn: 244400
|
|
|
|
|
|
| |
'fork'+'exec' combination made scan-build and ccc-analyzer hang under Windows. The patch replaces 'fork'+'exec' with more reliable 'system' (ccc-analyzer) and piped 'open' (scan-build). See http://reviews.llvm.org/D8774 and http://reviews.llvm.org/D9357 for more details.
llvm-svn: 241201
|
|
|
|
| |
llvm-svn: 239971
|
|
|
|
|
|
| |
An old code caused problems under Windows - additional temporary file was created for clang preprocessor output while the right output file remained empty.
llvm-svn: 239970
|
|
|
|
|
|
|
|
| |
This reverts commit r236423 and its followup r236533, as indiscriminate
quoting makes for too much quoting (and clang doesn't like both '"-c"'
and -D"FOO=bar").
llvm-svn: 236562
|
|
|
|
|
|
| |
Wrap an argument with quotes only if it has spaces.
llvm-svn: 236533
|
|
|
|
|
|
| |
This fixes errors that occur if a path to the default compiler has spaces or if an argument with spaces is given to compiler (e.g. via -I). (http://reviews.llvm.org/D9357)
llvm-svn: 236423
|
|
|
|
|
|
| |
Do not fail when "" is one of the compilation arguments.
llvm-svn: 233465
|
|
|
|
|
|
| |
Patch by Thomas Hauth!
llvm-svn: 227946
|
|
|
|
| |
llvm-svn: 225039
|
|
|
|
|
|
| |
to automatically infer the SDK location.
llvm-svn: 225038
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the --use-cc option.
Instead, we will search in the PATH
For example:
scan-build --use-cc=arm-none-eabi-gcc -o out make -e
Initially reported as a Debian Bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748777
llvm-svn: 215229
|
|
|
|
| |
llvm-svn: 209524
|
|
|
|
|
|
| |
PR19704
llvm-svn: 208595
|
|
|
|
|
|
| |
Third time's the charm. Patch by Brennan Shacklett!
llvm-svn: 204362
|
|
|
|
|
|
|
|
|
| |
Because neither ' ' nor '-' is alphanumeric, \b won't match between them!
Since in this case we know our output is coming from a -### invocation,
we should always have spaces on both sides of the flag we're trying to match,
"-cc1".
llvm-svn: 204356
|
|
|
|
|
|
| |
PR19191
llvm-svn: 204253
|
|
|
|
| |
llvm-svn: 202182
|
|
|
|
|
|
|
|
|
| |
variable is defined but empty.
Extend the test (like it is done in scan-build) to check also if the variable
is empty or not.
llvm-svn: 201586
|
|
|
|
| |
llvm-svn: 201584
|
|
|
|
|
|
| |
More universal way of removing trailing whitespace characters then 'chomp' does. Chomp "removes any trailing string that corresponds to the current value of $/" (quote from perldoc). In my case an input ended with '\r\r\n', chomp left '\r' at the end of input and the script ended up with an error "Use of uninitialized value in concatenation (.) or string"
llvm-svn: 199892
|
|
|
|
|
|
| |
PR18339
llvm-svn: 198711
|
|
|
|
|
|
|
|
|
| |
-analyzer-config options are now passed from scan-build through to
ccc-analyzer and then to clang.
Patch by Daniel Connelly!
llvm-svn: 197246
|
|
|
|
| |
llvm-svn: 196510
|
|
|
|
|
|
|
|
|
|
| |
Some of the shared compiler/linker flags start with -m, so they've been
getting passed to the compiler only since r180073. Now, the -m* wildcard
is processed after the shared flags and the ignored flags.
Found by Laszlo Nagy!
llvm-svn: 193184
|
|
|
|
| |
llvm-svn: 187989
|
|
|
|
|
|
| |
Thanks, Dmitry!
llvm-svn: 186167
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These flags control language options and user-visible macros, so it's
important to preserve them when analyzing. Rather than try to keep up
with all the -f flags, we'll pass them all through and then ban the ones
we don't want (like -fsyntax-only).
-Wwrite-strings is really an f-flag in disguise: it implies -fconst-strings.
Patch by Keaton Mowry, modified by me.
llvm-svn: 186138
|
|
|
|
|
|
|
|
|
|
| |
This is important for preprocessing steps, which may output to stdout.
Also, change ENV accesses using barewords to use string keys instead.
PR16414
llvm-svn: 185555
|
|
|
|
| |
llvm-svn: 180073
|
|
|
|
| |
llvm-svn: 175115
|
|
|
|
| |
llvm-svn: 172094
|
|
|
|
|
|
|
|
| |
Also, minor whitespace/indentation fixes.
Patch by Peeter Joot!
llvm-svn: 168805
|
|
|
|
|
|
| |
Part of PR14443.
llvm-svn: 168804
|
|
|
|
|
|
| |
Otherwise clang can't analyze code that relies on features provided by libc++.
llvm-svn: 164262
|
|
|
|
|
|
|
|
|
| |
This is how Xcode lets individual files be marked as non-ARC when the rest
of the project is ARC-enabled, so this is necessary for scan-build xcodebuild.
Patch by Paul Eipper!
llvm-svn: 162497
|
|
|
|
| |
llvm-svn: 161443
|
|
|
|
|
|
| |
This would be useful to investigate performance issues.
llvm-svn: 159038
|
|
|
|
|
|
|
| |
the compiler predefines buffer. These are essentially part of
the Objective-C language.
llvm-svn: 158690
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Load custom plugins when running scan-build. This is useful when
additional static analysis Checkers must be provided via clang's plugin
interface.
Loading additional plugins can now be done via the scan-build call:
scan-build -load-plugin <plugin.so>
A patch by Thomas Hauth.
llvm-svn: 157452
|
|
|
|
|
|
| |
A patch by Sean McBride.
llvm-svn: 154751
|
|
|
|
| |
llvm-svn: 152139
|
|
|
|
| |
llvm-svn: 149094
|
|
|
|
|
|
| |
compiler.
llvm-svn: 147644
|
|
|
|
|
|
|
| |
Otherwise, the analyzer will try to analyze the serialized diagnostic
file as if it were a source file.
llvm-svn: 147643
|
|
|
|
| |
llvm-svn: 144778
|