summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implements property of reference types. AddingFariborz Jahanian2011-03-284-17/+46
| | | | | | | an executable test to llvm test suite. // rdar://9070460. llvm-svn: 128435
* Integrated-As: Support -Wa,-L when using the integrated assembler.Daniel Dunbar2011-03-283-4/+6
| | | | llvm-svn: 128433
* refactoringAnton Yartsev2011-03-282-6/+2
| | | | llvm-svn: 128427
* Also 'self' in blocks need be handled specially.Fariborz Jahanian2011-03-281-1/+4
| | | | | | // rdar://9181463 llvm-svn: 128410
* Fix PR9572 and neighboring lurking crashers.Matt Beaumont-Gay2011-03-281-2/+13
| | | | llvm-svn: 128401
* Reduce indentation using early exits and add a couple of comments. NoChandler Carruth2011-03-271-17/+22
| | | | | | functionality changed. llvm-svn: 128396
* Convert offset parameter in LayoutPrimaryAndSecondaryVTables() to CharUnits.Ken Dyck2011-03-271-16/+16
| | | | | | No change in functionality intended. llvm-svn: 128393
* Convert VTableBuilder::MostDerivedClassOffset to CharUnits. No change inKen Dyck2011-03-271-16/+15
| | | | | | functionality intended. llvm-svn: 128392
* Convert FinalOverriders::MostDerivedClassOffset to CharUnits. No change inKen Dyck2011-03-271-5/+8
| | | | | | functionality intended. llvm-svn: 128391
* Flip the default for showing include stacks on notes to false. ThisChandler Carruth2011-03-271-4/+4
| | | | | | | | | | | | | required modifying a few tests that specifically use note include stacks to check the source manager's view of include stacks. I've simply added the flag to these tests for now, they may have to be more substantially changed if we decide to remove support for note include stacks altogether. Also, add a test for include stacks on notes that was supposed to go in with the previous commit. llvm-svn: 128390
* 'self' is objective-c's 'self' objc pointer only inFariborz Jahanian2011-03-271-0/+3
| | | | | | an objc method. Fixes // rdar://9181463 llvm-svn: 128389
* Improve recovery (error + fix-it) when parsing type dependent template name ↵Francois Pichet2011-03-272-4/+10
| | | | | | | | | | | without the "template" keyword. For example: typename C1<T>:: /*template*/ Iterator<0> pos; Also the error is downgraded to an ExtWarn in Microsoft mode. llvm-svn: 128387
* Remove a fixed FIXME comment (the base offset has already been converted toKen Dyck2011-03-271-1/+0
| | | | | | CharUnits). llvm-svn: 128386
* Convert the offset parameters of AddMethods() to CharUnits. No change inKen Dyck2011-03-271-17/+15
| | | | | | functionality intended. llvm-svn: 128385
* Convert the BaseOffsetInLayoutClass parameter of ComputeThisAdjustment() toKen Dyck2011-03-271-9/+8
| | | | | | CharUnits. No change in functionality intended. llvm-svn: 128384
* Convert offset members in MethodInfo to CharUnits. No change inKen Dyck2011-03-271-14/+17
| | | | | | functionality intended. llvm-svn: 128383
* AltiVec vector comparison logic now affect only vectors of fundamental ↵Anton Yartsev2011-03-272-5/+9
| | | | | | AltiVec vector types. It fixes bug 9347. llvm-svn: 128381
* Diagnose uninitialized uses of a variable within its own initializer.Chandler Carruth2011-03-271-1/+44
| | | | | | | | | | | This is basically the same idea as the warning on uninitialized uses of fields within an initializer list. As such, it is on by default and under -Wuninitialized. Original patch by Richard Trieu, with some massaging from me on the wording and grouping of the diagnostics. llvm-svn: 128376
* supported: AltiVec vector initialization with a single literal according to ↵Anton Yartsev2011-03-273-16/+78
| | | | | | PIM section 2.5.1 - after initialization all elements have the value specified by the literal llvm-svn: 128375
* We were emitting construction v-tables with internal linkage all the time.John McCall2011-03-274-7/+25
| | | | | | | | | | | | | | | Emit them instead with the linkage of the VTT. I'm actually really ambivalent about this; it's what GCC does, but outside of improving code size (if the linkage is coalescing), I'm not sure it's at all relevant. Construction vtables are naturally referenced only by the VTT, which is itself only referenced by complete-object constructors and destructors; giving the construction vtables possibly-external linkage is important if you have an optimization that drills through the VTT to a reference to a particular construction vtable which it cannot just emit itself. llvm-svn: 128374
* Add an option to suppress include stack printing on note diagnostics.Chandler Carruth2011-03-273-10/+32
| | | | | | | | | | | | | | | | | | These stacks are often less important than those on primary diagnostics. As the number of notes grows, this becomes increasingly important. The include stack printing is clever and doesn't print stacks for adjacent diagnostics from the same file, but when a note is in between a sequence of errors in a header file, and the notes all refer to some other file, we end up getting a worst-case ping-pong of include stacks that take up a great deal of vertical space. Still, for now, the default behavior isn't changed. We can evaluate user feedback with the flag. Patch by Richard Trieu, a couple of style tweaks from me. llvm-svn: 128371
* Add -f[no-]strict-overflow to the Clang driver. Use it to set theChandler Carruth2011-03-271-1/+11
| | | | | | | | | default for -fwrapv if that flag isn't specified explicitly. We always prefer an explict setting of -fwrapv when present. Also adds support for -fno-wrapv to allow disabling -fwrapv even when -fno-strict-overflow is passed. llvm-svn: 128353
* Improve -Wheader-hygiene to warn about using directives inside linkageDouglas Gregor2011-03-261-1/+14
| | | | | | specifications within the global scope, from Elliot Glaysher. llvm-svn: 128352
* More coherent diagnostic attempting to assign to a member of a const object ↵Fariborz Jahanian2011-03-262-2/+25
| | | | | | | | returned from an objective-c message: // rdar://9005189 llvm-svn: 128348
* For Diagnostic::Reset() also reset the state related to #pragma diagnostic. ↵Argyrios Kyrtzidis2011-03-261-5/+10
| | | | | | Fixes rdar://9170766. llvm-svn: 128346
* fix the second part of rdar://8366474 - clang fails to parse ObjC selectors ↵Chris Lattner2011-03-261-2/+2
| | | | | | with '::', when :: isn't the first part of the selector. llvm-svn: 128344
* Don't add a symbolic region for 'this' if the member function is static.Anders Carlsson2011-03-261-6/+9
| | | | llvm-svn: 128340
* Make helpers static.Benjamin Kramer2011-03-264-7/+8
| | | | llvm-svn: 128339
* Add a __has_feature check for the 'availability' attributeDouglas Gregor2011-03-261-0/+1
| | | | llvm-svn: 128337
* On Mac OS X, the presence of an 'availability' attribute for thatDouglas Gregor2011-03-264-57/+73
| | | | | | | | | platform implies default visibility. To achieve these, refactor our lookup of explicit visibility so that we search for both an explicit VisibilityAttr and an appropriate AvailabilityAttr, favoring the VisibilityAttr if it is present. llvm-svn: 128336
* Reformatted doc comments so that they are now difficult to edit in any ↵David Chisnall2011-03-261-339/+186
| | | | | | editor that doesn't have explicit doxygen support, as per LLVM style guidelines. llvm-svn: 128335
* Extend the new 'availability' attribute with support for anDouglas Gregor2011-03-264-3/+54
| | | | | | | 'unavailable' argument, which specifies that the declaration to which the attribute appertains is unavailable on that platform. llvm-svn: 128329
* Allow GC qualifiers to be added/removed by conversions from/to void*John McCall2011-03-261-0/+6
| | | | | | without a warning. llvm-svn: 128328
* Don't warn about the 'extern' in 'extern "C"' on a tag decl. This isJohn McCall2011-03-261-2/+7
| | | | | | usually useless, but not always. llvm-svn: 128326
* Fix the recovery from missing semis on @property declarations to not consumeJohn McCall2011-03-261-2/+1
| | | | | | | | the following '@'. Conceivably, we could skip tokens until something that can validly start an @interface declaration here, but it's not clear that it matters. llvm-svn: 128325
* Properly move attributes to the decl spec when applying them there.John McCall2011-03-261-4/+21
| | | | llvm-svn: 128324
* Convert the OffsetInLayoutClass parameter ofKen Dyck2011-03-261-8/+8
| | | | | | | FinalOverriders::ComputeBaseOffsets() to CharUnits. No change in functionality intended. llvm-svn: 128323
* Convert FinalOverriders::Offset to CharUnits. No change in functionalityKen Dyck2011-03-261-8/+8
| | | | | | intended. llvm-svn: 128321
* Convert offset in MethodBaseOffsetPairTy to CharUnits. No change inKen Dyck2011-03-261-9/+8
| | | | | | functionality intended. llvm-svn: 128318
* Convert the offsets in SubobjectOffsetMapTy to CharUnits. No change inKen Dyck2011-03-261-8/+8
| | | | | | functionality intended. llvm-svn: 128317
* Convert several local variables to CharUnits. No change in functionalityKen Dyck2011-03-261-45/+39
| | | | | | intended. llvm-svn: 128315
* Tweak grammar in checker description.Ted Kremenek2011-03-261-1/+1
| | | | llvm-svn: 128310
* Provide blockDecl's startLoc to startFunction. This fixes hidden bug exposed ↵Devang Patel2011-03-251-1/+1
| | | | | | by recent code gen changes. This is tested by global-blocks-lines.exp in gdb testsuite. llvm-svn: 128303
* Obj-C/NeXT: Update and reapply 108847, now that changes are more baked.Daniel Dunbar2011-03-251-5/+15
| | | | llvm-svn: 128300
* Silly mistake in integer constant folding cleanup.Eli Friedman2011-03-251-1/+1
| | | | llvm-svn: 128297
* Driver/Darwin: Dsymutil actions should put the dSYM adjacent to the output file.Daniel Dunbar2011-03-251-1/+7
| | | | llvm-svn: 128292
* Refactor CGObjCMac to use the shared code for EH stuff.David Chisnall2011-03-251-154/+7
| | | | | | Sanity checked by John McCall. llvm-svn: 128287
* we can now claim to fully support the override control feature in C++0x.Anders Carlsson2011-03-251-0/+1
| | | | llvm-svn: 128281
* Fixup comments.Anders Carlsson2011-03-252-5/+4
| | | | llvm-svn: 128280
* Remove the last of ClassVirtSpecifiers.Anders Carlsson2011-03-252-80/+14
| | | | llvm-svn: 128279
OpenPOWER on IntegriCloud