summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Replace the call to ParseOptionalCXX0XClassVirtSpecifierSeq with code to ↵Anders Carlsson2011-03-251-5/+18
| | | | | | only parse an optional 'final' keyword. llvm-svn: 128278
* Get rid of handling of the 'explicit' keyword from class-head. We still ↵Anders Carlsson2011-03-253-26/+7
| | | | | | parse it though, although that will change shortly. llvm-svn: 128277
* Unbreak CMake build.Anders Carlsson2011-03-251-0/+1
| | | | llvm-svn: 128276
* Added some doc comments.David Chisnall2011-03-251-14/+263
| | | | llvm-svn: 128275
* Continuing work on ObjC tidyup:David Chisnall2011-03-254-449/+427
| | | | | | | | | | | | | | | | - Moved the CGObjCRuntime functions out of CGObjCMac.cpp into CGObjCRuntime.cpp - Added generic functions in CGObjCRuntime for emitting @try and @synchronize blocks, usable by any runtime that uses DWARF exceptions. - Made the GNU runtimes use these functions. It should now be possible to replace the equivalent functions in CGObjCNonFragileABIMac with simple calls to these two functions, providing the runtime functions as arguments. I'll post a diff to the list for review before making any changes to the Mac runtime stuff. llvm-svn: 128274
* Remove warnings about using override control keywords in inline function ↵Anders Carlsson2011-03-251-5/+0
| | | | | | definitions; they will be allowed in the next C++0x draft. llvm-svn: 128273
* Fix some clang warnings.Anders Carlsson2011-03-251-3/+3
| | | | llvm-svn: 128272
* Remove 'new' from virt-specifier since it's going to be removed in the next ↵Anders Carlsson2011-03-253-8/+0
| | | | | | C++0x draft llvm-svn: 128271
* Apply the nonnull attribute to constructor expressions too.Nick Lewycky2011-03-252-5/+13
| | | | llvm-svn: 128253
* Switch constant evaluation of float casts over to cast kinds.Eli Friedman2011-03-251-3/+13
| | | | llvm-svn: 128251
* Cleanup integral and vector constant evaluation of casts to use cast kinds.Eli Friedman2011-03-251-87/+105
| | | | llvm-svn: 128250
* Minor fix in the injection of labels, since we want to look at the ↵Douglas Gregor2011-03-241-1/+1
| | | | | | redeclaration context of each declaration in the identifier chain. Should fix Linux self-host llvm-svn: 128210
* Insomniac refactoring: change how the parser allocates attributes so thatJohn McCall2011-03-2413-196/+241
| | | | | | | | | AttributeLists do not accumulate over the lifetime of parsing, but are instead reused. Also make the arguments array not require a separate allocation, and make availability attributes store their stuff in augmented memory, too. llvm-svn: 128209
OpenPOWER on IntegriCloud