- Nov 06, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 86287
-
Ted Kremenek authored
llvm-svn: 86286
-
Ted Kremenek authored
Sentence-case bug type, and pull tests from region-only-test.c into misc-ps-region.store.m (removing an extra unneeded test file). Also add a bunch of FIXME comments for future enhancements. llvm-svn: 86282
-
Anders Carlsson authored
llvm-svn: 86277
-
Fariborz Jahanian authored
using elipsis conversion). llvm-svn: 86276
-
Anders Carlsson authored
llvm-svn: 86274
-
Nuno Lopes authored
llvm-svn: 86273
-
Zhongxing Xu authored
llvm-svn: 86252
-
John McCall authored
at it. llvm-svn: 86243
-
John McCall authored
* If the unsigned type is smaller than the signed type, never warn, because its value will not change when zero-extended to the larger type. * If we're testing for (in)equality, and the unsigned value is an integer constant whose sign bit is not set, never warn, because even though the signed value might change, it can't affect the result of the equality. Also make the comparison test cases much more rigorous, and have them expose the subtle differences between C and C++ here. llvm-svn: 86242
-
Douglas Gregor authored
get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. llvm-svn: 86238
-
Douglas Gregor authored
llvm-svn: 86234
-
Douglas Gregor authored
llvm-svn: 86233
-
Anders Carlsson authored
If a member variable of reference type is bound to a temporary in its member initializer it needs to be destroyed at the end of the constructor. llvm-svn: 86230
-
Anders Carlsson authored
llvm-svn: 86225
-
Anders Carlsson authored
llvm-svn: 86218
-
Mike Stump authored
class that is overridden in a base that isn't morally virtual. llvm-svn: 86217
-
Douglas Gregor authored
class type, don't perform the array-to-pointer or function-to-pointer conversions, because we may end up binding a reference to a function or array. With this change, FileCheck now passes -fsyntax-only! llvm-svn: 86211
-
Douglas Gregor authored
implicit conversion sequence, check the validity of this conversion and then perform it. llvm-svn: 86210
-
Mike Stump authored
speed up this file by not doing twice the checking. llvm-svn: 86205
-
Douglas Gregor authored
Make sure that EnumConstantDecls always get a type, even when they have type-dependent initializers. llvm-svn: 86197
-
- Nov 05, 2009
-
-
Chris Lattner authored
llvm-svn: 86177
-
Sebastian Redl authored
Make ASTContext::getIntWidth return 1 for all boolean type variations, not just for the unqualified, unaliased bool. llvm-svn: 86174
-
Douglas Gregor authored
Be a little more careful when trying to extract a TypeDecl from a enum/class/struct/union specifier; in invalid code, we may also see ClassTemplateDecls. llvm-svn: 86171
-
John Thompson authored
llvm-svn: 86167
-
Douglas Gregor authored
llvm-svn: 86166
-
Sebastian Redl authored
llvm-svn: 86165
-
Fariborz Jahanian authored
initialization before main. Fixes pr5396. llvm-svn: 86145
-
Douglas Gregor authored
always zero in this context" warning logic. Also, make the diagnostic itself more precise when referring to pointer values ("NULL" vs. "zero"). llvm-svn: 86143
-
Sebastian Redl authored
When collecting types for built-in candidates, make arrays decay to pointers. Otherwise, subscripting an array leads to no candidates at all. Fixes PR5360. llvm-svn: 86140
-
Daniel Dunbar authored
can always find the main clang site config (when invoked via CMake/Makefiles, at least). llvm-svn: 86139
-
Sebastian Redl authored
This fixes PR5048. Also fix a bug where zero-sized arrays weren't warned about when the size was unsigned. llvm-svn: 86136
-
Daniel Dunbar authored
llvm-svn: 86134
-
Douglas Gregor authored
(without complaining if it fails) to get proper semantics: reference binding with a derived-to-base conversion and the enumeration of constructors for user-defined conversions. There are probably more cases to fix, but my prior attempt at statically ensuring that complete-type checking always happens failed. Perhaps I'll try again. With this change, Clang can parse include/llvm/*.h! llvm-svn: 86129
-
John McCall authored
DiagnoseSignCompare into Sema::CheckSignCompare and call it from more places. Add some enumerator tests. These seem to expose some oddities in the types we're converting C++ enumerators to; in particular, they're converting to unsigned before int, which seems to contradict 4.5 [conv.prom] p2. Note to self: stop baiting Doug in my commit messages. llvm-svn: 86128
-
Ted Kremenek authored
llvm-svn: 86127
-
Daniel Dunbar authored
llvm-svn: 86122
-
Mike Stump authored
pointers are returned. llvm-svn: 86120
-
Mike Stump authored
llvm-svn: 86118
-
Mike Stump authored
llvm-svn: 86117
-