- 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
-
Fariborz Jahanian authored
primary and its continuation class into error. // rdar://10142679 llvm-svn: 145255
-
Douglas Gregor authored
consider the _<width> variants as well, which we'll see if we're performing the type checking in a template instantiation where the call expression itself was originally not type-dependent. Fixes PR11411. llvm-svn: 145248
-
Nicola Gigante authored
llvm-svn: 145244
-
- Nov 27, 2011
-
-
Peter Collingbourne authored
array of objects with non-trivial destructors. PR11365. llvm-svn: 145203
-
Sebastian Redl authored
This supports single-element initializer lists for references according to DR1288, as well as creating temporaries and binding to them for other initializer lists. llvm-svn: 145186
-
- Nov 26, 2011
-
-
Nicola Gigante authored
llvm-svn: 145147
-
Abramo Bagnara authored
llvm-svn: 145146
-
- Nov 25, 2011
-
-
Francois Pichet authored
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates" works inside a friend function definition at class scope. Basically we have to look into the parent *lexical* DeclContext for friend functions at class scope. That's because calling GetParent() return the namespace or file DeclContext. This fixes all remaining cases of "Unqualified lookup into dependent bases of class templates" when parsing MFC code with clang. llvm-svn: 145127
-
- Nov 23, 2011
-
-
Richard Trieu authored
pointer mismatch. Cases covered are: initialization, assignment, and function arguments. Additional text will give the extra information about the nature of the mismatch: different classes for member functions, wrong number of parameters, different parameter type, different return type, and function qualifier mismatch. llvm-svn: 145114
-
Argyrios Kyrtzidis authored
inside an objc container that "contains" other file-level declarations. When getting the array of file-level declarations that overlap with a file region, we failed to report that the region overlaps with an objc container, if the container had other file-level declarations declared lexically inside it. Fix this by marking such declarations as "isTopLevelDeclInObjCContainer" in the AST and handling them appropriately. llvm-svn: 145109
-
Argyrios Kyrtzidis authored
llvm-svn: 145107
-
- Nov 19, 2011
-
-
Abramo Bagnara authored
llvm-svn: 144995
-
- Nov 18, 2011
-
-
Abramo Bagnara authored
llvm-svn: 144977
-
- Nov 17, 2011
-
-
David Blaikie authored
llvm-svn: 144883
-
Francois Pichet authored
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates" works inside default argument instantiation. This is a little bit tricky because during default argument instantiation the CurContext points to a CXXMethodDecl but we can't use the keyword this or have an implicit member call generated. This fixes 2 errors when parsing MFC code with clang. llvm-svn: 144881
-
- Nov 16, 2011
-
-
Abramo Bagnara authored
llvm-svn: 144850
-
Bob Wilson authored
The code for checking Neon builtin pointer argument types was assuming that there would only be one pointer argument. But, for vld2-4 builtins, the first argument is a special sret pointer where the result will be stored. So, instead of scanning all the arguments to find a pointer, have TableGen figure out the index of the pointer argument that needs checking. That's better than scanning all the arguments regardless. <rdar://problem/10448804> llvm-svn: 144834
-
Abramo Bagnara authored
llvm-svn: 144796
-
Francois Pichet authored
In Microsoft mode, make "Unqualified lookup into dependent bases of class templates" works inside static functions. llvm-svn: 144729
-
- Nov 15, 2011
-
-
Eli Friedman authored
Compute whether a class is trivial correctly for template classes with an explicitly deleted or defaulted special member. PR11387. llvm-svn: 144715
-
Abramo Bagnara authored
llvm-svn: 144700
-
Abramo Bagnara authored
llvm-svn: 144637
-
John McCall authored
'auto'. Introduce a convenience method to make this a bit easier, and use it elsewhere. llvm-svn: 144605
-
Douglas Gregor authored
at the bases of an undefined class. Fixes <rdar://problem/10438657>. llvm-svn: 144582
-
- Nov 14, 2011
-
-
Douglas Gregor authored
Objective-C classes. This has two purposes: to consistently provide "forward declaration here" notes when we hit an incomplete type, and to give LLDB a chance to complete the type. RequireCompleteType bits from Sean Callanan! llvm-svn: 144573
-
-
John McCall authored
llvm-svn: 144561
-
Argyrios Kyrtzidis authored
llvm-svn: 144520
-
- Nov 13, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 144508
-