- Jan 13, 2012
-
-
Richard Smith authored
- If the declarator is at the start of a line, and the previous line contained another declarator and ended with a comma, then that comma was probably a typo for a semicolon: int n = 0, m = 1, l = 2, // k = 5; myImportantFunctionCall(); // oops! - If removing the parentheses would correctly initialize the object, then produce a note suggesting that fix. - Otherwise, if there is a simple initializer we can suggest which performs value-initialization, then provide a note suggesting a correction to that initializer. Sema::Declarator now tracks the location of the comma prior to the declarator in the declaration, if there is one, to facilitate providing the note. The code to determine an appropriate initializer from the -Wuninitialized warning has been factored out to allow use in both that and -Wvexing-parse. llvm-svn: 148072
-
Eli Friedman authored
Original message: Make sure adding a field to a struct never reduces its size. PR11745. llvm-svn: 148070
-
Eli Friedman authored
llvm-svn: 148068
-
- Jan 12, 2012
-
-
Eli Friedman authored
llvm-svn: 148058
-
Eli Friedman authored
llvm-svn: 148056
-
Ted Kremenek authored
llvm-svn: 148055
-
Argyrios Kyrtzidis authored
selector identifiers. It was difficult to form a test case for it unfortunately. llvm-svn: 148053
-
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
-
Rafael Espindola authored
llvm-svn: 148049
-
Rafael Espindola authored
Patch by Sylvestre Ledru. llvm-svn: 148045
-
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
-
Ted Kremenek authored
[analyzer] fix inlining's handling of mapping actual to formal arguments and limit the call stack depth. The analyzer can now accurately simulate factorial for limited depths. llvm-svn: 148036
-
Richard Smith authored
zero-initialize the first union member. Also fix a bug where initializing an array of types compatible with wchar_t from a wide string literal failed in C, and fortify the C++ tests in this area. This part can't be tested without a code change to enable array evaluation in C (where an existing test fails). llvm-svn: 148035
-
Hans Wennborg authored
are used with that and the 'a' length modifier. llvm-svn: 148029
-
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
-
Hans Wennborg authored
Before r148025 we (accidentally) didn't check whether a length modifier is appropriate for a scanlist, but now we do. llvm-svn: 148026
-
Hans Wennborg authored
llvm-svn: 148025
-
NAKAMURA Takumi authored
test/Driver/debug-options*.c: Tweak r147819 to split out another cc1as-sensitive test. gcc driver is invoked for assembling on cygming. llvm-svn: 148022
-
Richard Smith authored
llvm-svn: 148021
-
Richard Smith authored
in a constant expression, for compatibility with g++. llvm-svn: 148020
-
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
-
Argyrios Kyrtzidis authored
[arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ are messed up, XFAIL does not help. Waiting until DISABLE is supported.. llvm-svn: 148012
-
Anna Zaks authored
+ all the other Retrieve..() methods + a comment for ElementRegion. llvm-svn: 148011
-
Anna Zaks authored
To simplify the process: Refactor taint generation checker to simplify passing the information on which arguments need to be tainted from pre to post visit. Todo: We need to factor out the code that sema is using to identify the string and memcpy functions and use it here and in the CString checker. llvm-svn: 148010
-
Akira Hatanaka authored
llvm-svn: 147993
-
Eric Christopher authored
llvm-svn: 147989
-
Eric Christopher authored
llvm-svn: 147988
-
Akira Hatanaka authored
argument when Offset is initialized. llvm-svn: 147986
-
Akira Hatanaka authored
Remove function MipsABIInfo::GetFloatingPointTy. llvm-svn: 147985
-
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
-
-
Matt Beaumont-Gay authored
llvm-svn: 147977
-
Douglas Gregor authored
llvm-svn: 147974
-
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
-
Richard Smith authored
implicitly marked constexpr when they should be. llvm-svn: 147955
-