aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2009-01-29ABITest: Fix test value generation for unions.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63286 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29Use xcc (instead of clang directly).Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63279 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-28ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar
shared with clang eventually. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63220 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-28ABITest: Support --test-layout option for generatingDaniel Dunbar
size/alignment/offsetof based tests of types instead of calling convention tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63167 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-27Use string comparison rather than '=='.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63095 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
2009-01-27Have 'Analyzer Failures' files be named to reflect the category of problem.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63080 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-26ABITestGen: Add generation of vector types.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63024 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-24Add simple make based harness for running ABI tests.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62916 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23Added clang option '--analyzer-display-progress' to indicate that the ↵Ted Kremenek
analyzer should output 'ANALYZE:' messages to display its progress on a source file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62875 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-21Update CmpDriver to report missing commands.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62728 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-21Static Analyzer: When generating plists for errors reports, generate one ↵Ted Kremenek
plist file per translation unit that contains all of the diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62647 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20Add -analyze action to run static analyzer, instead of inferring fromDaniel Dunbar
individual checker options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62634 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20ccc: Darwin/x86: Add direct cpp support.Daniel Dunbar
- Add Darwin_X86_CC1Tool which is shared by Darwin/x86/Compile and Darwin/x86/Preprocess tools. - Minor bug fixes (CmpDriver exit code, -x cpp-output handling, some linker argument translation). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62551 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-17Return success indicator from CmpDriver.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62388 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-15Add utils/ABITest, my ABI test generation tool.Daniel Dunbar
- Mostly written as an entertaining exercise in enumerating large or (countably, naturally) infinite sets. But hey, its useful too! - Idea is to number all C-types so that the N-th type can quickly be computed, with a good deal of flexibility about what types to include, and taking some care so that the (N+1)-th type is interestingly different from the N-th type. For example, using the default generator, the 1,000,000-th function type is: -- typedef _Complex int T0; typedef char T1 __attribute__ ((vector_size (4))); typedef int T2 __attribute__ ((vector_size (4))); T2 fn1000000(T0 arg0, signed long long arg1, T1 arg2, T0 arg3); -- and the 1,000,001-th type is: -- typedef _Complex char T0; typedef _Complex char T2; typedef struct T1 { T2 field0; T2 field1; T2 field2; } T1; typedef struct T3 { } T3; unsigned short fn1000001(T0 arg0, T1 arg1, T3 arg2); -- Computing the 10^1600-th type takes a little less than 1s. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62253 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-14CmpDriver: Allow over-ride of drivers to compare through env variablesDaniel Dunbar
(DRIVER_[AB]). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62242 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-13Add simple tool for comparing drivers (hardcoded to gcc and xcc) whichDaniel Dunbar
support -###. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62156 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-09Add utils/SummarizeErrors.Daniel Dunbar
- Little script for scanning a compile log and summarizing warnings, errors, assertions, and crashes. - Is very slow, and stack trace regexs probably only work on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62013 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-07ccc (old): Pass -arch through to assembler if given.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61833 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-05Pass '-undefined- to the linkerAnders Carlsson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61663 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-19Pass -fblocks to clangAnders Carlsson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61258 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-12-02llvm-ld doesnt support '-g', so aovid passing that opt to itNuno Lopes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60428 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-18Input files should be before link options.Daniel Dunbar
- PR3094. - No test case, ccc is not really a supported product (llvmc2 already got this right). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59535 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-29Update FindSpecRefs to recognize named section references.Daniel Dunbar
- Unfortunately, I don't have an easy way to map from named sections to numbers nicely so they don't get page numbers or integrate in the list well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58368 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-22Add support for assembler-with-cpp (preprocessed .S files), patch byChris Lattner
Roman Divacky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57988 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-19Add "argument key" processing similar to ccc.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57780 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-19ccc: Pass '-g' through to clang. Handle -weak_framework.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57779 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-16ccc: support -XlinkerDaniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57613 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-15ccc: support -fsyntax-only, add some more darwin options, supportDaniel Dunbar
logging of actions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57603 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-10-05Add script for checking builtin macros verse another compiler ($CC orDaniel Dunbar
gcc). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57133 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-03Bug fix, ccc was passing -std twice.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56991 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-02Fix ccc handling of -mmacosx-version-min.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56956 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-01ccc: Use CCC_NATIVE=1 by default.Daniel Dunbar
- So far this works fairly well for me for building applications using clang as a gcc substitute. If you are using ccc for a different purpose and this is a problem, speak up! Note you can also use CCC_NATIVE=0 to disable. - Also, turn CCC_ECHO off as default. - Also, pass through -Wl, to linker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56904 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-30Support -mmacosx-version-minTed Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56892 91177308-0d34-0410-b5e6-96231b3b80d8