- Jul 22, 2011
-
-
John McCall authored
where it belongs. llvm-svn: 135746
-
John McCall authored
methods, including indirectly overridden methods like those declared in protocols and categories. There are mismatches that we would like to diagnose but aren't yet, but this is fine for now. I looked at approaches that avoided doing this lookup unless we needed it, but the infer-related-result-type checks were doing it anyway, so I left it with the same fast-path check for no previous declartions of that selector. llvm-svn: 135743
-
Jordy Rose authored
This was previously not-const only because it has to lazily construct a chain of ivars the first time it is called (and after the chain is invalidated). In practice, all the clients were just const_casting their const Decls; all those now-unnecessary const_casts have been removed. llvm-svn: 135741
-
Fariborz Jahanian authored
objective-c: Any use of @synthesize or @dynamic lexically after a method (or C function) implementation will be rejected with a compilation error in ARC mode, and a compiler warning otherwise. This may cause breakage in non-arc (and arc) tests which don't expect warning/error. Feel free to fix the tests, or reverse the patch, if I am unavailable. // rdar://9818354 - WIP llvm-svn: 135740
-
- Jul 21, 2011
-
-
Fariborz Jahanian authored
// rdar://9615045 llvm-svn: 135685
-
Fariborz Jahanian authored
a warning flag. // rdar://9615045 llvm-svn: 135681
-
Eric Christopher authored
llvm-svn: 135668
-
Ted Kremenek authored
llvm-svn: 135666
-
Richard Trieu authored
Remove warning for conditional operands of differend signedness from -Wsign-compare. Cases that previously warn on this will have a different warning emitted from -Wsign-conversion. llvm-svn: 135664
-
Douglas Gregor authored
Connor Wakamo! llvm-svn: 135651
-
Alexis Hunt authored
access specifier as public. llvm-svn: 135649
-
Anna Zaks authored
Addressing code review comments for commit 135509 - Add FixItHints in case a C++ function call is missing * or & operators on llvm-svn: 135643
-
Fariborz Jahanian authored
// pr10411 llvm-svn: 135638
-
- Jul 20, 2011
-
-
Fariborz Jahanian authored
fails because of lifetime differences of parameter and argument type. // rdar://9790531 llvm-svn: 135593
-
Chris Lattner authored
some common llvm types: stringref and smallvector. This cleans up the codebase quite a bit. llvm-svn: 135576
-
Richard Smith authored
llvm-svn: 135543
-
- Jul 19, 2011
-
-
Anna Zaks authored
Add FixItHints in case a C++ function call is missing * or & operators on one/several of it's parameters (addresses http://llvm.org/PR5941). llvm-svn: 135509
-
Ted Kremenek authored
This is accomplished by forcing the needed expressions for -Wuninitialized to always be CFGElements in the CFG. This allows us to remove a fair amount of the code for -Wuninitialized. Some fallout: - AnalysisBasedWarnings.cpp now specifically toggles the CFGBuilder to create a CFG that is suitable for -Wuninitialized. This is a layering violation, since the logic for -Wuninitialized is in libAnalysis. This can be fixed with the proper refactoring. - Some of the source locations for -Wunreachable-code warnings have shifted. While not ideal, this is okay because that analysis already needs some serious reworking. llvm-svn: 135480
-
- Jul 18, 2011
-
-
Chris Lattner authored
ShadowMapEntry was. llvm-svn: 135368
-
- Jul 16, 2011
-
-
Benjamin Kramer authored
Zero this struct in a way that neither depends on the size of the struct nor triggers warnings from GCC. llvm-svn: 135351
-
Fariborz Jahanian authored
llvm-svn: 135348
-
Fariborz Jahanian authored
llvm-svn: 135328
-
Tanya Lattner authored
Test cases provided by Anton Lokhmot. llvm-svn: 135322
-
- Jul 15, 2011
-
-
Jeffrey Yasskin authored
convertToInt(integerParts*) and make them more reliable. llvm-svn: 135279
-
Douglas Gregor authored
llvm-svn: 135275
-
Douglas Gregor authored
attributes. Fixes <rdar://problem/9561076>. llvm-svn: 135273
-
John McCall authored
which is required given the current setup for template argument deduction substitution validation, and add a test case to make sure we don't break it in the future. llvm-svn: 135262
-
John McCall authored
to represent a fully-substituted non-type template parameter. This should improve source fidelity, as well as being generically useful for diagnostics and such. llvm-svn: 135243
-
Richard Trieu authored
Remove warnings of constant operands of logical operators from template instantiations. Upon instantiation of template, value-dependent parameters are replaced by equivalent literals, so code like: template<unsigned int A, unsigned int B> struct S { int foo() { int x = A && B; } } will not warn on A && B on every instantiation. This will still warn on other cases inside templates, which will be caught on checking the template definition. llvm-svn: 135222
-
Rafael Espindola authored
Revert "For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either." This reverts commit ac420c5053d6aa41d59f782caad9e46e5baaf2c2. llvm-svn: 135210
-
John McCall authored
llvm-svn: 135208
-
- Jul 14, 2011
-
-
Sebastian Redl authored
For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either. This is a first baby step towards supporting generalized initializer lists. This also removes an aggregate test case that was just plain wrong, assuming that non-aggregates couldn't be initialized with initializer lists in C++11 mode. llvm-svn: 135177
-
Sebastian Redl authored
llvm-svn: 135175
-
Douglas Gregor authored
is still terrible here because typo correction is not behaving well in the presence of overloaded functions. llvm-svn: 135128
-
Richard Smith authored
PR8800: When building a conversion to A& using a member operatorA&(), do not require A to be a complete type. llvm-svn: 135101
-
- Jul 13, 2011
-
-
Douglas Gregor authored
parsing lambda expressions, from John Freeman! llvm-svn: 135090
-
Douglas Gregor authored
Uhrain! Fixes PR10318. llvm-svn: 135086
-
John McCall authored
it as used. Otherwise, we can fail to instantiate or validate the destructor, which can lead to crashes in IR gen like PR10351. llvm-svn: 135073
-
Fariborz Jahanian authored
used in @selector expression because, well, their implementation is optional. // rdar://9545564 llvm-svn: 135057
-
John McCall authored
__unknown_anytype, and rewrite such message sends correctly. I had to bite the bullet and actually add a debugger support mode for this one, which is a bit unfortunate, but there really isn't anything else I could imagine doing; this is clearly just debugger-specific behavior. llvm-svn: 135051
-