- Jan 12, 2012
-
-
Kaelyn Uhrain authored
improvng the typo correction results in certain situations. llvm-svn: 148052
-
Fariborz Jahanian authored
list of protools. // rdar://10669694 llvm-svn: 148051
-
Kaelyn Uhrain authored
And once again improve the typo correction results in certain situations just by moving the existing checks on the correction. llvm-svn: 148037
-
Douglas Gregor authored
expression for an Objective-C object or pointer type, so that we don't attempt to treat the member name as a template. Fixes <rdar://problem/10672501>. llvm-svn: 148028
-
Argyrios Kyrtzidis authored
was constructed, e.g. for a property access. This allows the selector identifier locations machinery for ObjCMessageExpr to function correctly, in that there are not real locations to handle/report for such a message. llvm-svn: 148013
-
Eli Friedman authored
llvm-svn: 147984
-
Fariborz Jahanian authored
in class extensions and categories by recent refactoring of objc class ASTs. // rdar://1066654 llvm-svn: 147982
-
- Jan 11, 2012
-
-
Douglas Gregor authored
variably-modified type. llvm-svn: 147973
-
Kaelyn Uhrain authored
are still added if the cached correction fails validation. Also fix a copy-and-paste error in a comment from my previous commit. Finally, add an example of the benefit the typo correction callback adds to TryNamespaceTypoCorrection--which happens to also tickle the above caching problem, as the only way a non-namespace Decl would be added to the possible corrections is if it was cached as the correction for a previous instance of the same typo where the typo was corrected to a non-namespace via a different code path. llvm-svn: 147968
-
Fariborz Jahanian authored
llvm-svn: 147963
-
Kaelyn Uhrain authored
Also includes two examples of the callback: a wrapper/replacement for the CorrectTypoContext enum, and a conversion of the two calls to CorrectTypo in SemaDeclCXX.cpp (one of which provides verifiable improvement to the typo correction, as demonstrated in the added test). llvm-svn: 147962
-
Fariborz Jahanian authored
life-time to that of its backing 'ivar's lifetime. // rdar://10558871 llvm-svn: 147956
-
Douglas Gregor authored
downgrade the default-error warning to an ExtWarn in C90/99. <rdar://problem/10668057> llvm-svn: 147925
-
Eli Friedman authored
Start refactoring code for capturing variables and 'this' so that it is shared between lambda expressions and block literals. llvm-svn: 147917
-
John McCall authored
new-expressions. llvm-svn: 147900
-
- Jan 10, 2012
-
-
Douglas Gregor authored
When something goes wrong in type-checking a namespace definition, make the namespace declaration invalid llvm-svn: 147882
-
Fariborz Jahanian authored
ownership of property sent to 'super'. // rdar://10640891 llvm-svn: 147868
-
Chandler Carruth authored
llvm-svn: 147864
-
Eli Friedman authored
Implement the missing pieces of Evaluate for _Complex types. With that complete, remove some code from CGExprConstant which is no longer necessary. While I'm here, a couple minor tweaks to _Complex-in-C++. (Specifically, make _Complex types literal types, and don't warn for _Complex int.) llvm-svn: 147840
-
Eli Friedman authored
Per John's comment, it makes sense to ask isLambda on any CXXRecordDecl; make sure that's safe. Get rid of a check which is now unnecessary in Sema::getFunctionLevelDeclContext(). llvm-svn: 147837
-
Richard Smith authored
- reject definitions of enums within friend declarations - require 'enum', not 'enum class', for non-declaring references to scoped enumerations llvm-svn: 147824
-
Fariborz Jahanian authored
c++ objects with non-trivial assignment/copy functions. Also, one additional sema check. // rdar://6137845 llvm-svn: 147817
-
Eli Friedman authored
llvm-svn: 147812
-
- Jan 09, 2012
-
-
Nico Weber authored
llvm-svn: 147798
-
Douglas Gregor authored
is important because it's fairly common for headers (especially system headers) to want to provide only those typedefs needed for that particular header, based on some guard macro, e.g., #ifndef _SIZE_T #define _SIZE_T typedef long size_t; #endif which is repeated in a number of headers. The guard macro protects against duplicate definitions. However, this means that only the first occurrence of this pattern actually defines size_t, so the submodule corresponding to this header has the only visible definition. If a user then imports a different submodule from the same module, size_t will be known but not visible, and therefore cannot be used. By allowing redefinition of typedefs, each header that wants to define size_t can do so independently, so it will be available in the corresponding submodules. llvm-svn: 147775
-
Abramo Bagnara authored
llvm-svn: 147774
-
- Jan 07, 2012
-
-
Abramo Bagnara authored
llvm-svn: 147730
-
Douglas Gregor authored
to Redeclarable<NamespaceDecl>, so that we benefit from the improveed redeclaration deserialization and merging logic provided by Redeclarable<T>. Otherwise, no functionality change. As a drive-by fix, collapse the "inline" bit into the low bit of the original namespace/anonymous namespace, saving 8 bytes per NamespaceDecl on x86_64. llvm-svn: 147729
-
Eli Friedman authored
More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Actually, it's not 100% correct yet, but it's close enough for the moment.) llvm-svn: 147723
-
Eli Friedman authored
This patch (and some of my other commits related to lambdas) is heavily based off of John Freeman's work-in-progress patches. llvm-svn: 147706
-
- Jan 06, 2012
-
-
Matt Beaumont-Gay authored
Along the way, move a helper function from SemaChecking.cpp to a more accessible home in SourceManager. llvm-svn: 147692
-
Douglas Gregor authored
chain to determine whether any declaration of the given entity is visible, eliminating the redundant (and less efficient) getPreviousDeclaration() implementation. This tweak uncovered an omission in the handling of RedeclarableTemplateDecl, where we weren't making sure to search for additional redeclarations of a template in other module files. Things would be cleaner if RedeclarableTemplateDecl actually used Redeclarable. llvm-svn: 147687
-
Rafael Espindola authored
call is elidable or if the constructor is trivial instead of checking if it is user declared. llvm-svn: 147652
-
Eli Friedman authored
More lambda work. Fixes a minor bug Richard pointed out, makes lookup for lambda parameters work correctly, recording more information into the AST. llvm-svn: 147650
-
Richard Smith authored
int f(); in function scopes under -Wvexing-parse, so now we do. llvm-svn: 147649
-
Richard Smith authored
the Semantic Powers to only warn on class types (or dependent types), where the constructor or destructor could do something interesting. llvm-svn: 147642
-
Eli Friedman authored
llvm-svn: 147641
-
- Jan 05, 2012
-
-
Ted Kremenek authored
After further discussion, rename attribute 'objc_disable_automatic_synthesis' to 'objc_requires_property_definitions'. llvm-svn: 147622
-
Eli Friedman authored
Tweak the fix to PR8977: an empty expression-list represents value initialization, not default initialization. Fixes PR11712. llvm-svn: 147620
-
Eli Friedman authored
More lambda work. Tweak the Sema interface slightly. Start adding the pieces to build the lambda class and its call operator. Create an actual scope for the lambda body. llvm-svn: 147595
-