- Nov 22, 2010
-
-
NAKAMURA Takumi authored
llvm-svn: 119961
-
- Nov 21, 2010
-
-
Anders Carlsson authored
llvm-svn: 119946
-
- Nov 19, 2010
-
-
Argyrios Kyrtzidis authored
if (condition) CALL(0); // empty macro but don't warn for empty body. Fixes rdar://8436021. llvm-svn: 119838
-
- Nov 18, 2010
-
-
Anton Yartsev authored
llvm-svn: 119678
-
- Nov 17, 2010
-
-
Argyrios Kyrtzidis authored
llvm-svn: 119540
-
Argyrios Kyrtzidis authored
assert(a || b && "bad"); since this is safe. This way we avoid a big source of such warnings which in this case are practically useless. Note that we don't handle *all* cases where precedence wouldn't matter because of constants since this is a bit costly to check, and IMO clarifying precedence with parentheses is good for readability in general. llvm-svn: 119533
-
- Nov 16, 2010
-
-
-
Chandler Carruth authored
independent of the underlying system. Let me know if any of these are too aggressive. llvm-svn: 119345
-
Bob Wilson authored
llvm-svn: 119303
-
- Nov 11, 2010
-
-
John McCall authored
uncoerced value. Also, whitelist bool bitfields, which aren't really a truncation. llvm-svn: 118778
-
John McCall authored
rdar://problem/8652606 llvm-svn: 118773
-
John McCall authored
of the enumerators rather than the actual expressible range. This is great when dealing with opaque *values* of that type, but when computing the range of the type for purposes of converting *into* it, it produces warnings in cases we don't care about (e.g. enum_t x = 500;). Divide the logic into these two cases and use the more conservative range for targets. llvm-svn: 118735
-
- Nov 10, 2010
-
-
John McCall authored
a positive value into a signed bitfield of the exact width of the value. llvm-svn: 118657
-
John McCall authored
llvm-svn: 118649
-
John McCall authored
bitfield assignment. Implements rdar://problem/7809123 llvm-svn: 118647
-
- Nov 09, 2010
-
-
John McCall authored
own subcategory, -Wconstant-conversion, which is on by default. Tweak the constant folder to give better results in the invalid case of a negative shift amount. Implements rdar://problem/6792488 llvm-svn: 118636
-
Fariborz Jahanian authored
llvm-svn: 118635
-
Douglas Gregor authored
Wieczorek! Fixes PR8025. llvm-svn: 118481
-
- Nov 08, 2010
-
-
John McCall authored
tweak the documentation for deprecation-with-message. Provide __has_feature tests for both. rdar://problem/8605692 llvm-svn: 118435
-
- Nov 03, 2010
-
-
Anders Carlsson authored
When setting a tied check if it's already tied. If it's tied to another constraint it's invalid. Fixes PR3905. llvm-svn: 118146
-
Anders Carlsson authored
llvm-svn: 118145
-
- Oct 30, 2010
-
-
John McCall authored
of descending into the subelements. rdar://problem/8345836 llvm-svn: 117749
-
- Oct 28, 2010
-
-
John McCall authored
in the scope checker. With that done, turn an indirect goto into a protected scope into a hard error; otherwise IR generation has to start worrying about declarations not dominating their scopes, as exemplified in PR8473. If this really affects anyone, I can probably adjust this to only hard-error on possible indirect gotos into VLA scopes rather than arbitrary scopes. But we'll see how people cope with the aggressive change on the marginal feature. llvm-svn: 117539
-
- Oct 25, 2010
-
-
Douglas Gregor authored
called. Fixes another aspect of PR8314. llvm-svn: 117308
-
Douglas Gregor authored
function definition, we should still use a prototype to type-check and convert the function arguments, if such a prototype exists. Fixes PR8314. llvm-svn: 117305
-
- Oct 24, 2010
-
-
Peter Collingbourne authored
as a function argument, one of the types is a transparent union type and the other type is compatible with a union member llvm-svn: 117243
-
Marcin Swiderski authored
- Fixed subexpressions evaluation order for binary operators to match order in code generated with the compiler, - Fixed test cases for unreachable code warnings produced by Sema. llvm-svn: 117220
-
Anders Carlsson authored
llvm-svn: 117219
-
- Oct 23, 2010
-
-
Anders Carlsson authored
llvm-svn: 117184
-
John McCall authored
llvm-svn: 117182
-
- Oct 21, 2010
-
-
Ted Kremenek authored
or a 'short'. This fixes that and allows the hints to suggest 'h' modifiers for small ints. Patch by Justin Bogner! llvm-svn: 116996
-
- Oct 19, 2010
-
-
NAKAMURA Takumi authored
Although Cygwin-1.7 has _longjmp(), it would not be essential for this to distinguish Cygwin's version with <cygwin/version.h>. llvm-svn: 116783
-
- Oct 18, 2010
-
-
Francois Pichet authored
1. enum underlying type is int by default. 2. Error "enumerator value is not representable in the underlying type"is a ExtWarning llvm-svn: 116704
-
- Oct 16, 2010
-
-
Douglas Gregor authored
flexible array member, so long as the flexibility array member is either not initialized or is initialized with an empty initializer list. Fixes <rdar://problem/8540437>. llvm-svn: 116647
-
- Oct 15, 2010
-
-
Gabor Greif authored
llvm-svn: 116572
-
-
- Oct 14, 2010
-
-
Douglas Gregor authored
solely based on the names it sees, rather than actual declarations it gets. In essence, we determine the set of names that are "close enough" to the typo'd name. Then, we perform name lookup for each of those names, filtering out those that aren't actually visible, and typo-correct from the remaining results. Overall, there isn't much of a change in the behavior of typo correction here. The only test-suite change comes from the fact that we make good on our promise to require that the user type 3 characters for each 1 character corrected. The real intent behind this change is to set the stage for an optimization to typo correction (so that we don't need to deserialize all declarations in a translation unit) and future work in finding missing qualification ("'vector' isn't in scope; did you mean 'std::vector'?). Plus, the code is cleaner this way. llvm-svn: 116511
-
- Oct 12, 2010
-
-
Chris Lattner authored
llvm-svn: 116317
-
John McCall authored
require them to have complete types. llvm-svn: 116297
-
- Oct 11, 2010
-
-
Chris Lattner authored
it comes back, it will be largely a rewrite, so keeping the old codebase in tree isn't helping anyone. llvm-svn: 116191
-