- Jan 30, 2010
-
-
Benjamin Kramer authored
PCHReader doesn't implement classof so dyn_casting it will do really weird stuff. Use a static_cast instead. I don't know if this hack is the right fix. Doug, please take a look. llvm-svn: 94895
-
Daniel Dunbar authored
llvm-svn: 94894
-
Benjamin Kramer authored
This fixes a really nasty bug in Darwin::getDarwinArchName where we were going StringRef -> temporary std::string -> StringRef (and return the dead StringRef). The StringRefs from Triple live as long as the Triple itself, that should be long enough. Hopefully 2 of 4 MSVC buildbot failures are gone now. llvm-svn: 94892
-
Benjamin Kramer authored
- URL can go into read only memory now. - Compilers will fold away all the strstr calls. llvm-svn: 94887
-
Anton Korobeynikov authored
llvm-svn: 94879
-
Anders Carlsson authored
llvm-svn: 94874
-
-
Ted Kremenek authored
Add basic type checking of format string conversion specifiers and their arguments. Thanks to Cristian Draghici for his help with this patch! llvm-svn: 94864
-
Ted Kremenek authored
the field width and precision of a format specifier instead of just 'int'. This matches GCC, and fixes <rdar://problem/6079850>. llvm-svn: 94856
-
Ted Kremenek authored
llvm-svn: 94852
-
- Jan 29, 2010
-
-
Ted Kremenek authored
Per a suggestion from Cristian Draghici, add a method to FormatSpecifier that returns the expected type of the matching data argument. It isn't complete, but should handle several of the important cases. llvm-svn: 94851
-
Devang Patel authored
llvm-svn: 94849
-
Daniel Dunbar authored
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
-
Ted Kremenek authored
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
-
Ted Kremenek authored
- 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
-
Douglas Gregor authored
previously, we were allowing this to bind to a temporary. Now, we don't; add test-cases and improve diagnostics. llvm-svn: 94831
-
Ted Kremenek authored
llvm-svn: 94830
-
Douglas Gregor authored
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
-
Anders Carlsson authored
llvm-svn: 94824
-
Anders Carlsson authored
llvm-svn: 94823
-
Anders Carlsson authored
llvm-svn: 94819
-
Devang Patel authored
llvm-svn: 94817
-
Douglas Gregor authored
that ADL is suppressed), we need to build an UnresolvedLookupExpr. Fixes PR6063, which was hitting Boost headers pretty hard. llvm-svn: 94814
-
Daniel Dunbar authored
llvm-svn: 94812
-
Douglas Gregor authored
llvm-svn: 94811
-
Anders Carlsson authored
llvm-svn: 94800
-
Anders Carlsson authored
Add a new EmitLValueForFieldInitialization that will be used for initializing fields (and reference type fields in particular). llvm-svn: 94799
-
Anders Carlsson authored
Simplify EmitLValueForField - we can get whether the field is part of a union or not from the FieldDecl (through its DeclContext). llvm-svn: 94798
-
Daniel Dunbar authored
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
-
Ted Kremenek authored
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
-
Anders Carlsson authored
llvm-svn: 94793
-
Ted Kremenek authored
llvm-svn: 94792
-
Anders Carlsson authored
llvm-svn: 94791
-
Ted Kremenek authored
Yet another attempt to make the Linux buildbots happy. Apparently there are differences on how nested namespaces are handled... llvm-svn: 94790
-
Fariborz Jahanian authored
definition comes after where it is needed. Fixes radar 7589385. llvm-svn: 94788
-
Ted Kremenek authored
llvm-svn: 94787
-
Ted Kremenek authored
Alternate format string checking: check if the number of format specifiers exceeds the number of arguments. llvm-svn: 94785
-
Ted Kremenek authored
Move definition of FormatStringHandler::~FormatStringHandler() within namespace directives. Hopefully this will make the Linux buildbots happy. llvm-svn: 94784
-
Ted Kremenek authored
llvm-svn: 94782
-
Ted Kremenek authored
llvm-svn: 94774
-