- Jul 19, 2011
-
-
Jordy Rose authored
llvm-svn: 135518
-
Jordy Rose authored
pthread and XNU locks. Patch by Rui Paulo! llvm-svn: 135515
-
Chad Rosier authored
llvm-svn: 135510
-
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
-
Chad Rosier authored
arch-pc-win32-macho (e.g., x86_64-pc-win32-macho), which appears to be a false positive. rdar://9786307 llvm-svn: 135502
-
Benjamin Kramer authored
llvm-svn: 135492
-
Argyrios Kyrtzidis authored
-arcmt-migrate-emit-errors : Emits the pre-migration ARC errors but it doesn't affect anything else -arcmt-migrate-report-output : Writes out the pre-migration ARC errors to the provided plist file rdar://9791454 llvm-svn: 135491
-
Jeffrey Yasskin authored
warnings that were intended to be inside it. llvm-svn: 135487
-
Douglas Gregor authored
source locations from source locations loaded from an AST/PCH file. Previously, loading an AST/PCH file involved carefully pre-allocating space at the beginning of the source manager for the source locations and FileIDs that correspond to the prefix, and then appending the source locations/FileIDs used for parsing the remaining translation unit. This design forced us into loading PCH files early, as a prefix, whic has become a rather significant limitation. This patch splits the SourceManager space into two parts: for source location "addresses", the lower values (growing upward) are used to describe parsed code, while upper values (growing downward) are used for source locations loaded from AST/PCH files. Similarly, positive FileIDs are used to describe parsed code while negative FileIDs are used to file/macro locations loaded from AST/PCH files. As a result, we can load PCH/AST files even during parsing, making various improvemnts in the future possible, e.g., teaching #include <foo.h> to look for and load <foo.h.gch> if it happens to be already available. This patch was originally written by Sebastian Redl, then brought forward to the modern age by Jonathan Turner, and finally polished/finished by me to be committed. llvm-svn: 135484
-
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
-
Ted Kremenek authored
llvm-svn: 135479
-
Nick Lewycky authored
llvm-svn: 135473
-
Evan Cheng authored
llvm-svn: 135469
-
Devang Patel authored
llvm-svn: 135456
-
Alexis Hunt authored
WCHAR_MAX in limits.h, thus solving the problem where the system header thinks it knows better. llvm-svn: 135455
-
Eric Christopher authored
llvm-svn: 135440
-
Devang Patel authored
llvm-svn: 135437
-
- Jul 18, 2011
-
-
Evan Cheng authored
llvm-svn: 135425
-
Alexis Hunt authored
__underlying_type feature. llvm-svn: 135402
-
Alexis Hunt authored
correctly impelmented llvm-svn: 135401
-
Jeffrey Yasskin authored
diagnostics. llvm-svn: 135398
-
Frits van Bommel authored
Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previously explicit non-default constructors were used. Mostly mechanical with some manual reformatting. llvm-svn: 135390
-
NAKAMURA Takumi authored
By default, mingw does not have _mm_alloc() nor _aligned_malloc(). llvm-svn: 135388
-
Argyrios Kyrtzidis authored
add __attribute__((objc_precise_lifetime)) to make sure that the object (and its data) will not get released before the var goes out-of-scope. rdar://9206226 llvm-svn: 135382
-
Argyrios Kyrtzidis authored
with __unsafe_unretained parameters. Emit error for strong/weak ones. rdar://9206226 llvm-svn: 135381
-
Nick Lewycky authored
neither was inline. Fixes bug introduced in r135377. llvm-svn: 135380
-
Nick Lewycky authored
Fixes PR10233! llvm-svn: 135377
-
Chris Lattner authored
llvm-svn: 135370
-
Chris Lattner authored
ShadowMapEntry was. llvm-svn: 135368
-
- Jul 17, 2011
-
-
Chandler Carruth authored
patch, we actually move the state-machine for the value set backwards one step. This can pretty easily lead to infinite loops where we continually try to propagate a bit, succeed for one iteration, but then back up because we find an uninitialized use. A reduced test case from PR10379 is included. llvm-svn: 135359
-
- Jul 16, 2011
-
-
Francois Pichet authored
Fixes PR9875, patch by Nikola Smiljanic! llvm-svn: 135356
-
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
-
Ted Kremenek authored
[analyzer] Per discussions with the Cocoa team, extend CF naming conventions to extend to camel case functions instead of just title case functions. Fixes <rdar://problem/9732321>. llvm-svn: 135350
-
Ted Kremenek authored
[analyzer] Place checking for Core Foundation "Create" rule into a proper API. No functionality change. llvm-svn: 135349
-
Fariborz Jahanian authored
llvm-svn: 135348
-
Joerg Sonnenberger authored
more happy on NetBSD. llvm-svn: 135344
-
Fariborz Jahanian authored
llvm-svn: 135328
-
Argyrios Kyrtzidis authored
[arcmt] It's not safe to remove the -release on "[[someivar delegate] release];" since it's very likely that, after migration, the object that was passed to 'setDelegate:' will not be properly retained, e.g: -whatever { id x = [[MyDoHicky alloc] init]; [someivar setDelegate: x]; // x won't get retained in ARC. } -dealloc { [[someivar delegate] release]; // give migration error here. } rdar://8858009 llvm-svn: 135327
-
Tanya Lattner authored
Test cases provided by Anton Lokhmot. llvm-svn: 135322
-
Jordy Rose authored
llvm-svn: 135317
-