summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* fix warning in no-assert mode.Chris Lattner2009-02-191-3/+1
| | | | llvm-svn: 65024
* Emit the correct diagnostics when we constant fold an array size to a ↵Anders Carlsson2009-02-192-3/+17
| | | | | | negative value. llvm-svn: 65023
* don't new[] an empty array when an AttributeList has Chris Lattner2009-02-191-5/+9
| | | | | | | zero expression arguments. This eliminates 2579 1-byte mallocs when parsing Cocoa.h. llvm-svn: 65022
* Make sure to check the value of the constant expression, as suggested by Daniel.Anders Carlsson2009-02-191-1/+1
| | | | llvm-svn: 65021
* Emission of global variable initialializer was broken in rareDaniel Dunbar2009-02-192-1/+39
| | | | | | | | | | | situation where a tentative decl was emitted *after* the actual initialization. This occurs in some rare situations with static decls. - PR3613. - I'm not particularly happy with this fix, but I don't see a simpler or more elegant solution yet. llvm-svn: 65018
* scan-build now searches for the clang binary in the subdirectory 'cbin'.Ted Kremenek2009-02-191-2/+2
| | | | llvm-svn: 65014
* Handle the GNU void* and function pointer arithmetic extensions for constant ↵Anders Carlsson2009-02-192-1/+9
| | | | | | expressions as well. llvm-svn: 65013
* always search for "builtin" headers at the end of the search path,Chris Lattner2009-02-191-2/+2
| | | | | | and never remap them with -isysroot. This fixes PR3614. llvm-svn: 65012
* PR3614: "ignoring nonexistent directory" should print the -isysroot Chris Lattner2009-02-191-2/+2
| | | | | | mapped path, not the requested path. llvm-svn: 65009
* fix another typo gabor noticedChris Lattner2009-02-191-1/+1
| | | | llvm-svn: 65006
* fix a typo gabor noticedChris Lattner2009-02-191-1/+1
| | | | llvm-svn: 65005
* Add test case for 'nil receiver returns undefined struct value' check.Ted Kremenek2009-02-191-0/+19
| | | | llvm-svn: 65004
* Implemented simple check in <rdar://problem/6600344>: When the receiver of aTed Kremenek2009-02-193-3/+79
| | | | | | | message expression is nil and the return type is struct then the returned value is undefined or potentially garbage. llvm-svn: 65003
* Fit 80col and fix indentation.Mike Stump2009-02-191-263/+264
| | | | llvm-svn: 65000
* Fix spacing.Mike Stump2009-02-191-1/+1
| | | | llvm-svn: 64998
* More codegen for blocks. The type of block literals should be better.Mike Stump2009-02-195-12/+62
| | | | | | The size calculation is improved. llvm-svn: 64994
* Provide a proper source location when building an implicit dereference. ↵Douglas Gregor2009-02-193-2/+19
| | | | | | Fixes PR3600 llvm-svn: 64993
* Some code simplification. ir gen for gc'able arrayFariborz Jahanian2009-02-192-14/+17
| | | | | | of objects in objc. llvm-svn: 64992
* testing (reverted)Howard Hinnant2009-02-191-1/+1
| | | | llvm-svn: 64991
* testingHoward Hinnant2009-02-191-1/+1
| | | | llvm-svn: 64990
* Couple of helpers for objc's gc attributes.Fariborz Jahanian2009-02-192-1/+11
| | | | | | No change in functionality. llvm-svn: 64989
* Make error-message check platform-agnosticDouglas Gregor2009-02-191-1/+1
| | | | llvm-svn: 64985
* Address Chris's comments regarding C++ name mangling.Douglas Gregor2009-02-187-45/+64
| | | | llvm-svn: 64984
* retain/release checker: Place the leak diagnostic after the last statement thatTed Kremenek2009-02-181-15/+37
| | | | | | references the tracked object. llvm-svn: 64980
* fariborz already fixed this.Chris Lattner2009-02-181-1/+0
| | | | llvm-svn: 64975
* Remove unused variable.Ted Kremenek2009-02-181-1/+0
| | | | llvm-svn: 64974
* Remove logic for computing 'display hint'.Ted Kremenek2009-02-181-21/+2
| | | | llvm-svn: 64973
* minor name changes, no functionality change.Chris Lattner2009-02-182-8/+8
| | | | llvm-svn: 64972
* More fun with retain checker diagnostics:Ted Kremenek2009-02-181-7/+17
| | | | | | | | - Fix some grammar. - Fix a bug where a "reference count incremented" diagnostic would not be shown if the previous typestate was "Released" (only happens in GC mode). llvm-svn: 64971
* fix some subtle bugs handling the mix of cvr qualifiers, addr spaces, Chris Lattner2009-02-182-36/+57
| | | | | | | and gc attrs. Add an assert to check that we never get ExtQualType(ExtQualType(T)). llvm-svn: 64970
* Add anti-FIXME.Daniel Dunbar2009-02-181-1/+4
| | | | llvm-svn: 64969
* minor spacing changes.Chris Lattner2009-02-181-4/+4
| | | | llvm-svn: 64968
* i386 ABI: Offset computation in va_arg was incorrect for sizeof(Ty)>4.Daniel Dunbar2009-02-181-6/+3
| | | | | | We are down to only failing gcc.dg/compat/vector-[12] (8 tests total). llvm-svn: 64967
* fix typoChris Lattner2009-02-181-1/+1
| | | | llvm-svn: 64966
* Remove pointless backslashDouglas Gregor2009-02-181-1/+1
| | | | llvm-svn: 64965
* Downgrade the "excess elements in initializer" errors to warnings *inDouglas Gregor2009-02-187-20/+34
| | | | | | C*. They're required errors in C++. llvm-svn: 64964
* x86_64 ABI: Fix thinko in computation of bound for "passed in SSE regs" test.Daniel Dunbar2009-02-181-1/+1
| | | | | | Two more gcc/x86_64 failures down. llvm-svn: 64963
* Fix diagnostics bugs when computing ranges for the retain/release checker.Ted Kremenek2009-02-181-1/+4
| | | | llvm-svn: 64962
* rip out __builtin_overloadChris Lattner2009-02-1813-306/+0
| | | | llvm-svn: 64961
* Add a few more GC-only test cases for the retain/release checker.Ted Kremenek2009-02-181-2/+16
| | | | llvm-svn: 64960
* HTMLDiagnostics: Always display diagnostics *below* the line in question.Ted Kremenek2009-02-181-22/+7
| | | | llvm-svn: 64959
* x86_64 ABI: "is passed in regs" computation for va_arg was broken forDaniel Dunbar2009-02-181-1/+1
| | | | | | | | things passed in mixed registers. This knocks out 8 x86_64 failures. llvm-svn: 64958
* Return true on errors, return true on errors, return true on errorsDouglas Gregor2009-02-182-1/+8
| | | | llvm-svn: 64957
* retain/release checker: We now emit fancy diagnostics telling users about theTed Kremenek2009-02-181-50/+88
| | | | | | semantics of CFMakeCollectable and friends. llvm-svn: 64956
* Downgrade complaints about calling unavailable functions to a warningDouglas Gregor2009-02-1814-91/+275
| | | | | | | | | | | | | | | | | | (as GCC does), except when we've performed overload resolution and found an unavailable function: in this case, we actually error. Merge the checking of unavailable functions with the checking for deprecated functions. This unifies a bit of code, and makes sure that we're checking for unavailable functions in the right places. Also, this check can cause an error. We may, eventually, want an option to make "unavailable" warnings into errors. Implement much of the logic needed for C++0x deleted functions, which are effectively the same as "unavailable" functions (but always cause an error when referenced). However, we don't have the syntax to specify deleted functions yet :) llvm-svn: 64955
* Some refactoring and simplificaiotn of objc's gcFariborz Jahanian2009-02-183-17/+31
| | | | | | ir gen. llvm-svn: 64954
* Codegen for int (^bp)(int) = 0;Mike Stump2009-02-181-2/+4
| | | | llvm-svn: 64951
* Fix comment: analyzer builds are universal binaries.Ted Kremenek2009-02-181-1/+1
| | | | llvm-svn: 64950
* __attribute__((aligned)) was being ignored!Daniel Dunbar2009-02-182-1/+10
| | | | | | This knocks out another 8 gcc/compat/i386 & x86_64 failures. llvm-svn: 64947
* Add Type::isSpecificBuiltinType as a shortcut.Daniel Dunbar2009-02-182-7/+13
| | | | llvm-svn: 64946
OpenPOWER on IntegriCloud