summaryrefslogtreecommitdiffstats
path: root/clang/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove bogus check.Ted Kremenek2009-07-171-4/+0
| | | | llvm-svn: 76259
* Add error message when clang-cc cannot be found.Ted Kremenek2009-07-171-0/+4
| | | | llvm-svn: 76256
* Add extra print for --time-tests output.Daniel Dunbar2009-07-161-0/+1
| | | | llvm-svn: 76104
* Make stdin for test scripts empty, so that tests don't accidentally hang waitingDaniel Dunbar2009-07-131-0/+1
| | | | | | for stdin. llvm-svn: 75506
* Add --time-tests option to test runner, for profiling 'make test'.Daniel Dunbar2009-07-111-2/+16
| | | | llvm-svn: 75396
* restore proper valgrind support.Nuno Lopes2009-07-111-6/+8
| | | | | | disclaim: I know nothing about Python, so apologies in advance if I break something llvm-svn: 75368
* Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.Eli Friedman2009-07-108-8/+8
| | | | llvm-svn: 75271
* Having tests that depend on previously created files is bad idea. Fix them ↵Argyrios Kyrtzidis2009-07-061-2/+0
| | | | | | to be self-sufficient. llvm-svn: 74810
* Make use of the Index library through the index-test tool.Argyrios Kyrtzidis2009-07-051-0/+2
| | | | | | | | | 'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references llvm-svn: 74803
* Revert prev commit, we have much bigger problems because 2.3 is missingDaniel Dunbar2009-07-021-1/+1
| | | | | | the subprocess module. llvm-svn: 74738
* Avoid @staticmethod to allow use with Python 2.3.Daniel Dunbar2009-07-021-2/+3
| | | | llvm-svn: 74737
* Testing improvements:Daniel Dunbar2009-06-172-27/+121
| | | | | | | | | | | | | | - 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) llvm-svn: 73640
* If any tests fail, the test runner returns a status code of 1Douglas Gregor2009-06-161-1/+2
| | | | llvm-svn: 73584
* Update Clang to include the InitializeAllTargets andDouglas Gregor2009-06-161-1/+0
| | | | | | | InitializeAllAsmPrinters LLVM headers. Also includes some minor fixes for the CMake-based build with Xcode. llvm-svn: 73544
* Switch CMake testing over to use Daniels new(er) Python-based infrastructure.Douglas Gregor2009-06-051-1/+8
| | | | llvm-svn: 72977
* Refactor and clean up the AST printer, so that it uses a DeclVisitor,Douglas Gregor2009-05-301-1/+1
| | | | | | | | | 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(). llvm-svn: 72597
* Minor build system changes to make ABITest work correctly on Linux.Eli Friedman2009-05-254-5/+5
| | | | llvm-svn: 72405
* Some minor corrections: don't use offsetof on a bitfield, and cast Eli Friedman2009-05-251-4/+4
| | | | | | printf operands to long to suppress warnings. llvm-svn: 72404
* Add hack to scan-build to fix PR 4215Ted Kremenek2009-05-151-0/+12
| | | | | | | (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. llvm-svn: 71891
* Re-enable passing analyzer options from scan-build to ccc-analyzer.Ted Kremenek2009-05-151-9/+16
| | | | llvm-svn: 71836
* Don't strip quotes in compiler line for -D arguments.Ted Kremenek2009-05-151-1/+5
| | | | | | Fixes PR 4205. llvm-svn: 71835
* Make scan-build process of --use-cc and --html-title more robust.Ted Kremenek2009-05-121-3/+3
| | | | llvm-svn: 71567
* Use Text::ParseWords to make 'clang -###' parsing more robust.Ted Kremenek2009-05-111-8/+5
| | | | llvm-svn: 71504
* Tweak this non-default test so it still works w/ x86 feature support.Daniel Dunbar2009-05-111-1/+6
| | | | llvm-svn: 71494
* ccc-analyzer should only analyze C and Objective-C files.Ted Kremenek2009-05-111-0/+7
| | | | llvm-svn: 71474
* Add total hack to get scan-build working again. ccc-analyzer callsTed Kremenek2009-05-092-23/+85
| | | | | | | 'clang -###' to get the appropriate arguments to pass to clang-cc. This isn't a permanent solution. llvm-svn: 71364
* ABITest: Improve test driver marginally, to allow running a specificDaniel Dunbar2009-05-081-4/+12
| | | | | | test index. llvm-svn: 71295
* ABITest: Move more of the common Makefile bits into the commonDaniel Dunbar2009-05-086-214/+20
| | | | | | Makefile. llvm-svn: 71274
* ABITest: Fix a bug in generating test values for structures w/ noDaniel Dunbar2009-05-081-14/+10
| | | | | | non-padding fields. llvm-svn: 71273
* ABITest: Move default set of test args into common makefile.Daniel Dunbar2009-05-086-3/+55
| | | | | | Also, tweak default list of bit-fields to try. llvm-svn: 71246
* Add various other bits I use to run ABITest.Daniel Dunbar2009-05-088-1/+252
| | | | llvm-svn: 71201
* Add to the house of cards that is ABITestGen.Daniel Dunbar2009-05-072-46/+136
| | | | | | - Support generating structures with bit-fields. llvm-svn: 71192
* ccc-analyzer: Don't automatically generate 'Parser Rejects' files anymore. TheTed Kremenek2009-04-281-1/+4
| | | | | | | | 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. llvm-svn: 70303
* Some fixes for PCH (de-)serialization of Objective-C AST nodes:Douglas Gregor2009-04-261-2/+14
| | | | | | | | | | | | | | | | - 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. llvm-svn: 70163
* Simple little smoke-test script that tries to build PCH files and thenDouglas Gregor2009-04-261-0/+49
| | | | | | | | 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. llvm-svn: 70110
* Make this code a little more generic.Daniel Dunbar2009-04-261-20/+19
| | | | llvm-svn: 70103
* Don't build error/warning/assertion detection in the testing script.Daniel Dunbar2009-04-231-67/+2
| | | | | | | - This wasn't actually all that useful and isn't worth the extra (hard)code. llvm-svn: 69869
* ccc-analyzer: Don't create preprocessed files about the ignored 'cdecl' ↵Ted Kremenek2009-04-221-0/+5
| | | | | | attribute. We know Clang doesn't support it yet. llvm-svn: 69802
* Update this (non-default) test case.Daniel Dunbar2009-04-201-0/+1
| | | | llvm-svn: 69636
* Remove CheckBuiltinMacros script, obsoleted since we support -dM now.Daniel Dunbar2009-04-131-23/+0
| | | | llvm-svn: 68990
* Support -miphoneos-version-min in clang-cc.Daniel Dunbar2009-04-101-1/+2
| | | | | | | | | | - 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 llvm-svn: 68815
* Support %S in Python TestRunnerDaniel Dunbar2009-04-101-0/+2
| | | | llvm-svn: 68814
* More fixes to builtin preprocessor defines.Daniel Dunbar2009-04-081-0/+79
| | | | | | | | | | | | | | | | | | | | | - 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. llvm-svn: 68621
* Handle use side of __objc_exception__ attribute; when using anDaniel Dunbar2009-04-071-24/+42
| | | | | | | exception with this attribute we don't need to emit a weak definition for the exception type information. llvm-svn: 68513
* scan-build: Also look for clang-cc in ../libexecTed Kremenek2009-03-291-6/+9
| | | | llvm-svn: 67972
* More path updates with clang-cc...Ted Kremenek2009-03-241-4/+4
| | | | llvm-svn: 67609
* Update scan-build/ccc-analyzer to use 'clang-cc' instead of 'clang'.Ted Kremenek2009-03-242-6/+6
| | | | llvm-svn: 67608
* '-o' option now supports relative paths.Ted Kremenek2009-03-111-1/+4
| | | | llvm-svn: 66680
* scan-build: Also look for clang in the same directory as scan-build.Ted Kremenek2009-03-091-0/+6
| | | | llvm-svn: 66491
* Add my "clang compatible" test runner. Sorry for keeping this to myself... Daniel Dunbar2009-03-064-0/+853
| | | | | | | | | | | | | | | 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. llvm-svn: 66293
OpenPOWER on IntegriCloud