summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* 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-312-0/+7
| | | | | | into the Clang version. llvm-svn: 128595
* Use intrinsics for Neon vmull operations. Radar 9208957.Bob Wilson2011-03-312-8/+5
| | | | 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
* Put "#pragma message ..." into its own warning (human friendly) category.Ted Kremenek2011-03-302-1/+3
| | | | llvm-svn: 128573
* Silence warnings of unkwown -Wlarger-than and -Wframe-larger-than. Fixes ↵Argyrios Kyrtzidis2011-03-301-0/+8
| | | | | | rdar://6970318. llvm-svn: 128560
* Begin reworking static analyzer support for C++ method calls. The current ↵Ted Kremenek2011-03-3011-181/+202
| | | | | | | | | | | 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-303-2/+46
| | | | | | Add a test case for synthesize ivar. // rdar://9070460 llvm-svn: 128554
* Fix IRGen issues related to using property-dot syntaxFariborz Jahanian2011-03-305-14/+90
| | | | | | 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
* Add a libstdc++-4.4 patch for C++0x to the website.Jeffrey Yasskin2011-03-292-0/+374
| | | | llvm-svn: 128498
* Robustify test string.Devang Patel2011-03-291-2/+2
| | | | llvm-svn: 128486
* CMake: removed some unnecesary conditionals from add_clang_library.Oscar Fuentes2011-03-291-15/+6
| | | | llvm-svn: 128483
* Add target triple.Devang Patel2011-03-291-1/+1
| | | | llvm-svn: 128480
* [analyzer] Checker Packages can now belong to a group. This requires llvm ↵Argyrios Kyrtzidis2011-03-292-35/+24
| | | | | | 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-293-0/+27
| | | | | | want to stop at closing '}'. llvm-svn: 128471
* Fixed build error.John Thompson2011-03-291-2/+1
| | | | llvm-svn: 128470
* Add a triple to make the test friendly on no windows platform.Francois Pichet2011-03-291-1/+1
| | | | llvm-svn: 128459
* Accept __declspec(dllimport) for function defined at class scope in ↵Francois Pichet2011-03-292-1/+16
| | | | | | | | 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-292-18/+103
| | | | | | | | | | | | | | | | | | | | | | | | 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-292-4/+35
| | | | | | | | | 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-282-0/+16
| | | | | | type-dependent expressions. Fixes rdar://9027658. llvm-svn: 128437
* Implements property of reference types. AddingFariborz Jahanian2011-03-285-19/+48
| | | | | | | 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-285-5/+11
| | | | llvm-svn: 128433
* Frontend/cc1as: Add support for -L.Daniel Dunbar2011-03-282-1/+9
| | | | llvm-svn: 128432
* refactoringAnton Yartsev2011-03-282-6/+2
| | | | llvm-svn: 128427
* Also 'self' in blocks need be handled specially.Fariborz Jahanian2011-03-282-2/+8
| | | | | | // rdar://9181463 llvm-svn: 128410
* Remove stray null from the middle of a comment. (Found because my editorEli Friedman2011-03-281-1/+1
| | | | | | was refusing to open the file.) llvm-svn: 128402
* Fix PR9572 and neighboring lurking crashers.Matt Beaumont-Gay2011-03-282-2/+28
| | | | 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
* Add my test case for r128353. I think this is the last test case to failChandler Carruth2011-03-271-0/+11
| | | | | | to be added... Sorry for the noise. llvm-svn: 128395
* Add tests for the uninitialized checks added in r128376. Also clean upChandler Carruth2011-03-271-11/+42
| | | | | | | | | | | | | | | and flesh out the existing uninitialized testing for field initializers. The tests come from Richard's original patch, but I've cleaned them up a bit and ordered them more naturally. Also, I added a test for the most simple base case: int x = x; And it turns out we miss this one! =[ That and another bad FIXME on the field initializer checking are left in the test. llvm-svn: 128394
* 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-275-7/+26
| | | | | | | | | | | | | 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-272-0/+26
| | | | | | an objc method. Fixes // rdar://9181463 llvm-svn: 128389
* Improve recovery (error + fix-it) when parsing type dependent template name ↵Francois Pichet2011-03-276-5/+57
| | | | | | | | | | | 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
OpenPOWER on IntegriCloud