summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Convert the return value ofKen Dyck2011-03-311-11/+11
| | | | | | | VCallAndVBaseOffsetBuilder::getCurrentOffsetOffset() to CharUnits. No change in functionality intended. llvm-svn: 128603
* Convert the OffsetInLayoutClass parameter ofKen Dyck2011-03-311-9/+10
| | | | | | | VCallAndVBaseOffsetBuilder::AddVBaseOffsets() to CharUnits. No change in functionality intended. llvm-svn: 128600
* Change Clang's __VERSION__ to include the same basic info as in clang -v.Daniel Dunbar2011-03-312-1/+19
| | | | | | - Please never ever ever ever write a tool that sniffs this. llvm-svn: 128599
* Convert the OffsetInLayoutClass of the VCallAndVBaseOffsetBuilderKen Dyck2011-03-311-6/+6
| | | | | | constructor to CharUnits. No change in functionality intended. llvm-svn: 128598
* Convert the RealBaseOffset parameter ofKen Dyck2011-03-311-5/+6
| | | | | | | VCallAndVBaseOffsetBuilder::AddVCallAndVBaseOffsets() to CharUnits. No change in functionality intended. llvm-svn: 128596
* Basic: Add support for a build variable to set the repository path that goesDaniel Dunbar2011-03-311-0/+4
| | | | | | into the Clang version. llvm-svn: 128595
* Use intrinsics for Neon vmull operations. Radar 9208957.Bob Wilson2011-03-311-3/+3
| | | | llvm-svn: 128590
* Add '#ifndef _PTRDIFF_T' guard around definition of ptrdiff_t. Fixes ↵Ted Kremenek2011-03-301-0/+3
| | | | | | <rdar://problem/9210154>. llvm-svn: 128578
* Begin reworking static analyzer support for C++ method calls. The current ↵Ted Kremenek2011-03-306-164/+174
| | | | | | | | | | | logic was divorced from how we process ordinary function calls, had a tremendous about of redundancy, and relied strictly on inlining behavior (which was incomplete) to provide semantics instead of falling back to the conservative analysis we use for C functions. This is a significant step into making C++ analyzer support more useful. llvm-svn: 128557
* de-sugared when accessing property reference type.Fariborz Jahanian2011-03-302-2/+2
| | | | | | Add a test case for synthesize ivar. // rdar://9070460 llvm-svn: 128554
* Fix IRGen issues related to using property-dot syntaxFariborz Jahanian2011-03-303-14/+23
| | | | | | for prperty reference types. // rdar://9208606. llvm-svn: 128551
* Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad2011-03-3012-45/+24
| | | | | | PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128538
* (Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad2011-03-303-0/+7
| | | | llvm-svn: 128534
* Convert the offset parameter ofKen Dyck2011-03-301-4/+4
| | | | | | | VCallAndVBaseOffsetBuilder::AddVCallOffsets() to CharUnits. No change in functionality intended. llvm-svn: 128531
* Convert local offset variable to CharUnits in AddVCallOffsets. No change inKen Dyck2011-03-301-4/+4
| | | | | | functionality intended. llvm-svn: 128522
* Convert a local offset variable to CharUnits. No change in functionalityKen Dyck2011-03-301-3/+3
| | | | | | intended. llvm-svn: 128521
* Convert the OffsetInLayoutClass parameter of DeterminePrimaryVirtualBases()Ken Dyck2011-03-301-9/+9
| | | | | | to CharUnits. No change in functionality intended. llvm-svn: 128520
* Convert the OffsetInLayoutClass parameter of LayoutSecondaryVTables toKen Dyck2011-03-301-8/+6
| | | | | | CharUnits. No change in functionality intended. llvm-svn: 128516
* Fix in r128471 is very broad. Some of the unconditional branches need line ↵Devang Patel2011-03-302-3/+9
| | | | | | | | number information for better user experience. Restrict the fix. This fixes break.exp failures from gdb testsuite. llvm-svn: 128513
* [analyzer] Allow all checkers of a group to be enabled.Argyrios Kyrtzidis2011-03-291-2/+3
| | | | llvm-svn: 128512
* [analyzer] For -analyzer-checker-help show all the info about groups, ↵Argyrios Kyrtzidis2011-03-293-8/+110
| | | | | | packages, and which packages/checkers are hidden. llvm-svn: 128511
* [analyzer] Checker Packages can now belong to a group. This requires llvm ↵Argyrios Kyrtzidis2011-03-291-30/+18
| | | | | | commit r128474. llvm-svn: 128475
* Fix an unused variable warning in release builds and make theChandler Carruth2011-03-291-3/+3
| | | | | | assert-less codepath marginally more efficient. llvm-svn: 128472
* Do not line number entry for unconditional branches. Usually, users do not ↵Devang Patel2011-03-291-0/+3
| | | | | | want to stop at closing '}'. llvm-svn: 128471
* Accept __declspec(dllimport) for function defined at class scope in ↵Francois Pichet2011-03-291-1/+3
| | | | | | | | Microsoft mode. This fixes a bunch of errors when compiling MSVC header files with the -DDLL flag. llvm-svn: 128457
* Fix a bug in how we were resolving the address of overloaded functionsChandler Carruth2011-03-291-17/+38
| | | | | | | | | | | | | | | | | | | | | | | | when the resolution took place due to a single template specialization being named with an explicit template argument list. In this case, the "resolution" doesn't take into account the target type at all, and therefore can take place for functions, static member functions, and *non-static* member functions. The latter weren't being properly checked and their proper form enforced in this scenario. We now do so. The result of this last form slipping through was some confusing logic in IsStandardConversion handling of these resolved address-of expressions which eventually exploded in an assert. Simplify this logic a bit and add some more aggressive asserts to catch improperly formed expressions getting into this routine. Finally add systematic testing of member functions, both static and non-static, in the various forms they can take. One of these is essentially PR9563, and this commit fixes the crash in that PR. However, the diagnostics for this are still pretty terrible. We at least are now accepting the correct constructs and rejecting the invalid ones rather than accepting invalid or crashing as before. llvm-svn: 128456
* Add workaround for Sema issue found in <rdar://problem/9188004>, which leads ↵Ted Kremenek2011-03-291-3/+13
| | | | | | | | | to an assertion failure in the uninitialized variables analysis. The problem is that Sema isn't properly registering a variable in a DeclContext (which -Wuninitialized relies on), but my expertise on the template instantiation logic isn't good enough to fix this problem for real. This patch worksaround the problem in -Wuninitialized, but we should fix it for real later. llvm-svn: 128443
* Don't do the checks of Sema::DiagnoseEqualityWithExtraParens() on ↵Argyrios Kyrtzidis2011-03-281-0/+3
| | | | | | type-dependent expressions. Fixes rdar://9027658. llvm-svn: 128437
* 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
OpenPOWER on IntegriCloud