aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
AgeCommit message (Expand)Author
2010-03-20Evaluate: Fix a subtle bug in the pointer evaluator in which we would do anDaniel Dunbar
2010-02-28Support constant-evaluation of __builtin_nans* as well as the correct constantJohn McCall
2010-02-13Fix for PR6274: teach constant folding to evaluate __builtin_expect.Eli Friedman
2010-02-03Don't try to fold DeclRefExprs that point to ParmVarDecls. This had the side-...Anders Carlsson
2010-02-01In C++, an initializer on a variable doesn't necessarily mean it's the defini...Sebastian Redl
2010-01-27Change the return type of ASTContext::getDeclAlignInBytes() to CharUnits and,Ken Dyck
2010-01-23Created __builtin___NSStringMakeConstantString() builtin, which generates con...David Chisnall
2010-01-19Update and move around comments.Eric Christopher
2010-01-15Convert the type of the LValue offset variable in APValue to CharUnits, movingKen Dyck
2010-01-11Roll out ASTContext::getTypeSizeInChars(), replacing instances ofKen Dyck
2010-01-05Add Expr::EvaluateAsBooleanCondition(), which does unprincipled folding toJohn McCall
2010-01-03__builtin_object_size(ptr, type) returns -1 for type = {0,1} if there are any...Benjamin Kramer
2009-12-27Fix PointerExprEvaluator::VisitCastExpr so it doesn't misfold C++ casts whichEli Friedman
2009-12-25Remove some dead variables clang-analyzer found.Benjamin Kramer
2009-12-23Update for the intrinsic changes in llvm: the object size intrinsicEric Christopher
2009-12-11Use StringRef.getAsInteger instead of temporary string + strtol. No intended ...Benjamin Kramer
2009-12-10Clean up enum constants so that they're finally sane. Fixes PR3173 and aEli Friedman
2009-12-04Fix for PR5447: teach Evaluate to deal with floating-point conditionals.Eli Friedman
2009-12-03Add recursion guards to ice-checking and evaluation for declrefs, so weEli Friedman
2009-11-28Remove VISIBILITY_HIDDEN from lib/AST.Benjamin Kramer
2009-11-24Teach Evaluate to handle member expressions referring to enum constants andEli Friedman
2009-11-23Intercept sizeof and alignof references before they get into ASTContext metho...Sebastian Redl
2009-11-16Add constant evaluation for comma operator with floating-point operand. FixesEli Friedman
2009-11-05Added support for static variables which requireFariborz Jahanian
2009-11-03Refine volatile handling, specifically, we must have the canonicalMike Stump
2009-11-03silence a warning.Chris Lattner
2009-11-01When determining whether a reference to a static data member is anDouglas Gregor
2009-10-29Fix one more bug with __builtin_object_size.Mike Stump
2009-10-29Fix some issues Daniel pointed out.Mike Stump
2009-10-29optimize out some ifdefs.Chris Lattner
2009-10-28Implement clang support for indirect branch and address of labelChris Lattner
2009-10-28Refine __builtin_object_size. Don't try and get a size for thingsMike Stump
2009-10-27__builtin_object_size refinements. Ensure we handle expressions withMike Stump
2009-10-26__builtin_object_size refinements. Also handle stack based objects. WIP.Mike Stump
2009-10-26__builtin_object_size refinements. When we run out of object, be sureMike Stump
2009-10-26Be sure to zero-extend. And refactor.Mike Stump
2009-10-26__builtin_object_size refinements. WIP.Mike Stump
2009-10-03Ignore No-op casts when evaluating lvalue expressions. Fixes PR5122.Anders Carlsson
2009-09-24Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall
2009-09-23implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.Chris Lattner
2009-09-21Change all the Type::getAsFoo() methods to specializations of Type::getAs().John McCall
2009-09-15Codegen support for nullptr from C++0x.Anders Carlsson
2009-09-13Add utility to evaluate lvalues which are an offset relative to a stack Eli Friedman
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump
2009-08-29Get rid of mostly-unused, buggy method.Eli Friedman
2009-07-29Change uses of:Ted Kremenek
2009-07-23This patch fixes the implementations of the __has_trivial_destructorDouglas Gregor
2009-07-18Revert r75641.Anders Carlsson
2009-07-17Per offline discussion with Steve Naroff, add back Type::getAsXXXType() methodsTed Kremenek
2009-07-17Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), ...Ted Kremenek