| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Driver: Don't honor -std-default for C++, this makes it hard to run the gdb test | Daniel Dunbar | 2010-01-29 | 1 | -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 string | Ted Kremenek | 2010-01-29 | 5 | -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 Wilson | 2010-01-29 | 1 | -3/+3 |
| | | | | | llvm-svn: 94835 | ||||
| * | Enhancements to the alternate (WIP) format string checking: | Ted Kremenek | 2010-01-29 | 2 | -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 Gohman | 2010-01-29 | 0 | -0/+0 |
| | | | | | llvm-svn: 94833 | ||||
| * | PR5909 had a test case for binding of const, non-volatile references | Douglas Gregor | 2010-01-29 | 1 | -0/+12 |
| | | | | | | | to bitfields. Add it here. llvm-svn: 94832 | ||||
| * | Fix reference-binding when we have a reference to const volatile type; | Douglas Gregor | 2010-01-29 | 4 | -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 Kremenek | 2010-01-29 | 1 | -1/+1 |
| | | | | | | | of '='. llvm-svn: 94830 | ||||
| * | Improve isSafeToLoadUnconditionally to recognize that GEPs with constant | Bob Wilson | 2010-01-29 | 6 | -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, which | Douglas Gregor | 2010-01-29 | 4 | -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 Yasskin | 2010-01-29 | 2 | -4/+37 |
| | | | | | llvm-svn: 94825 | ||||
| * | And yet another call. | Anders Carlsson | 2010-01-29 | 1 | -2/+8 |
| | | | | | llvm-svn: 94824 | ||||
| * | Another PerformCopyInitialization call bites the dust. | Anders Carlsson | 2010-01-29 | 1 | -4/+12 |
| | | | | | llvm-svn: 94823 | ||||
| * | Add size and location info in DW_TAG_class_type descriptor. | Devang Patel | 2010-01-29 | 1 | -1/+1 |
| | | | | | llvm-svn: 94822 | ||||
| * | New test case. | Devang Patel | 2010-01-29 | 1 | -0/+21 |
| | | | | | llvm-svn: 94821 | ||||
| * | Before inserting llvm.dbg.declare intrinsic at the end of a basic block, ↵ | Devang Patel | 2010-01-29 | 1 | -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 Carlsson | 2010-01-29 | 1 | -4/+12 |
| | | | | | llvm-svn: 94819 | ||||
| * | Maintain a map of regions (lexical scopes) and use it to find context for a ↵ | Devang Patel | 2010-01-29 | 2 | -11/+10 |
| | | | | | | | global variable. llvm-svn: 94817 | ||||
| * | Add comment to test linking it back to the original Bugzilla PR. | Ted Kremenek | 2010-01-29 | 1 | -0/+1 |
| | | | | | llvm-svn: 94816 | ||||
| * | When naming a function template via a qualified-id (or any other way | Douglas Gregor | 2010-01-29 | 2 | -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 Dunbar | 2010-01-29 | 1 | -4/+10 |
| | | | | | llvm-svn: 94813 | ||||
| * | Driver/Darwin: Fix a crash when diagnosing conflicting deployment targets. | Daniel Dunbar | 2010-01-29 | 1 | -4/+6 |
| | | | | | llvm-svn: 94812 | ||||
| * | Name mangling for cast expressions, from Matthias Schiffer! Fixes PR5876. | Douglas Gregor | 2010-01-29 | 2 | -0/+62 |
| | | | | | llvm-svn: 94811 | ||||
| * | Fix typo found by clang++. Yay for -Wuninitialized. | Benjamin Kramer | 2010-01-29 | 1 | -1/+1 |
| | | | | | llvm-svn: 94810 | ||||
| * | Fix MSVC build. | Benjamin Kramer | 2010-01-29 | 1 | -0/+1 |
| | | | | | llvm-svn: 94809 | ||||
| * | Convert some users of ftostr to raw_ostream. | Benjamin Kramer | 2010-01-29 | 2 | -9/+11 |
| | | | | | llvm-svn: 94808 | ||||
| * | Use llvm::format instead of ftostr (which just calls sprintf). | Benjamin Kramer | 2010-01-29 | 1 | -2/+1 |
| | | | | | llvm-svn: 94807 | ||||
| * | Bring driver link order in CMake into alignment with the order in the Makefile. | Chandler Carruth | 2010-01-29 | 1 | -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 Sands | 2010-01-29 | 1 | -8/+17 |
| | | | | | llvm-svn: 94805 | ||||
| * | Catch more trivial tail call opportunities: no inputs and output types match. | Evan Cheng | 2010-01-29 | 2 | -14/+42 |
| | | | | | llvm-svn: 94804 | ||||
| * | Add getters. | Anders Carlsson | 2010-01-29 | 1 | -0/+8 |
| | | | | | llvm-svn: 94803 | ||||
| * | Having RHSKnownZero and RHSKnownOne be alternative names for KnownZero and ↵ | Duncan Sands | 2010-01-29 | 1 | -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 SimplifyDemandedUseBits | Duncan Sands | 2010-01-29 | 1 | -8/+17 |
| | | | | | | | (fix for PR6165) are needed here too. llvm-svn: 94801 | ||||
| * | Use EmitLValueForFieldInitialization when synthesizing the copy ctor as well. | Anders Carlsson | 2010-01-29 | 1 | -19/+2 |
| | | | | | llvm-svn: 94800 | ||||
| * | Add a new EmitLValueForFieldInitialization that will be used for ↵ | Anders Carlsson | 2010-01-29 | 3 | -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 Carlsson | 2010-01-29 | 6 | -29/+28 |
| | | | | | | | union or not from the FieldDecl (through its DeclContext). llvm-svn: 94798 | ||||
| * | Fix linking problem on Linux. | Zhongxing Xu | 2010-01-29 | 1 | -2/+2 |
| | | | | | llvm-svn: 94797 | ||||
| * | ARM/APCS ABI: Fix some problems with bit-fields in structures. After rereading | Daniel Dunbar | 2010-01-29 | 2 | -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 Dunbar | 2010-01-29 | 1 | -6/+1 |
| | | | | | | | - Thanks Doug, who is obviously less lazy than me! llvm-svn: 94795 | ||||
| * | Alternate format string checking: issue warnings for incomplete format ↵ | Ted Kremenek | 2010-01-29 | 4 | -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::CheckReferenceType | Anders Carlsson | 2010-01-29 | 1 | -11/+10 |
| | | | | | llvm-svn: 94793 | ||||
| * | Alternate format string checking: issue a warning for invalid conversion ↵ | Ted Kremenek | 2010-01-29 | 3 | -22/+48 |
| | | | | | | | specifiers. llvm-svn: 94792 | ||||
| * | Add an CXXBindReferenceExpr (not used just yet). | Anders Carlsson | 2010-01-29 | 9 | -0/+102 |
| | | | | | llvm-svn: 94791 | ||||
| * | Yet another attempt to make the Linux buildbots happy. Apparently there are ↵ | Ted Kremenek | 2010-01-29 | 1 | -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 Carlsson | 2010-01-29 | 1 | -2/+26 |
| | | | | | | | to the cmake based project :) llvm-svn: 94789 | ||||
| * | Fixes rewriter bug rewriting byref related API where a struct | Fariborz Jahanian | 2010-01-29 | 2 | -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 Kremenek | 2010-01-29 | 1 | -0/+11 |
| | | | | | llvm-svn: 94787 | ||||
| * | Do a little magic and a little greasework to make it much more efficient | John McCall | 2010-01-29 | 5 | -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 Kremenek | 2010-01-29 | 1 | -0/+12 |
| | | | | | | | exceeds the number of arguments. llvm-svn: 94785 | ||||
| * | Move definition of FormatStringHandler::~FormatStringHandler() within ↵ | Ted Kremenek | 2010-01-29 | 1 | -1/+1 |
| | | | | | | | namespace directives. Hopefully this will make the Linux buildbots happy. llvm-svn: 94784 | ||||

