- May 06, 2011
-
-
Alexis Hunt authored
- New isDefined() function checks for deletedness - isThisDeclarationADefinition checks for deletedness - New doesThisDeclarationHaveABody() does what isThisDeclarationADefinition() used to do - The IsDeleted bit is not propagated across redeclarations - isDeleted() now checks the canoncial declaration - New isDeletedAsWritten() does what it says on the tin. - isUserProvided() now correct (thanks Richard!) This fixes the bug that we weren't catching void foo() = delete; void foo() {} as being a redefinition. llvm-svn: 131013
-
Eli Friedman authored
Don't emit nsw flags for vector operations; there's basically no benefit, and a lot of downside (like PR9850, which is about clang's xmmintrin.h making an unexpected transformation on an expression involving _mm_add_epi32). llvm-svn: 131000
-
Eli Friedman authored
llvm-svn: 130994
-
Eli Friedman authored
Add an implementation of thunks for varargs methods. The implementation is a bit messy, but it is correct as long as the method in question doesn't use indirect gotos. A couple of possible alternative implementations are outlined in FIXME's in this patch. rdar://problem/8077308 . llvm-svn: 130993
-
Douglas Gregor authored
CXTranslationUnit_NestedMacroInstantiations, which indicates whether we want to see "nested" macro instantiations (e.g., those that occur inside other macro instantiations) within the detailed preprocessing record. Many clients (e.g., those that only care about visible tokens) don't care about this information, and in code that uses preprocessor metaprogramming, this information can have a very high cost. Addresses <rdar://problem/9389320>. llvm-svn: 130990
-
Axel Naumann authored
This enables incremental codegen, where the initializer array can be removed from the module, such that only new initializers will be emitted and run. llvm-svn: 130986
-
Joerg Sonnenberger authored
function. Extend the logic to check if the input was compiled. Use -relax-all as default only if -O0 is used for compilation. Fixes bug 9290. llvm-svn: 130983
-
Anders Carlsson authored
Warn when trying to call a pure virtual member function in a class from the class constructor/destructor. Fixes PR7966. llvm-svn: 130982
-
Joerg Sonnenberger authored
properly reflect its behavior. llvm-svn: 130981
-
Alexis Hunt authored
Explictly defaultedness is correctly reflected on the AST, but there are no changes to how that affects the definition of functions or much else really. llvm-svn: 130974
-
Alexis Hunt authored
direction and not introduce things in the wrong place three different times. llvm-svn: 130968
-
Richard Smith authored
Slight tweak to alias template error handling: don't guess that a template-id in an alias declaration was meant to be a specialization. Use a generic, but more accurate, diagnostic. llvm-svn: 130961
-
Richard Smith authored
Update www: we now mangle references to function parameters properly. Also, this is really more a decltype issue rather than a late-specified return type issue. llvm-svn: 130958
-
Fariborz Jahanian authored
// rdar://9362887 llvm-svn: 130956
-
- May 05, 2011
-
-
Richard Smith authored
llvm-svn: 130953
-
Fariborz Jahanian authored
packed attribute on the field. //rdar://9217290 llvm-svn: 130948
-
Douglas Gregor authored
libclang to emit information about resource usage after parsing, code completion, etc. llvm-svn: 130946
-
Eli Friedman authored
PR9849: Fix _mm_setr_pi32 and friends to actually work correctly. They broke with the MMX rewrite a while back. llvm-svn: 130945
-
Daniel Dunbar authored
llvm-svn: 130941
-
Fariborz Jahanian authored
blockScopeInfo's CapturesCXXThis field need get set as well. // rdar://9362021. John M. please review. llvm-svn: 130930
-
Devang Patel authored
llvm-svn: 130929
-
Douglas Gregor authored
sense). Fixes <rdar://problem/9366066> by eliminating an inconsistency between C++ overloading (which handled scoped enumerations correctly) and C binary operator type-checking (which didn't). llvm-svn: 130924
-
Douglas Gregor authored
also include methods with zero-argument selectors. Implements <rdar://problem/9048332>. llvm-svn: 130922
-
Argyrios Kyrtzidis authored
llvm-svn: 130919
-
Ted Kremenek authored
Place "incompatible pointer types assigning..." warning under a flag, allowing it to be surgically mapped to an error. llvm-svn: 130916
-
Ted Kremenek authored
Add Checker callback for running a checker at the end of processing an entire TranslationUnit. Patch by Lei Zhang. llvm-svn: 130913
-
Alexis Hunt authored
There's some unused stuff for now. llvm-svn: 130912
-
Daniel Dunbar authored
llvm-svn: 130909
-
Matt Beaumont-Gay authored
llvm-svn: 130906
-
Douglas Gregor authored
the overloading of member and non-member functions results in arity mismatches that don't fit well into our overload-printing scheme. This only happens for invalid code (which breaks the arity invariants for these cases), so just suppress the diagnostic rather than inventing anything new. Fixes <rdar://problem/9222009>. llvm-svn: 130902
-
Nick Lewycky authored
foo.pic.gcno instead of foo.gcno. llvm-svn: 130899
-
Alexis Hunt authored
llvm-svn: 130898
-
Douglas Gregor authored
that we've previously seen, both in declared methods and from previous KVC completions, to eliminate duplicates. Fixes <rdar://problem/9162207>. llvm-svn: 130890
-
Alexis Hunt authored
Increase robustness of the delegating constructor cycle detection mechanism. No more infinite loops on invalid or logic errors leading to false results. Ensure that this is maintained correctly accross serialization. llvm-svn: 130887
-
Ted Kremenek authored
ASTUnit::LoadFromASTFile(): recover the resources from an ASTReader if it crashes during PCH validation. llvm-svn: 130886
-
Douglas Gregor authored
information. Rather than looking at the declaration kind to figure out what TypeLoc to build, look at the type; it makes so much more sense. Fixes <rdar://problem/9086649>. llvm-svn: 130882
-
Matt Beaumont-Gay authored
We can use this to produce nice diagnostics (and try to fixit-and-recover) in various cases where we might see "MyFunction" instead of "MyFunction()". The changes in SemaExpr are an example of how to use isExprCallable. llvm-svn: 130878
-
- May 04, 2011
-
-
Douglas Gregor authored
template parameter of type 'bool', force the value to be zero or one. Fixes <rdar://problem/9169404>. llvm-svn: 130873
-
Bill Wendling authored
Ivar offsets for synthesized ivars are wrong, which could end up with a large number of dirty pages because of ivar fixups at runtime. When we pack all of the synthesized ivars into the same section, it limits the number of dirty pages created. Place them in the "__DATA,__objc_ivar" section. <rdar://problem/9374905> llvm-svn: 130870
-
Nick Lewycky authored
llvm-svn: 130866
-