summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Make ChainedIncludesSource an ExternalSemaSource, otherwise initialization ↵Sebastian Redl2011-03-312-1/+16
| | | | | | of the ASTReader is incomplete, leading to errors like not realizing std::type_info is already defined. llvm-svn: 128664
* Tell the diagnostic client about starting and ending source files when ↵Sebastian Redl2011-03-311-0/+3
| | | | | | automatically creating chained PCHs. This way, we don't get a crash whenever a diagnostic is emitted while processing the include. llvm-svn: 128663
* Driver/Darwin: Tweak link logic for simulator.Daniel Dunbar2011-03-312-1/+14
| | | | llvm-svn: 128641
* Whoops.John McCall2011-03-311-2/+2
| | | | llvm-svn: 128621
* After much contemplation, I've decided that we probably shouldn't "unique"John McCall2011-03-313-165/+247
| | | | | | | | | | | | | __block object copy/dispose helpers for C++ objects with those for different variables with completely different semantics simply because they happen to both be no more aligned than a pointer. Found by inspection. Also, internalize most of the helper generation logic within CGBlocks.cpp, and refactor it to fit my peculiar aesthetic sense. llvm-svn: 128618
* Static analyzer: fix bug in handling of dynamic_cast<>. The sink node ↵Ted Kremenek2011-03-311-97/+86
| | | | | | | | wouldn't always be the final node, thus causing the state to continue propagating. Instead, recover some path-sensitivity by conjuring a symbol. llvm-svn: 128612
* Teach static analyzer about the basics of handling new[]. We still don't ↵Ted Kremenek2011-03-311-9/+12
| | | | | | simulate constructors, but at least the analyzer doesn't think the return value is uninitialized. llvm-svn: 128611
* Move all the significant __block code into CGBlocks.cpp. No functionalityJohn McCall2011-03-313-187/+215
| | | | | | change. llvm-svn: 128608
* Oops, prefer C-style cast hereMatt Beaumont-Gay2011-03-311-1/+1
| | | | llvm-svn: 128607
* Remove a redundant isValid() checkMatt Beaumont-Gay2011-03-311-1/+1
| | | | llvm-svn: 128606
* Silence GCC warning about differing types on the branches of a conditional ↵Matt Beaumont-Gay2011-03-311-1/+1
| | | | | | expression llvm-svn: 128605
* 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
OpenPOWER on IntegriCloud