- Feb 23, 2011
-
-
Ted Kremenek authored
Issue AnalysisBasedWarnings as part of calling Sema::PopBlockOrFunctionScope(). No real functionality change. llvm-svn: 126287
-
Ted Kremenek authored
Update Sema::DiagRuntimeBehavior() to take an optional Stmt* to indicate the code the diagnostic is associated with. This Stmt* is unused, but we will use it shortly for pruning diagnostics associated with unreachable code. llvm-svn: 126286
-
Ted Kremenek authored
Change -Warray-bounds logic to use DiagRuntimeBehavior in preparation for using basic dataflow to suppress warnings on unreachable array bounds checks. llvm-svn: 126285
-
Richard Smith authored
Fix PR9276: We were missing the checks for auto deducing to different types in the same declaration group in the template instantiation case. llvm-svn: 126279
-
Matt Beaumont-Gay authored
mostly just shuffles various possibilities for recovery into a more straightforward order, but also unifies a couple of diagnostics. llvm-svn: 126266
-
Douglas Gregor authored
FunctionProtoTypeLoc with NULL function parameter types, which can occur in invalid code. Fixes PR9247 / <rdar://problem/9037911>. llvm-svn: 126262
-
- Feb 22, 2011
-
-
Douglas Gregor authored
array from a constant array compound literal. Fixes PR9261. llvm-svn: 126230
-
Douglas Gregor authored
enumeration types. Fixes <rdar://problem/8559831>. llvm-svn: 126183
-
Richard Smith authored
In Objective-C, there are no trailing return types, so don't produce diagnostics suggesting they are missing. llvm-svn: 126174
-
Richard Smith authored
* 'auto' was being rejected on abstract-declarators with trailing return types and on typedefs with trailing return types. 'auto' is always allowed in these cases. This was found while testing the fix for PR 9278. * A very poor diagnostic was being issued for auto (f() -> int): "return type must be 'auto', not 'auto'". This is closely related to PR 9060. * Trailing return type handling was happening slightly too late, resulting in the checks for functions returning arrays and functions returning functions being missed. llvm-svn: 126166
-
Fariborz Jahanian authored
protocols do not match with method implementation. // rdar://7076235 llvm-svn: 126162
-
Richard Smith authored
This actually rules out too much, since it also catches typedefs for pointers to functions with trailing return types: typedef auto (*F)() -> int; Fix for that (and the same issue in all abstract-declarators) to follow shortly. llvm-svn: 126153
-
- Feb 21, 2011
-
-
Chris Lattner authored
When the mismatch is due to a larger input operand that is a constant, truncate it down to the size of the output. This allows us to accept some cases in the linux kernel and elsewhere. Pedantically speaking, we generate different code than GCC, though I can't imagine how it would matter: Clang: movb $-1, %al frob %al GCC: movl $255, %eax frob %al llvm-svn: 126148
-
Chris Lattner authored
llvm-svn: 126146
-
Chris Lattner authored
llvm-svn: 126145
-
Chris Lattner authored
llvm-svn: 126143
-
Richard Smith authored
* Flag indicating 'we're parsing this auto typed variable's initializer' moved from VarDecl to Sema * Temporary template parameter list for auto deduction is now allocated on the stack. * Deduced 'auto' types are now uniqued. llvm-svn: 126139
-
John McCall authored
initializers just because they don't have a proper out-of-line definition. Such code is technically ill-formed but is too common and too unlikely to be a problem to be seriously worth worrying about. llvm-svn: 126137
-
Fariborz Jahanian authored
when doing the property default synthesis. // rdar://9027673. llvm-svn: 126128
-
John McCall authored
llvm-svn: 126116
-
John McCall authored
when checking an initialization. llvm-svn: 126115
-
Chandler Carruth authored
appropriate attribute. Add a bit more testing that finds a pretty bad regression (since ~forever) in this warning. Fix it with a nice 2 line change. =] llvm-svn: 126098
-
- Feb 20, 2011
-
-
Benjamin Kramer authored
llvm-svn: 126084
-
Daniel Dunbar authored
llvm-svn: 126073
-
Richard Smith authored
This fixes PR 8738, 9060 and 9132. llvm-svn: 126069
-
Anders Carlsson authored
Add a new ObjCExceptions member variable to LangOptions. This controls whether Objective-C exceptions are enabled or not (they are by default). llvm-svn: 126061
-
- Feb 19, 2011
-
-
Douglas Gregor authored
comparison itself is a constant expression. Fixes PR7536. llvm-svn: 126057
-
Chris Lattner authored
designators: allowing codegen when the element initializer is a constant or something else without a side effect. This unblocks enough to let process.c in the linux kernel build, PR9257. llvm-svn: 126056
-
Anders Carlsson authored
llvm-svn: 126053
-
Douglas Gregor authored
includes explicitly-specified template arguments) to a function template specialization in cases where no deduction is performed or deduction fails. Patch by Faisal Vali, fixes PR7505! llvm-svn: 126048
-
Anders Carlsson authored
llvm-svn: 126039
-
Douglas Gregor authored
current instantiation, even though we have a RecordDecl describing them. Fixes PR9255. Amusingly, I've had this patch sitting around for a month or two because it was "obviously" wrong, but hadn't gotten around to writing a test case to submit the fix :) llvm-svn: 126038
-
Douglas Gregor authored
warn about polymorphic classes (which have virtual functions) rather than dynamic classes (which are polymorphic or have virtual bases). llvm-svn: 126036
-
Douglas Gregor authored
correct and is not worth fixing. Fixes PR8396. llvm-svn: 126035
-
Argyrios Kyrtzidis authored
llvm-svn: 126021
-
John McCall authored
without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
-
Chandler Carruth authored
diagnostics. Patch by Stephen Hines. llvm-svn: 125998
-
Chandler Carruth authored
abstract class type. Patch by Stephen Hines, with a wording tweak from Doug applied by me. llvm-svn: 125996
-
Chandler Carruth authored
a non-pointer on the two sides of a conditional expression. Patch by Stephen Hines and Mihai Rusu. llvm-svn: 125995
-
Douglas Gregor authored
enumeration type, prioritize the enumeration constants and don't provide completions for any other expressions. Fixes <rdar://problem/7283668>. llvm-svn: 125991
-