summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Driver: Don't honor -std-default for C++, this makes it hard to run the gdb testDaniel Dunbar2010-01-291-2/+8
| | | | | | | | | suite with clang++ enabled. The right fix here is PR6175, although we would still have to find a different work around for the gdb test suite. llvm-svn: 94838
* Switch Sema over to using the new implementation of format stringTed Kremenek2010-01-295-283/+65
| | | | | | | | | checking. It passes all existing tests, and the diagnostics have been refined to provide better range information (we now highlight individual format specifiers) and more precise wording in the diagnostics. llvm-svn: 94837
* Use uint64_t instead of unsigned for offsets and sizes.Bob Wilson2010-01-291-3/+3
| | | | llvm-svn: 94835
* Enhancements to the alternate (WIP) format string checking:Ted Kremenek2010-01-292-2/+22
| | | | | | | | | | - Add ConversionSpecifier::consumesDataArgument() as a helper method to determine if a conversion specifier requires a matching argument. - Add support for glibc-specific '%m' conversion - Add an extra callback to HandleNull() for locations within the format specifier that have a null character llvm-svn: 94834
* Add svn:ignore properties.Dan Gohman2010-01-290-0/+0
| | | | llvm-svn: 94833
* PR5909 had a test case for binding of const, non-volatile referencesDouglas Gregor2010-01-291-0/+12
| | | | | | to bitfields. Add it here. llvm-svn: 94832
* Fix reference-binding when we have a reference to const volatile type;Douglas Gregor2010-01-294-7/+15
| | | | | | | previously, we were allowing this to bind to a temporary. Now, we don't; add test-cases and improve diagnostics. llvm-svn: 94831
* Fix subtle bug in Preprocessor::AdvanceToTokenCharacter(): use '+=' instead ↵Ted Kremenek2010-01-291-1/+1
| | | | | | of '='. llvm-svn: 94830
* Improve isSafeToLoadUnconditionally to recognize that GEPs with constantBob Wilson2010-01-296-22/+83
| | | | | | | indices are safe if the result is known to be within the bounds of the underlying object. llvm-svn: 94829
* Fix reference binding of const lvalue references to bit-fields, whichDouglas Gregor2010-01-294-3/+217
| | | | | | | | | | | | | | | | | requires a temporary. Previously, we were building an initialization sequence that bound to the bit-field as if it were a real lvalue. Note that we previously (and still) diagnose binding of non-const references to bit-fields, as we should. There's no real way to test that this code is correct, since reference binding does not *currently* have any representation in the AST. This fix should make it easier for that to happen, so I've verified this fix with... Added InitializationSequence::dump(), to print an initialization sequence for debugging purposes. llvm-svn: 94826
* Belatedly document r85295 and r85330.Jeffrey Yasskin2010-01-292-4/+37
| | | | llvm-svn: 94825
* And yet another call.Anders Carlsson2010-01-291-2/+8
| | | | llvm-svn: 94824
* Another PerformCopyInitialization call bites the dust.Anders Carlsson2010-01-291-4/+12
| | | | llvm-svn: 94823
* Add size and location info in DW_TAG_class_type descriptor.Devang Patel2010-01-291-1/+1
| | | | llvm-svn: 94822
* New test case.Devang Patel2010-01-291-0/+21
| | | | llvm-svn: 94821
* Before inserting llvm.dbg.declare intrinsic at the end of a basic block, ↵Devang Patel2010-01-291-2/+7
| | | | | | | | check whether the basic block has a terminator or not. This API is used by clang and the test case is test/CodeGen/debug-info-crash.c in clang module. llvm-svn: 94820
* Get rid of another old PerformCopyInitialization call.Anders Carlsson2010-01-291-4/+12
| | | | llvm-svn: 94819
* Maintain a map of regions (lexical scopes) and use it to find context for a ↵Devang Patel2010-01-292-11/+10
| | | | | | global variable. llvm-svn: 94817
* Add comment to test linking it back to the original Bugzilla PR.Ted Kremenek2010-01-291-0/+1
| | | | llvm-svn: 94816
* When naming a function template via a qualified-id (or any other wayDouglas Gregor2010-01-292-1/+16
| | | | | | | | that ADL is suppressed), we need to build an UnresolvedLookupExpr. Fixes PR6063, which was hitting Boost headers pretty hard. llvm-svn: 94814
* cindex/Python: Update to support _getInstantiationLocation's new offset value.Daniel Dunbar2010-01-291-4/+10
| | | | llvm-svn: 94813
* Driver/Darwin: Fix a crash when diagnosing conflicting deployment targets.Daniel Dunbar2010-01-291-4/+6
| | | | llvm-svn: 94812
* Name mangling for cast expressions, from Matthias Schiffer! Fixes PR5876.Douglas Gregor2010-01-292-0/+62
| | | | llvm-svn: 94811
* Fix typo found by clang++. Yay for -Wuninitialized.Benjamin Kramer2010-01-291-1/+1
| | | | llvm-svn: 94810
* Fix MSVC build.Benjamin Kramer2010-01-291-0/+1
| | | | llvm-svn: 94809
* Convert some users of ftostr to raw_ostream.Benjamin Kramer2010-01-292-9/+11
| | | | llvm-svn: 94808
* Use llvm::format instead of ftostr (which just calls sprintf).Benjamin Kramer2010-01-291-2/+1
| | | | llvm-svn: 94807
* Bring driver link order in CMake into alignment with the order in the Makefile.Chandler Carruth2010-01-291-2/+2
| | | | | | | This includes the fix in r94797 to reflect the new dependency of Sema on Analysis. llvm-svn: 94806
* Change the SREM case to match the logic in the IR version ComputeMaskedBits.Duncan Sands2010-01-291-8/+17
| | | | llvm-svn: 94805
* Catch more trivial tail call opportunities: no inputs and output types match.Evan Cheng2010-01-292-14/+42
| | | | llvm-svn: 94804
* Add getters.Anders Carlsson2010-01-291-0/+8
| | | | llvm-svn: 94803
* Having RHSKnownZero and RHSKnownOne be alternative names for KnownZero and ↵Duncan Sands2010-01-291-75/+69
| | | | | | | | | | | KnownOne (via APInt &RHSKnownZero = KnownZero, etc) seems dangerous and confusing to me: it is easy not to notice this, and then wonder why KnownZero/RHSKnownZero changed underneath you when you modified RHSKnownZero/KnownZero etc. So get rid of this. No intended functionality change (tested with "make check" + llvm-gcc bootstrap). llvm-svn: 94802
* It looks like the changes to the SRem logic of SimplifyDemandedUseBitsDuncan Sands2010-01-291-8/+17
| | | | | | (fix for PR6165) are needed here too. llvm-svn: 94801
* Use EmitLValueForFieldInitialization when synthesizing the copy ctor as well.Anders Carlsson2010-01-291-19/+2
| | | | llvm-svn: 94800
* Add a new EmitLValueForFieldInitialization that will be used for ↵Anders Carlsson2010-01-293-11/+27
| | | | | | initializing fields (and reference type fields in particular). llvm-svn: 94799
* Simplify EmitLValueForField - we can get whether the field is part of a ↵Anders Carlsson2010-01-296-29/+28
| | | | | | union or not from the FieldDecl (through its DeclContext). llvm-svn: 94798
* Fix linking problem on Linux.Zhongxing Xu2010-01-291-2/+2
| | | | llvm-svn: 94797
* ARM/APCS ABI: Fix some problems with bit-fields in structures. After rereadingDaniel Dunbar2010-01-292-18/+45
| | | | | | | the ABI spec, this turns out to simplify the code. We still have some annoying code which mismatches the spec with regard to empty structures. llvm-svn: 94796
* FileCheck: Switch "possible match" calculation to use StringRef::edit_distance.Daniel Dunbar2010-01-291-6/+1
| | | | | | - Thanks Doug, who is obviously less lazy than me! llvm-svn: 94795
* Alternate format string checking: issue warnings for incomplete format ↵Ted Kremenek2010-01-294-35/+46
| | | | | | | | | | specifiers. In addition, move ParseFormatString() and FormatStringHandler() from the clang::analyze_printf to the clang namespace. Hopefully this will resolve some link errors on Linux. llvm-svn: 94794
* Simplify InitListChecker::CheckReferenceTypeAnders Carlsson2010-01-291-11/+10
| | | | llvm-svn: 94793
* Alternate format string checking: issue a warning for invalid conversion ↵Ted Kremenek2010-01-293-22/+48
| | | | | | specifiers. llvm-svn: 94792
* Add an CXXBindReferenceExpr (not used just yet).Anders Carlsson2010-01-299-0/+102
| | | | llvm-svn: 94791
* Yet another attempt to make the Linux buildbots happy. Apparently there are ↵Ted Kremenek2010-01-291-4/+7
| | | | | | differences on how nested namespaces are handled... llvm-svn: 94790
* Update .xcodeproj file (Yes this is getting old and I should really switch ↵Anders Carlsson2010-01-291-2/+26
| | | | | | to the cmake based project :) llvm-svn: 94789
* Fixes rewriter bug rewriting byref related API where a structFariborz Jahanian2010-01-292-2/+11
| | | | | | definition comes after where it is needed. Fixes radar 7589385. llvm-svn: 94788
* Alternate format string checking: check for excess data arguments.Ted Kremenek2010-01-291-0/+11
| | | | llvm-svn: 94787
* Do a little magic and a little greasework to make it much more efficientJohn McCall2010-01-295-169/+193
| | | | | | | | | to cast a DeclContext down to a specific implementation class. There are still lots of calls to Decl::castFromDeclContext left, mostly arising from DeclContext::getParent(). llvm-svn: 94786
* Alternate format string checking: check if the number of format specifiers ↵Ted Kremenek2010-01-291-0/+12
| | | | | | exceeds the number of arguments. llvm-svn: 94785
* Move definition of FormatStringHandler::~FormatStringHandler() within ↵Ted Kremenek2010-01-291-1/+1
| | | | | | namespace directives. Hopefully this will make the Linux buildbots happy. llvm-svn: 94784
OpenPOWER on IntegriCloud