Daniel Dunbar
a957d9996e
MultiTestRunner: Cleanup test execution & output.
...
- Stop writing everything to files.
- Make test output more standard.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77074 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 14:46:05 +00:00
Daniel Dunbar
a0e52d6251
MultiTestRunner: Drop external script and DejaGNU compatibility options for now.
...
- We don't use the former, and the latter doesn't actually work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77073 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 13:19:40 +00:00
Daniel Dunbar
11980cc105
MultiTestRunner: Disable valgrind support for now, I don't feel like maintaining
...
it currently.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77072 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 13:13:06 +00:00
Daniel Dunbar
3b2505b683
MultiTestRunner/Win32: Add SYSTEMROOT to environment, replace '&&' in .bat
...
files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77071 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:57:15 +00:00
Daniel Dunbar
8bf0ccd4c7
Make having no RUN line a failure.
...
Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure
if they are actually testing the right thing / anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77070 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:47:38 +00:00
Daniel Dunbar
fb8c119473
Remove this Makefile, it is unused.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77067 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:37:21 +00:00
Daniel Dunbar
322f789feb
MultiTestRunner: Oops, clang wasn't being substituted properly. This is why the
...
cxx-using-declaration test case started exhibiting different behavior. It still
needs to be fixed, however...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77066 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:23:35 +00:00
Daniel Dunbar
fecdd00619
MultiTestRunner: Always use absolute path names for tests.
...
Also, fix a function name I forgot to update.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77064 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:05:55 +00:00
Daniel Dunbar
025f80dfc2
MultiTestRunner: Validate '&&' at the end of RUN lines.
...
- This is just to normalize, these will go away soon hopefully.
Added all the missing '&&'s that have crept in. :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77062 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 11:27:37 +00:00
Daniel Dunbar
78a88e7233
MultiTestRunner: Explicitly define child environment, the only variable we need
...
to import is the PATH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77061 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 10:14:19 +00:00
Daniel Dunbar
df0848982f
MultiTestRunner.py improvements.
...
- Tweak output directories for temp files, derive the temporary base from the
test's parent directory name, and the test name (instead of the whole path).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77059 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 09:53:43 +00:00
Daniel Dunbar
8fe83f18c7
MultiTestRunner.py improvements.
...
- Not improved: the horribly lousy name. :)
- Suppress stderr when capturing output.
- Rewrite which() to do the right PATH search instead of being lazy and
shelling out to 'which'.
- On Windows, run scripts as batch files (via 'cmd /c ...').
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77058 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 09:42:24 +00:00
Anders Carlsson
7b3817d9cb
Whoops, did not mean to check this in.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77022 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 00:26:00 +00:00
Anders Carlsson
4257bc6d5b
More work on the constant struct builder. We now try to layout all constant structs but throw away the result.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77021 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 00:24:56 +00:00
Ted Kremenek
3a92d6d95b
Enable the '-warn-security-syntactic' checker option by default.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76933 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-24 02:52:07 +00:00
Ted Kremenek
bcc38f3182
Remove bogus check.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76259 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17 22:45:54 +00:00
Ted Kremenek
536294cf07
Add error message when clang-cc cannot be found.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76256 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17 22:38:26 +00:00
Daniel Dunbar
3ed4bd1136
Add extra print for --time-tests output.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76104 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-16 21:18:21 +00:00
Daniel Dunbar
02cee15238
Make stdin for test scripts empty, so that tests don't accidentally hang waiting
...
for stdin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75506 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-13 21:24:28 +00:00
Daniel Dunbar
7f10681795
Add --time-tests option to test runner, for profiling 'make test'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75396 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11 22:46:27 +00:00
Nuno Lopes
a7afc45291
restore proper valgrind support.
...
disclaim: I know nothing about Python, so apologies in advance if I break something
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11 18:34:43 +00:00
Eli Friedman
77a1fe945b
Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-10 20:15:12 +00:00
Argyrios Kyrtzidis
921bd26159
Having tests that depend on previously created files is bad idea. Fix them to be self-sufficient.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74810 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-06 00:03:47 +00:00
Argyrios Kyrtzidis
7b332d9ada
Make use of the Index library through the index-test tool.
...
'index-test' is now able to provide additional info for a Decl, through multiple AST files:
-Find declarations
-Find definitions
-Find references
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74803 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-05 22:22:35 +00:00
Daniel Dunbar
fbbb1e74b0
Revert prev commit, we have much bigger problems because 2.3 is missing
...
the subprocess module.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74738 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02 23:58:07 +00:00
Daniel Dunbar
8afede292a
Avoid @staticmethod to allow use with Python 2.3.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02 23:56:37 +00:00
Daniel Dunbar
69e07a75ef
Testing improvements:
...
- Make python test runner force COLUMNS=0 to increase determinism.
- Substitute clang-cc as we do for clang.
- Improved detection of Ctrl-C.
- Honor CLANG and CLANGCC environment variables.
- Add proper command line arguments to TestRunner.py (see --help)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73640 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-17 21:33:37 +00:00
Douglas Gregor
4d1800d8b5
If any tests fail, the test runner returns a status code of 1
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16 23:40:23 +00:00
Douglas Gregor
ebfc180d9b
Update Clang to include the InitializeAllTargets and
...
InitializeAllAsmPrinters LLVM headers. Also includes some minor fixes
for the CMake-based build with Xcode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73544 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16 20:13:51 +00:00
Douglas Gregor
7986519527
Switch CMake testing over to use Daniels new(er) Python-based infrastructure.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72977 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-05 23:57:17 +00:00
Douglas Gregor
4fe0c8e9c7
Refactor and clean up the AST printer, so that it uses a DeclVisitor,
...
walks through DeclContexts properly, and prints more of the
information available in the AST. The functionality is still available
via -ast-print, -ast-dump, etc., and also via the new member functions
Decl::dump() and Decl::print().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72597 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-30 00:08:05 +00:00
Eli Friedman
d9d38c43c3
Minor build system changes to make ABITest work correctly on Linux.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72405 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-25 22:07:09 +00:00
Eli Friedman
98a7170db8
Some minor corrections: don't use offsetof on a bitfield, and cast
...
printf operands to long to suppress warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72404 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-25 21:38:01 +00:00
Ted Kremenek
87752b2442
Add hack to scan-build to fix PR 4215
...
(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-15 21:14:16 +00:00
Ted Kremenek
9a9e0d41e2
Re-enable passing analyzer options from scan-build to ccc-analyzer.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71836 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15 04:20:31 +00:00
Ted Kremenek
621cc4ebcc
Don't strip quotes in compiler line for -D arguments.
...
Fixes PR 4205.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71835 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15 04:07:18 +00:00
Ted Kremenek
278a55103a
Make scan-build process of --use-cc and --html-title more robust.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71567 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-12 18:04:43 +00:00
Ted Kremenek
1df35e310d
Use Text::ParseWords to make 'clang -###' parsing more robust.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71504 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11 23:29:51 +00:00
Daniel Dunbar
31ed552f8f
Tweak this non-default test so it still works w/ x86 feature support.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71494 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11 23:11:21 +00:00
Ted Kremenek
efaf1915d5
ccc-analyzer should only analyze C and Objective-C files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71474 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11 21:08:34 +00:00
Ted Kremenek
fd9df0eddd
Add total hack to get scan-build working again. ccc-analyzer calls
...
'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-05-09 19:19:28 +00:00
Daniel Dunbar
484c7cad9b
ABITest: Improve test driver marginally, to allow running a specific
...
test index.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71295 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08 23:40:45 +00:00
Daniel Dunbar
b80ce0142d
ABITest: Move more of the common Makefile bits into the common
...
Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71274 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08 22:49:52 +00:00
Daniel Dunbar
48df17b8bf
ABITest: Fix a bug in generating test values for structures w/ no
...
non-padding fields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71273 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08 22:48:39 +00:00
Daniel Dunbar
238a318240
ABITest: Move default set of test args into common makefile.
...
Also, tweak default list of bit-fields to try.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71246 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08 20:10:52 +00:00
Daniel Dunbar
6d52ca0d5c
Add various other bits I use to run ABITest.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71201 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08 00:49:21 +00:00
Daniel Dunbar
122ed24b4f
Add to the house of cards that is ABITestGen.
...
- Support generating structures with bit-fields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71192 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-07 23:19:55 +00:00
Ted Kremenek
a4d8cde658
ccc-analyzer: Don't automatically generate 'Parser Rejects' files anymore. The
...
frontend is far enough along that most discrepancies between Clang and GCC are
(at least for C and Objective-C) are intentional. We also now have codegen to
test the frontend.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70303 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-28 17:37:44 +00:00
Douglas Gregor
405bad0739
Some fixes for PCH (de-)serialization of Objective-C AST nodes:
...
- Deal with the Receiver/ClassInfo shared storage in ObjCMessageExpr
- Implement PCH support for ImplicitParamDecl
- Fix the handling of the body of an ObjCMethodDecl
- Several cast -> cast_or_null fixes
- Make Selector::getIdentifierInfoForSlot work for 1-argument, NULL
selectors.
- Make Selector::getAsString() work with NULL selectors.
- Fix the names of VisitObjCAtCatchStmt and VisitObjCAtFinallyStmt
in the PCH reader and writer; these were never getting called.
At this point, all of the pch-test tests pass for C and Objective-C.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70163 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-26 22:20:50 +00:00
Douglas Gregor
69a6b6d7fc
Simple little smoke-test script that tries to build PCH files and then
...
dump their contents for all of the compilable tests in Clang's
testsuite. All of the tests pass for C, but there are still many
failures for Objective-C.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70110 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-26 03:52:11 +00:00
Daniel Dunbar
259a565e3c
Make this code a little more generic.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70103 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-26 01:28:51 +00:00
Daniel Dunbar
360d16c49d
Don't build error/warning/assertion detection in the testing script.
...
- This wasn't actually all that useful and isn't worth the extra
(hard)code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69869 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-23 05:03:44 +00:00
Ted Kremenek
32e9464afc
ccc-analyzer: Don't create preprocessed files about the ignored 'cdecl' attribute. We know Clang doesn't support it yet.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69802 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-22 13:42:27 +00:00
Daniel Dunbar
912f391851
Update this (non-default) test case.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69636 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-20 23:53:56 +00:00
Daniel Dunbar
6304201552
Remove CheckBuiltinMacros script, obsoleted since we support -dM now.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68990 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-13 21:26:41 +00:00
Daniel Dunbar
8d33cd77dc
Support -miphoneos-version-min in clang-cc.
...
- Patch by Shantonu Sen (with a minor tweak to split out
getDarwin{OSX,IPhoneOS}Defines)!
- <rdar://problem/6776277> Need clang-cc/ccc-analyzer support for
-miphoneos-version-min
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68815 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-10 19:52:24 +00:00
Daniel Dunbar
4d8076a0e4
Support %S in Python TestRunner
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68814 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-10 19:49:21 +00:00
Daniel Dunbar
3bbc75302f
More fixes to builtin preprocessor defines.
...
- Add -static-define option driver can use when __STATIC__ should be
defined (instead of __DYNAMIC__).
- Don't set __OPTIMIZE_SIZE__ on Os, __OPTIMIZE_SIZE__ is tied to Oz.
- Set __NO_INLINE__ following GCC 4.2.
- Set __GNU_GNU_INLINE__ or __GNU_STDC_INLINE__ following GCC 4.2.
- Set __EXCEPTIONS for Objective-C NonFragile ABI.
- Set __STRICT_ANSI__ for standard conforming modes.
- I added a clang style test case in utils for this, but its not
particularly portable and I don't think it belongs in the test
suite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68621 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-08 18:03:55 +00:00
Daniel Dunbar
7e075cb62c
Handle use side of __objc_exception__ attribute; when using an
...
exception with this attribute we don't need to emit a weak definition
for the exception type information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68513 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-07 06:43:45 +00:00
Ted Kremenek
833da02356
scan-build: Also look for clang-cc in ../libexec
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67972 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-29 00:31:32 +00:00
Ted Kremenek
91ea79dd3f
More path updates with clang-cc...
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67609 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24 05:30:14 +00:00
Ted Kremenek
318e6a65ff
Update scan-build/ccc-analyzer to use 'clang-cc' instead of 'clang'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67608 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24 04:29:13 +00:00
Ted Kremenek
db51a55c49
'-o' option now supports relative paths.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66680 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-11 18:20:33 +00:00
Ted Kremenek
43b7bd31f9
scan-build: Also look for clang in the same directory as scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66491 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-09 23:14:38 +00:00
Daniel Dunbar
6fc0bdfc32
Add my "clang compatible" test runner. Sorry for keeping this to myself...
...
Usage: from clang/test, 'make -f ../utils/test/Makefile.multi'
Pros: About 20% faster than the Makefile based version on my 8 core
box (way faster on Windows I imagine, if it works).
Cons: Needs some cleanup. Ctrl-C works quite poorly on Darwin; more
Python's fault than mine.
Future: Support config definitions so we can use this for running LLVM
tests instead of dejagnu. Parallel testing goodness? Indeed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66293 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-06 22:20:40 +00:00
Daniel Dunbar
02ca6ea418
Add a little utility for interposing between a command line program
...
and capturing its invocations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66068 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-04 21:06:52 +00:00
Daniel Dunbar
ec1abb9bd7
ABITestGen: Add v2i16 and v16f32 as default vector types to generate.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65810 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-02 06:14:33 +00:00
Ted Kremenek
5de4092946
Don't report 'Parser Rejects' for conftest files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65619 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-27 06:17:38 +00:00
Ted Kremenek
6b89636db8
Correctly check for ccc-analyzer in the same directory as scan-build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65618 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-27 06:17:05 +00:00
Ted Kremenek
6c4312d170
Pass -ffreestanding' to clang.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 23:09:43 +00:00
Ted Kremenek
a2bdaf5322
For scan-build based analyses, use the '-analyzer-eargely-assume' setting by default (turning it on to test how it impacts users).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65535 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 17:36:31 +00:00
Ted Kremenek
ce87b92970
scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and 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-25 22:54:02 +00:00
Ted Kremenek
d76c6a38b8
Do not automatically run the 'missing -dealloc' check until we have adequate 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-25 21:08:30 +00:00
Ted Kremenek
0e0eb8b051
Fix condition in ccc-analyzer that would cause the analyzer never to be run.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65417 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 00:10:37 +00:00
Ted Kremenek
8459132b03
ccc-analyzer: Don't analyze files with '-arch ppc' or '-arch ppc64' since Clang
...
doesn't support Altivec intrisics nor is it likely that we're currently
generating all the right #defines, etc., for those architectures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65390 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 22:07:12 +00:00
Daniel Dunbar
ae66cf3153
Add a very primitive clang based multifile 'delta'.
...
- Interface is more or less like multidelta.
- Keep in mind it won't work very well; delta is O(N^2) frequently in
practice. multidelta manages to work because it folds lines to keep
N small, but this is just working on raw tokens. However, I have a
fancy pants DAG based delta algorithm which will be the bees knees
once I get it wired to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65377 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 07:42:32 +00:00
Ted Kremenek
bf762c9b48
scan-build: Prune off any trailing '/' characters in the output directory path.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 02:38:02 +00:00
Ted Kremenek
2d62ab1747
Find 'clang' in 'bin' subdirectory instead of 'cbin'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65343 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-23 23:01:06 +00:00
Daniel Dunbar
60ff8ce5b2
Goodbye old-ccc; please use tools/ccc/ccc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65335 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-23 19:17:09 +00:00
Daniel Dunbar
0f1730d220
ABITestGen: Use explicit list of vector types instead of just a list
...
of sizes. Turns out we don't care very much about vector types that
don't map to the hardware.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65263 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-22 04:17:53 +00:00
Ted Kremenek
d4c7684f19
Update scan-build help diagnostic.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65223 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-21 04:46:41 +00:00
Ted Kremenek
7e5bd6f061
Only create a preprocessed file for an ignored attribute if there currently does not exist an 'attribute_ignored_XXX.txt' file for that attribute.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65222 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-21 04:46:20 +00:00
Ted Kremenek
9f4ecb34d5
Make 'RangeConstraintManager' the default ConstraintManager.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65173 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 21:49:22 +00:00
Ted Kremenek
8d10cdd9aa
Fix potential use of uninitialized variable.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65109 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 04:34:29 +00:00
Ted Kremenek
d3794b8cc3
scan-build now searches for the clang binary in the subdirectory 'cbin'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65014 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-19 04:58:30 +00:00
Ted Kremenek
938eef139a
ccc-analyzer:
...
- 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-17 23:31:05 +00:00
Daniel Dunbar
9dd60b4526
ABITest: Add some checking of values for return types; useful for
...
catching internal consistency problems (esp. w/ reference compiler).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64847 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 23:13:43 +00:00
Daniel Dunbar
05104aa7b6
Note some more things to integrate into ABITest
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64846 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 23:12:22 +00:00
Ted Kremenek
3891a157cc
Fix broken line.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64740 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 05:01:10 +00:00
Ted Kremenek
be1fe1eb12
Static Analyzer driver/options (partial) cleanup:
...
- 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-02-17 04:27:41 +00:00
Chris Lattner
399f5dd0c8
I didn't mean to change this.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63875 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05 19:05:56 +00:00
Chris Lattner
d427ad4cce
fix some differences between apple gcc and clang on darwin/x86-32.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63846 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05 07:19:24 +00:00
Fariborz Jahanian
9142bc962c
-x language fix.
...
Patch by David Chisnall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63686 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 23:59:32 +00:00
Daniel Dunbar
59ebd28462
ABITest: Makefile tweaks
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63330 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29 20:36:50 +00:00
Daniel Dunbar
e61e95fdcd
ABITest: Fix access to array test values.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63296 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29 08:48:06 +00:00
Daniel Dunbar
900ed55727
ABITest: Fix test value generation for unions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63286 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29 07:36:46 +00:00
Daniel Dunbar
107dc76180
Use xcc (instead of clang directly).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63279 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29 06:20:19 +00:00
Daniel Dunbar
76715913cd
ccc: Support -v; invent a version number for ccc for now, will be
...
shared with clang eventually.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63220 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-28 19:26:20 +00:00
Daniel Dunbar
5ce61575ad
ABITest: Support --test-layout option for generating
...
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-28 02:01:23 +00:00
Ted Kremenek
5f0e9325ad
Use string comparison rather than '=='.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63095 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-27 05:34:28 +00:00