- Apr 24, 2013
-
-
Alexander Kornienko authored
Summary: Added support for multiple input files, that can be used both with and without in-place edit (-i) option. Added checks for -offset and -length options: don't allow them on multiple files, check that they don't fall outside input file, made both options unsigned, so that there's no need to check for negative values. Removed "-1 can be used for end-of-file" from -length description. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D719 llvm-svn: 180185
-
Anton Yartsev authored
llvm-svn: 180181
-
Ted Kremenek authored
llvm-svn: 180178
-
Ted Kremenek authored
Fixes PR 10124. Patch by Jens Kilian. Thanks to Nikola Smiljanic for following up. llvm-svn: 180177
-
Ted Kremenek authored
Apparently there are... llvm-svn: 180176
-
Ted Kremenek authored
tweak warning to suggest that it is just a bad thing to do. llvm-svn: 180175
-
Ted Kremenek authored
llvm-svn: 180174
-
Daniel Jasper authored
In the following snippet, clang-format incorrectly aligned the trailing comment, when only the last line was formatted: int aaaaaa; // comment int b; int c; // Formatting only this line moved this comment. llvm-svn: 180173
-
Jakob Stoklund Olesen authored
Solaris/AuroraUX only need __arch64__, the BSDs need the other variants. llvm-svn: 180172
-
Anna Zaks authored
- If only partial invalidators exist and there are no full invalidators in @implementation, report every ivar that has not been invalidated. (Previously, we reported the first Ivar in the list, which could actually have been invalidated by a partial invalidator. The code assumed you cannot have only partial invalidators.) - Do not report missing invalidation method declaration if a partial invalidation method declaration exists. llvm-svn: 180170
-
Anna Zaks authored
The uniqueing location is the location which is part of the hash used to determine if two reports are the same. This is used by the CmpRuns.py script to compare two analyzer runs and determine which warnings are new. llvm-svn: 180166
-
Anna Zaks authored
[analyzer] Refactor BugReport::getLocation and PathDiagnosticLocation::createEndOfPath for greater code reuse The 2 functions were computing the same location using different logic (each one had edge case bugs that the other one did not). Refactor them to rely on the same logic. The location of the warning reported in text/command line output format will now match that of the plist file. There is one change in the plist output as well. When reporting an error on a BinaryOperator, we use the location of the operator instead of the beginning of the BinaryOperator expression. This matches our output on command line and looks better in most cases. llvm-svn: 180165
-
Ted Kremenek authored
llvm-svn: 180164
-
- Apr 23, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] Introduce a CXCursor_ObjCSelfExpr cursor, which is the equivalent of CXCursor_CXXThisExpr for C++ code. rdar://13717006 llvm-svn: 180127
-
Benjamin Kramer authored
Silences a sign compare warning on 32 bit archs. llvm-svn: 180110
-
Daniel Jasper authored
Before: #if !defined(AAAAAAAAAAAAAAAA) && (defined CCCCCCCC || \ defined DDDDDDDD) && defined(BBBBBBBB) After: #if !defined(AAAAAAAAAAAAAAAA) && (defined CCCCCCCC || defined DDDDDDDD) && \ defined(BBBBBBBB) This fixes llvm.org/PR15828. llvm-svn: 180105
-
Richard Trieu authored
C++98 mode. This improves on the previous diagnostic message of: error: expected identifier or '{' llvm-svn: 180076
-
Jordan Rose authored
No functionality change. <rdar://problem/13710586> llvm-svn: 180075
-
Ted Kremenek authored
llvm-svn: 180073
-
Argyrios Kyrtzidis authored
When modifying an implicit instantiation with information from an explicit one, make sure to reset the "right brace" location. Otherwise the source range of the explicit instantiation may become invalid (begin location will be after the end location). rdar://13706991 llvm-svn: 180070
-
Jordan Rose authored
This handles the false positive leak warning in PR15374, and also serves as a basic model for the strsep() function. llvm-svn: 180069
-
Manman Ren authored
llvm-svn: 180065
-
Ted Kremenek authored
Add a warning for Objective-C pointer introspection, which is solely the job of the Objective-C runtime. llvm-svn: 180062
-
Ted Kremenek authored
llvm-svn: 180056
-
Chad Rosier authored
Part of rdar://13663589 llvm-svn: 180055
-
- Apr 22, 2013
-
-
Jordan Rose authored
The analyzer represents all pointer-to-pointer bitcasts the same way, but this can be problematic if an implicit base cast gets layered on top of a manual base cast (performed with reinterpret_cast instead of static_cast). Fix this (and avoid a valid assertion) by looking through cast regions. Using reinterpret_cast this way is only valid if the base class is at the same offset as the derived class; this is checked by -Wreinterpret-base-class. In the interest of performance, the analyzer doesn't repeat this check anywhere; it will just silently do the wrong thing (use the wrong offsets for fields of the base class) if the user code is wrong. PR15394 llvm-svn: 180052
-
Jordan Rose authored
This improves our handling of dynamic_cast and devirtualization for objects allocated by 'new'. llvm-svn: 180051
-
Simon Atanasyan authored
driver tests. These tests check the driver only and do not require mips target. llvm-svn: 180042
-
Manman Ren authored
For ms structs, zero-length bitfields following non-bitfield members are completely ignored, we should not increase the field index. Before the fix, we will have an assertion failure. llvm-svn: 180038
-
Chad Rosier authored
change indended. Part of rdar://13663589 llvm-svn: 180027
-
Adrian Prantl authored
llvm-svn: 180026
-
Benjamin Kramer authored
This is debugging code so functionality isn't a concern, but mingw32 warns because it doesn't understand the %llx format specifier. llvm-svn: 180024
-
Richard Smith authored
statement in constexpr functions. Everything which doesn't require variable mutation is also allowed as an extension in C++11. 'void' becomes a literal type to support constexpr functions which return 'void'. llvm-svn: 180022
-
Richard Smith authored
-Wall -W, since it's already provided by LLVM's cmake config, and that overrides fixes (such as -Wno-uninitialized) which LLVM's cmake setup may have provided. llvm-svn: 180018
-
Richard Smith authored
different array elements, even if they're all constructed using the same default constructor. llvm-svn: 180017
-
Richard Smith authored
llvm-svn: 180004
-
Arnaud A. de Grandmaison authored
llvm-svn: 180002
-
Daniel Jasper authored
In Google style, constructor initializers need to be all on one line or one initializer per line if that does not fit. Without this patch, this non-bin-packing-behavior incorrectly extends to the parameters of the initializers. Before: Constructor() : aaaaa(aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa) {} After: Constructor() : aaaaa(aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa) {} llvm-svn: 180001
-
David Blaikie authored
This reverts commit 179839 now that the corresponding LLVM patch has been fixed. llvm-svn: 179997
-
David Blaikie authored
Making the test introduced in r179962 resilient to being run on darwin10 hosts. llvm-svn: 179992
-