- Dec 17, 2009
-
-
Ted Kremenek authored
llvm-svn: 91572
-
Fariborz Jahanian authored
'void *' to mimic gcc's behavior. (fixes radar 7477351). llvm-svn: 91570
-
- Dec 16, 2009
-
-
Eli Friedman authored
llvm-svn: 91563
-
Daniel Dunbar authored
llvm-svn: 91562
-
Eli Friedman authored
method overrides a pure virtual method. llvm-svn: 91558
-
Ted Kremenek authored
llvm-svn: 91557
-
Ted Kremenek authored
llvm-svn: 91553
-
Douglas Gregor authored
with a non-trivial default constructor, zero-initialize the storage and then call the default constructor. Fixes PR5800. llvm-svn: 91548
-
Fariborz Jahanian authored
instead of crashing for now. llvm-svn: 91546
-
Anders Carlsson authored
llvm-svn: 91545
-
Nuno Lopes authored
implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543
-
Douglas Gregor authored
llvm-svn: 91542
-
Nuno Lopes authored
llvm-svn: 91540
-
Nuno Lopes authored
llvm-svn: 91539
-
John McCall authored
function in a C++ call using an arbitrary call-expression type. Actually exploit this to fix the recovery implemented earlier. The diagnostic is still iffy, though. llvm-svn: 91538
-
Zhongxing Xu authored
attribute: the object type. Add initial support for visiting CXXThisExpr. Fix a bunch of 80-col violations. llvm-svn: 91535
-
John McCall authored
used as expressions). In dependent contexts, try to recover by doing a lookup in previously-dependent base classes. We get better diagnostics out, but unfortunately the recovery fails: we need to turn it into a method call expression, not a bare call expression. Thus this is still a WIP. llvm-svn: 91525
-
Anders Carlsson authored
Use GetAddrOfRTTI everywhere and remove GenerateRTTI and GenerateRTTIRef. With this change, we can now compile and link TableGen. llvm-svn: 91520
-
Anders Carlsson authored
llvm-svn: 91519
-
Douglas Gregor authored
InitializationSequence to perform the actual initialization. Also, introduced the notion of a tree of initialized entities, so that we can know where an initialization began when dealing with nested initializations (as occur when performing list initialization). This will, eventually, be useful for producing better diagnostics when list initialization fails, because we can show the path from the top-level object being initialized down to the actual subobject where initialization failed. llvm-svn: 91516
-
Anders Carlsson authored
llvm-svn: 91513
-
Ted Kremenek authored
Teach RetainSummaryManager::getSummary(FunctionDecl* FD) that 'FD->getIdentifier()' will not always return a non-null IdentifierInfo*. llvm-svn: 91512
-
Ted Kremenek authored
llvm-svn: 91511
-
Ted Kremenek authored
Teach NoReturnFunctionChecker that FunctionDecl::getIdentifier() is not guaranteed to return a non-null IdentifierInfo*. llvm-svn: 91510
-
Anders Carlsson authored
llvm-svn: 91507
-
Zhongxing Xu authored
llvm-svn: 91506
-
Douglas Gregor authored
llvm-svn: 91503
-
Ted Kremenek authored
This change was a lot bigger than I originally anticipated; among other things it requires us storing more information in the CFG to record what block-level expressions need to be evaluated as lvalues. The big change is that CFGBlocks no longer contain Stmt*'s by CFGElements. Currently CFGElements just wrap Stmt*, but they also store a bit indicating whether the block-level expression should be evalauted as an lvalue. DeclStmts involving the initialization of a reference require us treating the initialization expression as an lvalue, even though that information isn't recorded in the AST. Conceptually this change isn't that complicated, but it required bubbling up the data through the CFGBuilder, to GRCoreEngine, and eventually to GRExprEngine. The addition of CFGElement is also useful for when we want to handle more control-flow constructs or other data we want to keep in the CFG that isn't represented well with just a block of statements. In GRExprEngine, this patch introduces logic for evaluating the lvalues of references, which currently retrieves the internal "pointer value" that the reference represents. EvalLoad does a two stage load to catch null dereferences involving an invalid reference (although this could possibly be caught earlier during the initialization of a reference). Symbols are currently symbolicated using the reference type, instead of a pointer type, and special handling is required creating ElementRegions that layer on SymbolicRegions (see the changes to RegionStoreManager). Along the way, the DeadStoresChecker also silences warnings involving dead stores to references. This was the original change I introduced (which I wrote test cases for) that I realized caused GRExprEngine to crash. llvm-svn: 91501
-
Mike Stump authored
__builtin_unreachable. WIP. llvm-svn: 91499
-
Mike Stump authored
llvm-svn: 91498
-
Anders Carlsson authored
Check in a rudimentary FullExpr class that isn't used anywhere yet. Rename Action::FullExpr to Action::MakeFullExpr to avoid name clashes. llvm-svn: 91494
-
John McCall authored
standard the last time. Fixes PR5766. llvm-svn: 91493
-
Douglas Gregor authored
than using its own partial implementation of initialization. Switched CheckInitializerTypes over to InitializedEntity/InitializationKind, to help move us closer to InitializationSequence. Added InitializedEntity::getName() to retrieve the name of the entity, for diagnostics that care about such things. Implemented support for default initialization in InitializationSequence. Clean up the determination of the "source expressions" for an initialization sequence in InitializationSequence::Perform. Taught CXXConstructExpr to store more location information. llvm-svn: 91492
-
Fariborz Jahanian authored
using objective-c property. (fixes radar 7449707) llvm-svn: 91474
-
Ted Kremenek authored
Remove ValueManager::getRegionValueSymbolValOrUnknown(). It was just extra veneer on top of getRegionValueSymbolVal(). llvm-svn: 91471
-
- Dec 15, 2009
-
-
John McCall authored
This test courtesy of LLVM. llvm-svn: 91462
-
Fariborz Jahanian authored
non-existing 'isa' field of a non-existing struct type all related to legacy type definition for 'id' which we have dropped in clang in favor of a built-in type. (fixes radar 7470820). llvm-svn: 91455
-
Anders Carlsson authored
llvm-svn: 91450
-
Chris Lattner authored
on PR5610 (2.185 -> 2.130s). The big issue is that this is making insanely huge macro argument lists with over a million tokens in it. The reason that mallco and free are so expensive is that we are actually going to the kernel to get it, and switching to a bump pointer allocator won't change this in an interesting way. llvm-svn: 91449
-
Anders Carlsson authored
If a ParmVarDecl's default argument is a CXXExprWithTemporaries, return the underlying expr instead. Add getNumDefaultArgTemporaries and getDefaultArgTemporary which returns the temporaries a default arg creates. llvm-svn: 91439
-