- Dec 08, 2011
-
-
David Blaikie authored
llvm-svn: 146155
-
Hans Wennborg authored
they are treated as errors. Doing typo correction when these are just warnings slows down the compilation of source which deliberately uses implicit function declarations. llvm-svn: 146153
-
- Dec 07, 2011
-
-
Hans Wennborg authored
in addition to underlying type. For example, the warning for printf("%zu", 42.0); changes from "conversion specifies type 'unsigned long'" to "conversion specifies type 'size_t' (aka 'unsigned long')" (This is a second attempt after r145697, which got reverted.) llvm-svn: 146032
-
Richard Smith authored
bound to not have side effects(!). Add constant-folding support for expressions of void type, to ensure that we can still fold ((void)0, 1) as an array bound. llvm-svn: 146000
-
Fariborz Jahanian authored
methods with these attributes are sent to receivers of 'id' type too. // rdar://10459930 llvm-svn: 145999
-
- Dec 06, 2011
-
-
Hans Wennborg authored
A mistyped function call becomes an inmplicit function declaration in C. Suggest typo correction when one can be found. llvm-svn: 145930
-
Erik Verbruggen authored
Fixes PR2709. llvm-svn: 145928
-
Richard Trieu authored
in the following code: void test4(bool (&x)(void)) { while (x); } llvm-svn: 145918
-
Eli Friedman authored
llvm-svn: 145874
-
Fariborz Jahanian authored
attributes don't match its declaration. // rdar://10529259. llvm-svn: 145872
-
- Dec 05, 2011
-
-
Lang Hames authored
methods) to bool. E.g. void foo() {} if (f) { ... // <- Warns here. } Only applies to non-weak functions, and does not apply if the function address is taken explicitly with the addr-of operator. llvm-svn: 145849
-
- Dec 04, 2011
-
-
David Blaikie authored
llvm-svn: 145785
-
Fariborz Jahanian authored
Function or array lvalue conversions happens. llvm-svn: 145782
-
- Dec 03, 2011
-
-
Douglas Gregor authored
a class is marked 'final', from Alberto Ganesh Barbati! Fixes PR11462. llvm-svn: 145775
-
Fariborz Jahanian authored
inferred from return types. All the return statements have to agree about the type. // rdar://10466373 llvm-svn: 145774
-
Francois Pichet authored
In Microsoft mode, don't perform typo correction in a template member function dependent context because it interferes with the "lookup into dependent bases of class templates" feature. Basically typo correction will try to offer a correction instead of looking into type dependent base classes. I found this problem while parsing Microsoft ATL code with clang. llvm-svn: 145772
-
Sebastian Redl authored
llvm-svn: 145769
-
Douglas Gregor authored
implicit ImportDecl in the translation unit to record the presence of the import. llvm-svn: 145727
-
Douglas Gregor authored
__import_module__ std.vector; in the AST. llvm-svn: 145725
-
Nick Lewycky authored
lib/Analysis to lib/Sema which is cyclical. llvm-svn: 145724
-
- Dec 02, 2011
-
-
Douglas Gregor authored
llvm-svn: 145700
-
Hans Wennborg authored
For example, the warning for printf("%zu", 42.0); changes from "conversion specifies type 'unsigned long'" to "conversion specifies type 'size_t' (aka 'unsigned long')" llvm-svn: 145697
-
Douglas Gregor authored
within module maps, which will (eventually) be used to re-export a module from another module. There are still some pieces missing, however. llvm-svn: 145665
-
- Dec 01, 2011
-
-
Douglas Gregor authored
(sub)module, all of the names may be hidden, just the macro names may be exposed (for example, after the preprocessor has seen the import of the module but the parser has not), or all of the names may be exposed. Importing a module makes its names, and the names in any of its non-explicit submodules, visible to name lookup (transitively). This commit only introduces the notion of name visible and marks modules and submodules as visible when they are imported. The actual name-hiding logic in the AST reader will follow (along with test cases). llvm-svn: 145586
-
Douglas Gregor authored
typo-correct to ourselves. llvm-svn: 145583
-
Douglas Gregor authored
force the unknown any type to "id" so that the message send can be completed without requiring a case. Fixes <rdar://problem/10506646>. llvm-svn: 145552
-
Ted Kremenek authored
Specially whitelist the selector 'addOperationWithBlock:' for the retain-cycle checking in -Warc-retain-cycles. This commonly is hit by users using NSOperationQueue. Fixes <rdar://problem/10465721>. llvm-svn: 145548
-
Ted Kremenek authored
explicit template specializations (which represent actual functions somebody wrote). Along the way, refactor some other code which similarly cares about whether or not they are looking at a template instantiation. llvm-svn: 145547
-
Douglas Gregor authored
library, since modules cut across all of the libraries. Rename serialization::Module to serialization::ModuleFile to side-step the annoying naming conflict. Prune a bunch of ModuleMap.h includes that are no longer needed (most files only needed the Module type). llvm-svn: 145538
-
- Nov 30, 2011
-
-
Ted Kremenek authored
Don't run -Wunreachable-code on template instantiations. Different instantiations may produce different unreachable code results, and it is very difficult for us to prove that ALL instantiations of a template have specific unreachable code. If we come up with a better solution, then we can revisit this, but this approach will at least greatly reduce the noise of this warning for code that makes use of templates. llvm-svn: 145520
-
John McCall authored
really bad way to go about this, but I'm not sure there's a better choice without substantial changes to TreeTransform --- most notably, preserving implicit semantic nodes instead of discarding and rebuilding them. llvm-svn: 145480
-
Douglas Gregor authored
top-level module name to a module path (e.g., std.vector). We're still missing a number of pieces for this actually to do something. llvm-svn: 145462
-
- Nov 29, 2011
-
-
Richard Smith authored
for some cast expressions. Original commit message: Removed useless ImplicitCast nodes in explicit cstyle and static casts llvm-svn: 145447
-
Matt Beaumont-Gay authored
a 1-length character array. llvm-svn: 145445
-
Lang Hames authored
Test isa<FunctionDecl> to exclude objective-C methods. This ensures the following cast will never fail. llvm-svn: 145441
-
Matt Beaumont-Gay authored
llvm-svn: 145421
-
Fariborz Jahanian authored
// rdar://10453342 llvm-svn: 145358
-
- Nov 28, 2011
-
-
Douglas Gregor authored
when computing the exception specification of a copy or move constructor, ignore non-static data member initializers. Fixes PR11418 / <rdar://problem/10478642>. llvm-svn: 145269
-
Fariborz Jahanian authored
llvm-svn: 145266
-
Fariborz Jahanian authored
whose enum has been made deprecated/unavailable in the warning. // rdar://10201690 llvm-svn: 145264
-