aboutsummaryrefslogtreecommitdiff
path: root/utils/scan-build
AgeCommit message (Collapse)Author
2009-12-01Tuck away scan-build related files into tools/scan-buildKovarththanan Rajaratnam
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90215 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-23Remove '-checker-simple' reference from scan-build. Patch by Kovarththanan ↵Ted Kremenek
Rajaratnam! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89673 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-13Use 'eq' operator, and enable regular experimental checks when ↵Ted Kremenek
--experimental-checks is passed to scan-build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88673 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-13Add clang-cc option "--analyzer-experimental-internal-checks". ThisTed Kremenek
option enables new "internal" checks that will eventually be turned on by default but still require broader testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88671 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-25Turn on 'RegionStore' as the default store manager both for 'clang ↵Ted Kremenek
--analyze' and 'scan-build'. Leave 'BasicStore' as the default store manager in 'clang-cc'. While there are still known warts with RegionStore, it's ready to be tested by general users. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82752 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-04Renable "html" indexing by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78077 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03Have scan-build clue off of 'BUGMETAEND' to know when to stop processing an ↵Ted Kremenek
HTML file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78022 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-30Add scan-build option '-no-failure-reports' to supress the creation of a ↵Ted Kremenek
'failures' subdirectory that includes crash reports, preprocessed files, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77644 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-29scan-build: Don't try to index plist-html output directoriesDaniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77465 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-27Add scan-build support for 'plist-html', a hybrid mode that supports theTed Kremenek
creation of both HTML and plist files. Plist files are currently not generated using the same layout algorithm as just specifying '-plist', so this is mainly intended to help support automated runs of the analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77263 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-24Enable the '-warn-security-syntactic' checker option by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76933 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17Remove bogus check.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76259 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17Add error message when clang-cc cannot be found.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76256 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15Add hack to scan-build to fix PR 4215Ted Kremenek
(http://llvm.org/bugs/show_bug.cgi?id=4215): When xcodebuild is invoked with -sdk iphonesimulator3.0, use gcc-4.2 instead of the system default gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71891 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-12Make scan-build process of --use-cc and --html-title more robust.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71567 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-09Add total hack to get scan-build working again. ccc-analyzer callsTed Kremenek
'clang -###' to get the appropriate arguments to pass to clang-cc. This isn't a permanent solution. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71364 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-29scan-build: Also look for clang-cc in ../libexecTed Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67972 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24More path updates with clang-cc...Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67609 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24Update scan-build/ccc-analyzer to use 'clang-cc' instead of 'clang'.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67608 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-11'-o' option now supports relative paths.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66680 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-09scan-build: Also look for clang in the same directory as scan-build.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66491 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-27Correctly check for ccc-analyzer in the same directory as scan-build.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65618 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and ↵Ted Kremenek
then the directory where scan-build lives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65483 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25Do not automatically run the 'missing -dealloc' check until we have adequate ↵Ted Kremenek
time to make it much smarter (too much noise). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65474 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24scan-build: Prune off any trailing '/' characters in the output directory path.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-23Find 'clang' in 'bin' subdirectory instead of 'cbin'.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65343 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-21Update scan-build help diagnostic.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65223 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20Make 'RangeConstraintManager' the default ConstraintManager.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65173 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20Fix potential use of uninitialized variable.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65109 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-19scan-build now searches for the clang binary in the subdirectory 'cbin'.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65014 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc-analyzer:Ted Kremenek
- now logs which source files had "ignored attributes". - disable-free is enabled scan-build: - now displays a table of ignored attributes under "Analyzer Failures". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64853 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17Static Analyzer driver/options (partial) cleanup:Ted Kremenek
- Move all analyzer options logic to AnalysisConsumer.cpp. - Unified specification of stores/constraints/output to be: -analyzer-output=... -analyzer-store=... -analyzer-constraints=... instead of -analyzer-range-constraints, -analyzer-store-basic, etc. - Updated drivers (ccc-analyzer, scan-builds, new ccc) to obey this new interface - Updated test cases to conform to new driver options git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-27PathDiagnostics:Ted Kremenek
- Add the distinction between the 'bug type' and the 'bug description' HTMLDiagnostics: - Output the bug type field as HTML comments scan-build: - Use the bug type field instead of the bug description for the HTML table. - Radar filing now automatically picks up the bug description in the title (addresses <rdar://problem/6265970>) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63084 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-03Properly "include" abs_path.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60502 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-03Use abs_path to resolve symbolic links and '..' in report table.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60493 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-03Don't have special treatment from pruning the common suffices of files in ↵Ted Kremenek
/Developer, /usr, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60491 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-19scan-build now recognizes when the user is directly invoking gcc for:Ted Kremenek
(a) different versions of gcc (e.g., a suffix '-4.2') (b) different paths for gcc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59578 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-04Fix use of uninitialized variable.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58663 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-04Allow user toggling between plist and html output with scan-build/ccc-analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58657 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-03Simplify the functions HtmlEsape and ShellEscape. We now properly print out ↵Ted Kremenek
the following command line in the HTML output: scan-build gcc -x c /dev/null -c -Dfoo='"string abc"' Fixes <rdar://problem/6338651> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58600 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-02Add defined in if().Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58562 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-31On Mac OS X, use TMPDIR as the default location to place analysis results. ↵Ted Kremenek
This is a more secure location for such files, and addresses <rdar://problem/6334220>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58491 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-28Minor UI enhancement:Ted Kremenek
(1) when all of the bug category boxes are checked, automatically check "All Bugs" (2) when any of the bug category boxes are unchecked, automatically uncheck "All Bugs" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58346 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-28Patch by Nikita Zhuk:Ted Kremenek
The attached patch adds a checkbox to the scan-build summary report, which toggles all other checkboxes' states. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58344 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-27Add store option to scan-build and ccc-analyzer.Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58248 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-24Fix scan-build's processing of clang's analysis arguments. Patch by Nikita ↵Ted Kremenek
Zhuk! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58093 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-13Use 'realpath' to resolve the absolute path to clang and ccc-analyzer.Ted Kremenek
Add "-analyze-headers" option to scan-build that passes the option -analyzer-opt-analyze-headers to clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57467 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-10Add missing newline.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57333 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-28Add "Path Length" back to the table of bug reports.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56765 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-25Add link to report analyzer failures (parse errors, asserts, etc).Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56606 91177308-0d34-0410-b5e6-96231b3b80d8