Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Sort cases. | Ted Kremenek | 2010-02-18 | 1 | -2/+2 | |
| | | | | llvm-svn: 96536 | |||||
* | Add 'ns_returns_not_retained' and 'cf_returns_not_retained' attributes to | Ted Kremenek | 2010-02-18 | 5 | -24/+40 | |
| | | | | | | | match 'ns_returns_retained' and 'cf_returns_retained' respectively. These are not yet hooked up to the static analyzer. llvm-svn: 96535 | |||||
* | For -Wswitch-enum warnings, be sure to look through typedefs of enum | Douglas Gregor | 2010-02-17 | 1 | -1/+1 | |
| | | | | | | types. Fixes <rdar://problem/7643909>. llvm-svn: 96531 | |||||
* | When diagnosing enumerator values outside of the range of 'int', be | Douglas Gregor | 2010-02-17 | 1 | -1/+1 | |
| | | | | | | | sure that we get the "too large" vs. "too small" part of the diagnostic correct. llvm-svn: 96524 | |||||
* | silence warning in a cleaner way | Chris Lattner | 2010-02-17 | 1 | -2/+1 | |
| | | | | llvm-svn: 96520 | |||||
* | Implement AST importing of ImplicitParamDecls, despite the sad fact | Douglas Gregor | 2010-02-17 | 1 | -0/+27 | |
| | | | | | | that we can't test it yet. llvm-svn: 96516 | |||||
* | PR5803: clang++: Treat untyped 'C' inputs as C++. | Daniel Dunbar | 2010-02-17 | 2 | -0/+27 | |
| | | | | | | | - Patch by Andrzej K. Haczewski, with a tweak by me to emit a 'deprecated' diagnostic when we do this. We'll see what zee users say. llvm-svn: 96511 | |||||
* | Patch to remove arbitrary imporation of 'self' into | Fariborz Jahanian | 2010-02-17 | 1 | -13/+0 | |
| | | | | | | | | a block without it being used. This causes over release of objects in certain runtime-senitive apps. (fixes radar 7581175). llvm-svn: 96501 | |||||
* | Did not intend to check this in. | Fariborz Jahanian | 2010-02-17 | 1 | -2/+0 | |
| | | | | llvm-svn: 96486 | |||||
* | Use proper lexcial context for newly added ivars. | Fariborz Jahanian | 2010-02-17 | 2 | -2/+4 | |
| | | | | llvm-svn: 96484 | |||||
* | Implement AST merging for Objective-C properties. | Douglas Gregor | 2010-02-17 | 1 | -1/+62 | |
| | | | | llvm-svn: 96483 | |||||
* | Make FinalOverriders handle virtual bases correctly. Unfortunately this ↵ | Anders Carlsson | 2010-02-17 | 1 | -3/+33 | |
| | | | | | | can't be tested just yet. llvm-svn: 96481 | |||||
* | Allow for declaration and use of ivars in a stand-alone | Fariborz Jahanian | 2010-02-17 | 1 | -0/+6 | |
| | | | | | | implementation (toward radar 7547942). llvm-svn: 96479 | |||||
* | AST import for Objective-C protocols | Douglas Gregor | 2010-02-17 | 1 | -1/+67 | |
| | | | | llvm-svn: 96478 | |||||
* | In symbol reaper, a variable is live if its stack frame is the parent of the | Zhongxing Xu | 2010-02-17 | 2 | -4/+20 | |
| | | | | | | | | current stack frame. When leaving a callee, remove all bindings belonging to that callee. llvm-svn: 96473 | |||||
* | For inline-based inter-procedural analysis, we will have multiple stack ↵ | Zhongxing Xu | 2010-02-17 | 1 | -9/+16 | |
| | | | | | | space regions. Use a dense map to store them. llvm-svn: 96472 | |||||
* | Add a utility method. | Zhongxing Xu | 2010-02-17 | 1 | -0/+12 | |
| | | | | llvm-svn: 96471 | |||||
* | Driver: Tweak freebsd::Link, by Roman Divacky. | Daniel Dunbar | 2010-02-17 | 1 | -2/+4 | |
| | | | | llvm-svn: 96469 | |||||
* | Handle primary bases in AddVCallOffsets. | Anders Carlsson | 2010-02-17 | 1 | -2/+9 | |
| | | | | llvm-svn: 96461 | |||||
* | Silence GCC warning by marking an assert-only variable as unused. | Chandler Carruth | 2010-02-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 96459 | |||||
* | First cut at emitting vcall offsets. | Anders Carlsson | 2010-02-17 | 1 | -3/+77 | |
| | | | | llvm-svn: 96455 | |||||
* | Do not add functions marked with the unused attribute to the list of unused ↵ | Tanya Lattner | 2010-02-17 | 1 | -1/+1 | |
| | | | | | | functions to warn about. Update test case. llvm-svn: 96452 | |||||
* | Emit complete constructors and destructors as aliases to base constructors | John McCall | 2010-02-17 | 3 | -26/+142 | |
| | | | | | | | | and destructors when the two entities are semantically identical, i.e. when the class has no virtual base classes. We only do this for linkage types for which aliases are supported, i.e. internal and external, i.e. not linkonce. llvm-svn: 96451 | |||||
* | Pass through whether a base is virtual or not. | Anders Carlsson | 2010-02-17 | 1 | -17/+26 | |
| | | | | llvm-svn: 96449 | |||||
* | Add IBAction attribute to keep the IBOutlet attribute company. | Ted Kremenek | 2010-02-17 | 5 | -7/+28 | |
| | | | | llvm-svn: 96447 | |||||
* | implement EmitVAArg. pretty much the same way other targets do. | Sanjiv Gupta | 2010-02-17 | 1 | -1/+21 | |
| | | | | llvm-svn: 96446 | |||||
* | Fix unused function warning to handle used attributes and redeclarations. ↵ | Tanya Lattner | 2010-02-17 | 1 | -0/+18 | |
| | | | | | | Update test case. llvm-svn: 96444 | |||||
* | Implement AST importing and checking for Objective-C method declarations. | Douglas Gregor | 2010-02-17 | 1 | -8/+136 | |
| | | | | llvm-svn: 96442 | |||||
* | Correctly calculate base offsets for 'this' pointer adjustments involving ↵ | Anders Carlsson | 2010-02-17 | 1 | -3/+40 | |
| | | | | | | virtual bases. This can't be tested yet due to lack of vcall offsets :) llvm-svn: 96441 | |||||
* | Revert r95939, as suggested by Alexandre Julliard from the Wine project (and | Charles Davis | 2010-02-17 | 1 | -6/+4 | |
| | | | | | | our own Chris Lattner). llvm-svn: 96431 | |||||
* | Implement AST importing of Objective-C instance variables. | Douglas Gregor | 2010-02-17 | 1 | -3/+76 | |
| | | | | | | Check superclasses when merging two Objective-C @interfaces. llvm-svn: 96420 | |||||
* | IRgen optimization: cache the value of 'this' and 'vtt' instead of | John McCall | 2010-02-16 | 4 | -25/+19 | |
| | | | | | | | | repeatedly reloading from an alloca. We still need to create the alloca for debug info purposes (although we currently create it in all cases because of some abstraction boundaries that're hard to break down). llvm-svn: 96403 | |||||
* | Distinguish two lexical blocks at the same level. | Devang Patel | 2010-02-16 | 1 | -1/+4 | |
| | | | | llvm-svn: 96397 | |||||
* | Introduce a new kind of failed result for isLvalue/isModifiableLvalue | Douglas Gregor | 2010-02-16 | 2 | -3/+39 | |
| | | | | | | | | which describes temporary objects of class type in C++. Use this to provide a more-specific, remappable diagnostic when takin the address of such a temporary. llvm-svn: 96396 | |||||
* | IRgen: Switch 'retval' to use CreateIRTemp. | Daniel Dunbar | 2010-02-16 | 1 | -2/+2 | |
| | | | | llvm-svn: 96376 | |||||
* | IRgen: Add CreateIRTemp, which creates a temporary alloca but with type ↵ | Daniel Dunbar | 2010-02-16 | 2 | -1/+18 | |
| | | | | | | converted "not-for-memory". Dunno a better name. llvm-svn: 96374 | |||||
* | IRgen: Switch EmitCompoundLiteralLValue to use CreateMemTemp. | Daniel Dunbar | 2010-02-16 | 1 | -3/+1 | |
| | | | | llvm-svn: 96373 | |||||
* | Do not try to instantiate invalid declarations. It's a recipe for | Douglas Gregor | 2010-02-16 | 1 | -0/+3 | |
| | | | | | | disaster. Fixes PR6161. llvm-svn: 96371 | |||||
* | Improve parsing and instantiation of destructor names, so that we can | Douglas Gregor | 2010-02-16 | 7 | -99/+352 | |
| | | | | | | | | | | | | | | | | | | | | | | | now cope with the destruction of types named as dependent templates, e.g., y->template Y<T>::~Y() Nominally, we implement C++0x [basic.lookup.qual]p6. However, we don't follow the letter of the standard here because that would fail to parse template<typename T, typename U> X0<T, U>::~X0() { } properly. The problem is captured in core issue 339, which gives some (but not enough!) guidance. I expect to revisit this code when the resolution of 339 is clear, and/or we start capturing better source information for DeclarationNames. Fixes PR6152. llvm-svn: 96367 | |||||
* | when a diagnostic is an extension and has no other -W flag, | Chris Lattner | 2010-02-16 | 1 | -1/+4 | |
| | | | | | | | | | | | | indicate that it was enabled with -pedantic so people know why they're getting them: $ printf "int x;" | clang -xc - -pedantic <stdin>:1:7: warning: no newline at end of file [-pedantic] int x; ^ llvm-svn: 96365 | |||||
* | dllimport and dllexport are declspec attributes, too. They're also | Charles Davis | 2010-02-16 | 2 | -80/+95 | |
| | | | | | | | | Win32-specific. Also, fix a test to use FileCheck instead of grepping LLVM IR. llvm-svn: 96364 | |||||
* | add two aliases for SSE functions we already have, fixing PR6316. | Chris Lattner | 2010-02-16 | 1 | -0/+12 | |
| | | | | llvm-svn: 96363 | |||||
* | add freebsd/ppc[64] support, patch by Nathan Whitehorn, PR6318 | Chris Lattner | 2010-02-16 | 1 | -1/+10 | |
| | | | | llvm-svn: 96362 | |||||
* | Minor rewriter cleanup and a test for a block rewriting bug. | Fariborz Jahanian | 2010-02-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 96361 | |||||
* | Handle layout of vtables for virtual bases. | Anders Carlsson | 2010-02-16 | 1 | -1/+41 | |
| | | | | llvm-svn: 96355 | |||||
* | Move some code around in preparation for virtual base vtables. | Anders Carlsson | 2010-02-16 | 1 | -9/+18 | |
| | | | | llvm-svn: 96354 | |||||
* | Fix rewriter bug when function call inside block with block parameter | Fariborz Jahanian | 2010-02-16 | 1 | -4/+41 | |
| | | | | | | causes C++ compile error (radar 7651312). llvm-svn: 96352 | |||||
* | Fix a bug where we would not emit secondary vtables for bases of a primary base. | Anders Carlsson | 2010-02-16 | 1 | -12/+29 | |
| | | | | llvm-svn: 96351 | |||||
* | Rename argument so the name reflects what it's doing. | Benjamin Kramer | 2010-02-16 | 2 | -9/+10 | |
| | | | | llvm-svn: 96342 | |||||
* | Add simpler checker to check if variables captured by a block are uninitialized. | Ted Kremenek | 2010-02-16 | 5 | -2/+123 | |
| | | | | llvm-svn: 96341 |