- 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
-
-
-
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
-
- Jan 29, 2010
-
-
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
-
Douglas Gregor authored
to bitfields. Add it here. llvm-svn: 94832
-
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
-
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
-
Devang Patel authored
llvm-svn: 94821
-
Ted Kremenek authored
llvm-svn: 94816
-
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
-
Douglas Gregor authored
llvm-svn: 94811
-
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
-
Fariborz Jahanian authored
definition comes after where it is needed. Fixes radar 7589385. llvm-svn: 94788
-
Douglas Gregor authored
and fix-it information, so we can see everything in one place. Along the way, fix a few bugs with deserialization and query of diagnostics in CIndex. llvm-svn: 94768
-
- Jan 28, 2010
-
-
Anders Carlsson authored
llvm-svn: 94754
-
John McCall authored
to get the access bits set properly in conversion sets. llvm-svn: 94744
-
Douglas Gregor authored
so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile(). The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter. llvm-svn: 94740
-
John McCall authored
mostly because we're going to want a better diagnostic for conversions. Also this API needs to go back to sanity. llvm-svn: 94730
-
John McCall authored
llvm-svn: 94725
-
Fariborz Jahanian authored
(Radar 7583971). llvm-svn: 94724
-
- Jan 27, 2010
-
-
Daniel Dunbar authored
llvm-svn: 94685
-
Daniel Dunbar authored
llvm-svn: 94661
-
Douglas Gregor authored
sequences, where we would occasionally determine (incorrectly) that one standard conversion sequence was a proper subset of another when, in fact, they contained completely incomparable conversions. This change records the types in each step within a standard conversion sequence, so that we can check the specific comparison types to determine when one sequence is a proper subset of the other. Fixes this testcase (thanks, Anders!), which was distilled from PR6095 (also thanks to Anders). llvm-svn: 94660
-
John McCall authored
using the same framework we use for deprecation warnings. llvm-svn: 94659
-
Anders Carlsson authored
llvm-svn: 94654
-
Anders Carlsson authored
llvm-svn: 94653
-
Anders Carlsson authored
llvm-svn: 94652
-
Anders Carlsson authored
llvm-svn: 94651
-
John McCall authored
diagnostics in "early" lookups, such as during typename checks and when building unresolved lookup expressions. llvm-svn: 94647
-
Daniel Dunbar authored
defaults when targetting iPhoneOS (blocks, non-fragile ABI, stack protector). llvm-svn: 94642
-
Daniel Dunbar authored
versions to match gcc (which is matching linker changes). llvm-svn: 94640
-
Ted Kremenek authored
Teach RegionStore to handle initialization of incomplete arrays in structures using a compound value. Fixes <rdar://problem/7515938>. llvm-svn: 94622
-
- Jan 26, 2010
-
-
Mike Stump authored
to the declaring class from the nearest virtual base class. WIP. This fixes 40% of all the problems remaining in one of my testcases. llvm-svn: 94592
-
Ted Kremenek authored
Implement 'clang_getInclusions()' in CIndex. This API allows clients to walk the set of files included in a translation unit via the C API. llvm-svn: 94575
-
Sebastian Redl authored
llvm-svn: 94565
-
Douglas Gregor authored
of the tokens within a raw token stream. This does not even attempt to handle macros yet. llvm-svn: 94561
-
Anders Carlsson authored
llvm-svn: 94555
-