summaryrefslogtreecommitdiffstats
path: root/clang/utils
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add a little utility for interposing between a command line programDaniel Dunbar2009-03-041-0/+73
| | | | | | and capturing its invocations. llvm-svn: 66068
* ABITestGen: Add v2i16 and v16f32 as default vector types to generate.Daniel Dunbar2009-03-021-1/+1
| | | | llvm-svn: 65810
* Don't report 'Parser Rejects' for conftest files.Ted Kremenek2009-02-271-2/+4
| | | | llvm-svn: 65619
* Correctly check for ccc-analyzer in the same directory as scan-build.Ted Kremenek2009-02-271-1/+1
| | | | llvm-svn: 65618
* Pass -ffreestanding' to clang.Ted Kremenek2009-02-261-1/+2
| | | | llvm-svn: 65584
* For scan-build based analyses, use the '-analyzer-eargely-assume' setting by ↵Ted Kremenek2009-02-261-0/+1
| | | | | | default (turning it on to test how it impacts users). llvm-svn: 65535
* scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and ↵Ted Kremenek2009-02-251-4/+5
| | | | | | then the directory where scan-build lives. llvm-svn: 65483
* Do not automatically run the 'missing -dealloc' check until we have adequate ↵Ted Kremenek2009-02-251-1/+2
| | | | | | time to make it much smarter (too much noise). llvm-svn: 65474
* Fix condition in ccc-analyzer that would cause the analyzer never to be run.Ted Kremenek2009-02-251-1/+1
| | | | llvm-svn: 65417
* ccc-analyzer: Don't analyze files with '-arch ppc' or '-arch ppc64' since ClangTed Kremenek2009-02-241-2/+10
| | | | | | | doesn't support Altivec intrisics nor is it likely that we're currently generating all the right #defines, etc., for those architectures. llvm-svn: 65390
* Add a very primitive clang based multifile 'delta'.Daniel Dunbar2009-02-241-0/+251
| | | | | | | | | | | | - 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. llvm-svn: 65377
* scan-build: Prune off any trailing '/' characters in the output directory path.Ted Kremenek2009-02-241-0/+3
| | | | llvm-svn: 65368
* Find 'clang' in 'bin' subdirectory instead of 'cbin'.Ted Kremenek2009-02-231-3/+3
| | | | llvm-svn: 65343
* Goodbye old-ccc; please use tools/ccc/ccc.Daniel Dunbar2009-02-231-418/+0
| | | | llvm-svn: 65335
* ABITestGen: Use explicit list of vector types instead of just a listDaniel Dunbar2009-02-221-10/+30
| | | | | | | of sizes. Turns out we don't care very much about vector types that don't map to the hardware. llvm-svn: 65263
* Update scan-build help diagnostic.Ted Kremenek2009-02-211-1/+1
| | | | llvm-svn: 65223
* Only create a preprocessed file for an ignored attribute if there currently ↵Ted Kremenek2009-02-211-3/+9
| | | | | | does not exist an 'attribute_ignored_XXX.txt' file for that attribute. llvm-svn: 65222
* Make 'RangeConstraintManager' the default ConstraintManager.Ted Kremenek2009-02-202-4/+5
| | | | llvm-svn: 65173
* Fix potential use of uninitialized variable.Ted Kremenek2009-02-201-1/+1
| | | | llvm-svn: 65109
* scan-build now searches for the clang binary in the subdirectory 'cbin'.Ted Kremenek2009-02-191-2/+2
| | | | llvm-svn: 65014
* ccc-analyzer:Ted Kremenek2009-02-172-49/+105
| | | | | | | | | | - now logs which source files had "ignored attributes". - disable-free is enabled scan-build: - now displays a table of ignored attributes under "Analyzer Failures". llvm-svn: 64853
* ABITest: Add some checking of values for return types; useful forDaniel Dunbar2009-02-171-1/+35
| | | | | | catching internal consistency problems (esp. w/ reference compiler). llvm-svn: 64847
* Note some more things to integrate into ABITestDaniel Dunbar2009-02-171-0/+3
| | | | llvm-svn: 64846
* Fix broken line.Ted Kremenek2009-02-171-1/+1
| | | | llvm-svn: 64740
* Static Analyzer driver/options (partial) cleanup:Ted Kremenek2009-02-172-10/+35
| | | | | | | | | | | | | | - 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 llvm-svn: 64737
* I didn't mean to change this.Chris Lattner2009-02-051-1/+1
| | | | llvm-svn: 63875
* fix some differences between apple gcc and clang on darwin/x86-32.Chris Lattner2009-02-051-1/+1
| | | | llvm-svn: 63846
* -x language fix.Fariborz Jahanian2009-02-031-0/+2
| | | | | | Patch by David Chisnall llvm-svn: 63686
* ABITest: Makefile tweaksDaniel Dunbar2009-01-292-24/+52
| | | | llvm-svn: 63330
* ABITest: Fix access to array test values.Daniel Dunbar2009-01-291-1/+4
| | | | llvm-svn: 63296
* ABITest: Fix test value generation for unions.Daniel Dunbar2009-01-291-1/+8
| | | | llvm-svn: 63286
* Use xcc (instead of clang directly).Daniel Dunbar2009-01-291-6/+5
| | | | llvm-svn: 63279
* ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar2009-01-281-1/+2
| | | | | | shared with clang eventually. llvm-svn: 63220
OpenPOWER on IntegriCloud