- Jul 21, 2011
-
-
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
-
Fariborz Jahanian authored
Make it also available in ObjC++ propeties. Use common code for objc and objc++ so they don't diverge. // rdar://9740328 llvm-svn: 135050
-
John McCall authored
and (while I'm at it) teach it to grok the results of simple assignments. The first is PR10336. llvm-svn: 135034
-
Douglas Gregor authored
unrestricted unions, which ended up attempting to initialize objects in a union (which CodeGen isn't prepared for). Fixes PR9683. llvm-svn: 135027
-
Fariborz Jahanian authored
Make it also available in ObjC++ propeties. // rdar://9740328 llvm-svn: 135001
-
- Jul 12, 2011
-
-
Fariborz Jahanian authored
implicit ivar accesses to go through the 'self' variable rather than the real 'self' for the method. // rdar://9730771 llvm-svn: 134992
-
Benjamin Kramer authored
Found by valgrind. llvm-svn: 134983
-
Hans Wennborg authored
It would be cool if we could do overload resolution to suggest the right function, but at least this fixes the crashing. llvm-svn: 134976
-