summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch to fix encoding in 64bit abi. With this patchFariborz Jahanian2009-02-111-2/+8
| | | | | | | all but one dejagnu encoding tests for darwin pass in nonfragile abi mode. llvm-svn: 64334
* Use EmitVAListRef instead of EmitLValue directly to handle array decayDaniel Dunbar2009-02-114-4/+3
| | | | | | case on x86_64. llvm-svn: 64333
* Remove some non-ascii characters. Thanks Gabor.Steve Naroff2009-02-112-2/+2
| | | | llvm-svn: 64330
* PTH: Replace string identifier to persistent ID lookup with a hashtable. This isTed Kremenek2009-02-114-151/+206
| | | | | | | actually *slightly* slower than the binary search. Since this is algorithmically better, further performance tuning should be able to make this faster. llvm-svn: 64326
* Support IRgen of va_arg of structure as l-value.Daniel Dunbar2009-02-112-2/+12
| | | | llvm-svn: 64325
* ir-gen for objc's @selector expression in nonfragile abi mode.Fariborz Jahanian2009-02-111-1/+26
| | | | llvm-svn: 64323
* Appease the language lawyersDouglas Gregor2009-02-111-1/+1
| | | | llvm-svn: 64321
* Fix <rdar://problem/6505139> [clang on growl]: need to allow unnamed ↵Steve Naroff2009-02-112-1/+10
| | | | | | selectors as the first argument llvm-svn: 64320
* Fix <rdar://problem/6243503> [sema] @throw; accepted outside catch block.Steve Naroff2009-02-118-10/+31
| | | | llvm-svn: 64318
* Finished semantic analysis of non-type template arguments, to checkDouglas Gregor2009-02-114-21/+197
| | | | | | | | | | | for non-external names whose address becomes the template argument. This completes C++ [temp.arg.nontype]p1. Note that our interpretation of C++ [temp.arg.nontype]p1b3 differs from EDG's interpretation (we're stricter, and GCC agrees with us). They're opening a core issue about the matter. llvm-svn: 64317
* Avoid bogus warning.Mike Stump2009-02-111-1/+2
| | | | llvm-svn: 64313
* Reverted r64307. Moved hasSameType and hasSameUnqualifiedType fromDouglas Gregor2009-02-113-24/+18
| | | | | | Sema to ASTContext. llvm-svn: 64312
* Allow the use of default template arguments when forming a classDouglas Gregor2009-02-116-3/+49
| | | | | | | | | | | | | | template specialization (e.g., std::vector<int> would now be well-formed, since it relies on a default argument for the Allocator template parameter). This is much less interesting than one might expect, since (1) we're not actually using the default arguments for anything important, such as naming an actual Decl, and (2) we'll often need to instantiate the default arguments to check their well-formedness. The real fun will come later. llvm-svn: 64310
* Fix <rdar://problem/6206858> [sema] type check @throw statements.Steve Naroff2009-02-114-4/+25
| | | | | | Added a FIXME to handle 'rethrow' check. llvm-svn: 64308
* Rename Sema::hasSameType to QualType::isSameAsDouglas Gregor2009-02-114-22/+24
| | | | | | Rename Sema::hasSameUnqualifiedType to QualType::isSameIgnoringQalifiers llvm-svn: 64307
* Silence a warning about an unused variable in -Asserts buildsDouglas Gregor2009-02-111-1/+1
| | | | llvm-svn: 64306
* Implement semantic checking for template arguments that correspond toDouglas Gregor2009-02-115-16/+51
| | | | | | | | pointer-to-member-data non-type template parameters. Also, get consistent about what it means to returned a bool from CheckTemplateArgument. llvm-svn: 64305
* PTH: Don't emit the PTH offset of the IdentifierInfo string data as that data isTed Kremenek2009-02-113-25/+15
| | | | | | referenced by other tables. llvm-svn: 64304
* Update checker build.Ted Kremenek2009-02-111-1/+1
| | | | llvm-svn: 64297
* Fix rdar://6518463, increment of a bool is always true, due toChris Lattner2009-02-111-0/+7
| | | | | | | subtle and non-obvious promotion rules. We already handle += and +1 correctly. llvm-svn: 64296
* finish off codegen support for sub of pointer to functions, Chris Lattner2009-02-112-2/+14
| | | | | | finishing off rdar://6520707 llvm-svn: 64295
* Per PR 3187, disable the missing -dealloc check for classes that subclass ↵Ted Kremenek2009-02-111-3/+15
| | | | | | SenTestCase. llvm-svn: 64292
* Add pmmintrin.h header.Anders Carlsson2009-02-111-0/+108
| | | | llvm-svn: 64291
* Fix some mistakes I made when I tried to decipher the Intel documentation of ↵Anders Carlsson2009-02-111-7/+12
| | | | | | the MXCSR register llvm-svn: 64290
* testcase for rdar://6096412 which already works.Chris Lattner2009-02-111-0/+8
| | | | llvm-svn: 64289
* CHAR_BIT == 8Douglas Gregor2009-02-112-4/+3
| | | | llvm-svn: 64286
* Add semantic checking for template arguments that correspond toDouglas Gregor2009-02-113-73/+132
| | | | | | | | | | | | | | non-type template parameters that are references to functions or pointers to member functions. Did a little bit of refactoring so that these two cases, along with the handling of non-type template parameters that are pointers to functions, are handled by the same path. Also, tweaked FixOverloadedFunctionReference to cope with member function pointers. This is a necessary step for getting all of the fun member pointer conversions working outside of template arguments, too. llvm-svn: 64277
* One more tweak to account for gluing together llvm and clang into one.Mike Stump2009-02-111-0/+1
| | | | llvm-svn: 64276
* More version experimentation.Mike Stump2009-02-111-1/+4
| | | | llvm-svn: 64271
* Semantic checking for template arguments that correspond to non-typeDouglas Gregor2009-02-113-3/+57
| | | | | | | template parameters that have reference type. Effectively, we're doing a very limited form of reference binding here. llvm-svn: 64270
* Run a little experiment with version numbers.Mike Stump2009-02-111-1/+1
| | | | llvm-svn: 64268
* Add partial semantic checking of template arguments that are meant forDouglas Gregor2009-02-114-4/+100
| | | | | | | | | | | | | | | | | | | non-type template parameters of pointer-to-object and pointer-to-function type. The most fun part of this is the use of overload resolution to pick a function from the set of overloaded functions that comes in as a template argument. Also, fixed two minor bugs in this area: - We were allowing non-type template parameters of type pointer to void. - We weren't patching up an expression that refers to an overloaded function set via "&f" properly. We're still not performing complete checking of the expression to be sure that it is referring to an object or function with external linkage (C++ [temp.arg.nontype]p1). llvm-svn: 64266
* BugReporter: Use llvm::raw_string_stream instead of std::ostringstream.Ted Kremenek2009-02-101-29/+25
| | | | llvm-svn: 64259
* Add private extern to pretty printer(s).Mike Stump2009-02-102-10/+12
| | | | llvm-svn: 64258
* Add another test case for the MissingDealloc checker.Ted Kremenek2009-02-101-0/+20
| | | | llvm-svn: 64257
* Add type-checking and implicit conversions for template parameters ofDouglas Gregor2009-02-105-6/+123
| | | | | | integral or enumeration type. llvm-svn: 64256
* Handle the case where EmitBlock might be called multiple times for the same ↵Anders Carlsson2009-02-102-2/+19
| | | | | | block. Fixes PR3536. llvm-svn: 64252
* This patch is all it takes to pass all objc2's fast-enumerationFariborz Jahanian2009-02-101-1/+1
| | | | | | tests in the dejagnu test suite in the nonfragile abi mode. llvm-svn: 64251
* PTH generation: Discard tokens that appear after and on the same line as ↵Ted Kremenek2009-02-101-2/+11
| | | | | | '#endif'. llvm-svn: 64250
* Bump PTH version.Ted Kremenek2009-02-101-1/+1
| | | | llvm-svn: 64249
* make -dM emit macros in a deterministic (sorted) order instead of Chris Lattner2009-02-101-2/+14
| | | | | | random hash table order, I don't like non-determinstic output. llvm-svn: 64248
* PTH generation: Don't call 'EmitToken' in the loop condition. This is ↵Ted Kremenek2009-02-101-5/+10
| | | | | | preparing for other changes within the loop. llvm-svn: 64247
* PTH: Replace ad hoc 'file name' -> 'PTH data' lookup table in the PTH file ↵Ted Kremenek2009-02-102-95/+228
| | | | | | with an on-disk chained hash table. This data structure is implemented using templates, and will be used to replace similar data structures. This change leads to no visibile performance impact on Cocoa.h, but now we only pay a price for the table on order with the number of files accessed and not the number in the PTH file. llvm-svn: 64245
* use efficient form of getSpelling, this speeds up -dM by 16%.Chris Lattner2009-02-101-1/+9
| | | | llvm-svn: 64244
* GNU allows structs with flexible array members to be placed insideDouglas Gregor2009-02-104-14/+31
| | | | | | | arrays and other structs/unions as an extension. Downgrade our error to a warning. Fixes PR3540. llvm-svn: 64239
* Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.Daniel Dunbar2009-02-101-0/+11
| | | | | | - Missed this file. llvm-svn: 64238
* Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.Daniel Dunbar2009-02-102-38/+55
| | | | llvm-svn: 64235
* Generate ir for ivar offset. This will passFariborz Jahanian2009-02-101-23/+42
| | | | | | | type-nsobject-attribute.m in the dejagnu test suite in the nonfragile abi mode. llvm-svn: 64233
* Fixup -ast-print so that:Mike Stump2009-02-103-22/+117
| | | | | | | | | | | | | | We handle indentation of decls better. We Indent extern "C" { } stuff better. We print out structure contents more often. We handle pass indentation information into the statement printer, so that nested things come out more indented. We print out FieldDecls. We print out Vars. We print out namespaces. We indent functions better. llvm-svn: 64232
* Refactor FieldDecls to be ValueDecls instead of NamedDecls.Mike Stump2009-02-103-12/+7
| | | | llvm-svn: 64231
OpenPOWER on IntegriCloud