summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix crasher in CFRefCount.cpp reported by Nikita Zhuk due to recently added ↵Ted Kremenek2009-05-132-5/+33
| | | | | | autorelease tracking. llvm-svn: 71647
* Fix rdar://6880630 - # in _Pragma does not start a preprocessor directive.Chris Lattner2009-05-132-3/+9
| | | | llvm-svn: 71643
* convert test to use -verify Chris Lattner2009-05-131-2/+2
| | | | llvm-svn: 71642
* rename testChris Lattner2009-05-131-0/+0
| | | | llvm-svn: 71641
* Fix rdar://6880951 by rejecting vectors of vectors.Chris Lattner2009-05-132-2/+6
| | | | | | | | It seems dubious to me that isIntegerType() returns true for vectors of integers, but not complex integers. This should probably be rethought, I'll file a bugzilla. llvm-svn: 71640
* reject use of the GNU _Decimal32 extension with a diagnostic, not an abort.Chris Lattner2009-05-133-1/+10
| | | | | | rdar://6880104 llvm-svn: 71639
* eli correctly points out that this code is dead, just rip it out forChris Lattner2009-05-131-7/+0
| | | | | | now until someone does it right llvm-svn: 71638
* implement __sync_synchronize and __sync_lock_release,Chris Lattner2009-05-132-3/+21
| | | | | | rdar://6880573 llvm-svn: 71637
* add support for __sync_nand_and_fetch and __sync_fetch_and_nand,Chris Lattner2009-05-132-11/+35
| | | | | | rdar://6880573 llvm-svn: 71636
* Fix rdar://6880874 - [sema] crash on array types with different index sizesChris Lattner2009-05-132-1/+17
| | | | llvm-svn: 71634
* Fix rdar://6881069, a crash on a form of vector_size that weChris Lattner2009-05-133-1/+10
| | | | | | | | | don't support. While it would be nice to support this eventually, this form is not common at all (just seen in gcc testsuite) and it might be better to model vector_size as a type attribute anyway. For now just emit a nice error on it. llvm-svn: 71633
* Fix rdar://6880259 - invalid function name in block call ↵Chris Lattner2009-05-132-33/+8
| | | | | | | | (__NSConcreteGlobalBlock2) by using the appropriate CGM interface instead of directly creating a global. llvm-svn: 71617
* When we expect two arguments but have zero, make sure to addChris Lattner2009-05-133-0/+9
| | | | | | | | | two empty arguments. Also, add an assert so that this bug manifests as an assertion failure, not a valgrind problem. This fixes rdar://6880648 - [cpp] crash in ArgNeedsPreexpansion llvm-svn: 71616
* Changed wording of warning when attribute is onFariborz Jahanian2009-05-133-4/+4
| | | | | | method definition. llvm-svn: 71615
* Semantic analysis for explicit instantiation of class templates. WeDouglas Gregor2009-05-137-10/+200
| | | | | | | | still aren't instantiating the definitions of class template members, and core issues 275 and 259 will both affect the checking that we do for explicit instantiations (but are not yet implemented). llvm-svn: 71613
* Tweak wordingDaniel Dunbar2009-05-131-1/+1
| | | | llvm-svn: 71611
* Implement parsing for explicit instantiations of class templates, e.g.,Douglas Gregor2009-05-1210-54/+248
| | | | | | | | | template class X<int>; This also cleans up the propagation of template information through declaration parsing, which is used to improve some diagnostics. llvm-svn: 71608
* Note a few more unsupported language extensions.Daniel Dunbar2009-05-121-0/+10
| | | | llvm-svn: 71607
* Update checker build.Ted Kremenek2009-05-121-1/+1
| | | | llvm-svn: 71605
* improve the diagnostic for uses of the GCC "global variable in a register" ↵Chris Lattner2009-05-123-1/+16
| | | | | | | | extension. This implements rdar://6880449 - improve diagnostic for usage of "global register variable" GCC extension llvm-svn: 71599
* Parser::ParseDeclarationOrFunctionDefinition no longer needs to acceptDouglas Gregor2009-05-123-5/+5
| | | | | | template parameters. llvm-svn: 71598
* Method attributes may only be specified on methodFariborz Jahanian2009-05-124-1/+30
| | | | | | declarations. llvm-svn: 71597
* Refactor the parsing of declarations so that template declarations canDouglas Gregor2009-05-127-93/+239
| | | | | | | | | | parse just a single declaration and provide a reasonable diagnostic when the "only one declarator per template declaration" rule is violated. This eliminates some ugly, ugly hackery where we used to require thatn the layout of a DeclGroup of a single element be the same as the layout of a single declaration. llvm-svn: 71596
* implement l-value codegen of comma exprChris Lattner2009-05-122-0/+18
| | | | llvm-svn: 71595
* push GlobalDecl through enough of the CodeGenModule interfacesChris Lattner2009-05-127-71/+72
| | | | | | | | | to allow us to support generation of deferred ctors/dtors. It looks like codegen isn't emitting a call to the dtor in member-functions.cpp:test2, but when it does, its body should get emitted. llvm-svn: 71594
* add an initial stab at emitting deferred c++ inline functions. This handles ↵Chris Lattner2009-05-122-2/+35
| | | | | | | | | static functions and methods declared inline, but not ctors/dtors or methods not declared inline (apparently my previous patch wasn't good enough). llvm-svn: 71591
* cleanups, no functionality change.Chris Lattner2009-05-121-3/+5
| | | | llvm-svn: 71590
* Method who have definitions in structs/classes are semantically inline.Chris Lattner2009-05-121-0/+7
| | | | | | | Per the FIXME, it might be interesting to track whether the inline keyword was also used on the method, but for now we don't do this. Testcase pending. llvm-svn: 71589
* static methods don't get this pointers.Chris Lattner2009-05-121-4/+4
| | | | llvm-svn: 71586
* revert my previous patch, I committed the wrong file.Chris Lattner2009-05-121-10/+2
| | | | llvm-svn: 71585
* Diagnostic wording fix, from Anders JohnsenDouglas Gregor2009-05-121-1/+1
| | | | llvm-svn: 71584
* static methods don't get this pointers.Chris Lattner2009-05-121-2/+10
| | | | llvm-svn: 71583
* Fix: <rdar://problem/6320065> false positive - init method returns an object ↵Ted Kremenek2009-05-122-22/+89
| | | | | | | | | owned by caller Now 'init' methods are treated by the retain/release checker as claiming their receiver and allocating a new object. llvm-svn: 71579
* Fixed typos, used DenseSet for keeping track ofFariborz Jahanian2009-05-121-34/+48
| | | | | | | selectors which need use Nonfrgile API for message dispatch. llvm-svn: 71578
* Align the N/A in the C++ status table, from Anders JohnsenDouglas Gregor2009-05-121-2/+2
| | | | llvm-svn: 71576
* accept "#pragma clang foo" where we accept "#pragma GCC foo".Chris Lattner2009-05-122-3/+14
| | | | llvm-svn: 71572
* Patch to implement ivar synthesis of properties declared in protocolsFariborz Jahanian2009-05-124-29/+97
| | | | | | only and used in class imllementations (objc2 Nonfragile ABI specific). llvm-svn: 71571
* Make scan-build process of --use-cc and --html-title more robust.Ted Kremenek2009-05-121-3/+3
| | | | llvm-svn: 71567
* Fill in more C++ status. We're now using the check mark to mean,Douglas Gregor2009-05-121-378/+697
| | | | | | "complete, and we have tests for every paragraph". llvm-svn: 71564
* Darwin x86-32 ABI: Now that structure passing is farther along, weDaniel Dunbar2009-05-122-12/+8
| | | | | | don't need special treatment for unions. llvm-svn: 71559
* x86-64 ABI: clang incorrectly passes union { long double, float } inDaniel Dunbar2009-05-122-1/+5
| | | | | | | register. - Merge algorithm was returning MEMORY as it should. llvm-svn: 71556
* Add logic for invalidating array region to CFRefCount.cpp. When invalidatingZhongxing Xu2009-05-127-14/+77
| | | | | | | | | array region, set its default value to conjured symbol. When retrieving its element, create new region value symbol for the element. Also fix some 80 columns violations. llvm-svn: 71548
* Fix <rdar://problem/6877235> Classes typedef-ed to CF objects should get the ↵Ted Kremenek2009-05-122-3/+32
| | | | | | | | same treatment as CF objects This was accomplished by having 'isTypeRef' recursively walk the typedef stack. llvm-svn: 71538
* Make precompiled headers work with -E. When we're only preprocessingDouglas Gregor2009-05-128-16/+173
| | | | | | | (with -E), we turn the PCH include into an implicit include of the file from which the PCH file was generated. llvm-svn: 71534
* wrap up a version of the man page that is minimally helpful, but somewhat ↵Chris Lattner2009-05-121-45/+31
| | | | | | complete. llvm-svn: 71524
* Update checker build.Ted Kremenek2009-05-121-1/+1
| | | | llvm-svn: 71523
* add some more content.Chris Lattner2009-05-121-80/+182
| | | | llvm-svn: 71518
* Encapsulate template arguments lists in a new class,Douglas Gregor2009-05-119-143/+177
| | | | | | | | TemplateArgumentList. This avoids the need to pass around pointer/length pairs of template arguments lists, and will eventually make it easier to introduce member templates and variadic templates. llvm-svn: 71517
* BugReport::getEndPath() - Only add a Stmt's range to the constructed ↵Ted Kremenek2009-05-112-9/+13
| | | | | | PathDiagnosticEventPiece if the BugReport contained no explicit ranges. llvm-svn: 71516
* Factor code that's common to EmitCXXMemberCallExpr and ↵Anders Carlsson2009-05-112-27/+41
| | | | | | EmitCXXConstructorCall out into a EmitCXXMemberCall function. llvm-svn: 71514
OpenPOWER on IntegriCloud