- Feb 23, 2011
-
-
Ted Kremenek authored
Issue AnalysisBasedWarnings as part of calling Sema::PopBlockOrFunctionScope(). No real functionality change. llvm-svn: 126287
-
Ted Kremenek authored
Update Sema::DiagRuntimeBehavior() to take an optional Stmt* to indicate the code the diagnostic is associated with. This Stmt* is unused, but we will use it shortly for pruning diagnostics associated with unreachable code. llvm-svn: 126286
-
Ted Kremenek authored
Change -Warray-bounds logic to use DiagRuntimeBehavior in preparation for using basic dataflow to suppress warnings on unreachable array bounds checks. llvm-svn: 126285
-
Argyrios Kyrtzidis authored
CastToStructChecker FixedAddressChecker MacOSXAPIChecker PointerArithChecker PointerSubChecker PthreadLockChecker UnixAPIChecker llvm-svn: 126284
-
Chandler Carruth authored
exist. Cheat and do this by adding some wrappers around the PresumedLoc machinery that directly return the line and column number. llvm-svn: 126281
-
Richard Smith authored
Fix PR9276: We were missing the checks for auto deducing to different types in the same declaration group in the template instantiation case. llvm-svn: 126279
-
Argyrios Kyrtzidis authored
NilArgChecker CFNumberCreateChecker ClassReleaseChecker llvm-svn: 126275
-
Argyrios Kyrtzidis authored
It would run PostObjCMessage checkers even for PreObjCMessage checking. llvm-svn: 126274
-
Argyrios Kyrtzidis authored
-In general, don't have the BugReporter deleting BugTypes, BugTypes will eventually become owned by checkers and outlive the BugReporter. In the meantime, there will be some leaks since some checkers assume that the BugTypes they create will be destroyed by the BugReporter. -Have BugReporter::EmitBasicReport create BugTypes that are reused if the same name & category strings are passed to EmitBasicReport. These BugTypes are owned and destroyed by the BugReporter. This allows bugs reported through EmitBasicReport to be coalesced. -Remove the llvm::FoldingSet<BugReportEquivClass> from BugType and move it into the BugReporter. For uniquing BugReportEquivClass also use the BugType* so that we can iterate over all of them using only one set. llvm-svn: 126272
-
Fariborz Jahanian authored
errornously defined inside an objc class. // rdar://7029784 llvm-svn: 126269
-
Matt Beaumont-Gay authored
mostly just shuffles various possibilities for recovery into a more straightforward order, but also unifies a couple of diagnostics. llvm-svn: 126266
-
Douglas Gregor authored
FunctionProtoTypeLoc with NULL function parameter types, which can occur in invalid code. Fixes PR9247 / <rdar://problem/9037911>. llvm-svn: 126262
-
Fariborz Jahanian authored
specifier in legacy code. Patch is reviewed offline by Doug. // rdar://9036633. llvm-svn: 126261
-
- Feb 22, 2011
-
-
John McCall authored
invocation function into the debug info. Rather than faking up a class, which is tricky because of the custom layout we do, we just emit a struct directly from the layout information we've already got. Also, don't emit an unnecessarily parameter alloca for this "variable". llvm-svn: 126255
-
John McCall authored
the stack. llvm-svn: 126254
-
John McCall authored
block and, eventually, C++ lambda) contexts. llvm-svn: 126252
-
Devang Patel authored
llvm-svn: 126246
-
Chris Lattner authored
Patch by Csaba Raduly! llvm-svn: 126245
-
Douglas Gregor authored
enum X : long { Value = 0x100000000 }; when in Microsoft-extension mode (-fms-extensions). This (now C++0x) feature has been supported since Microsoft Visual Studio .NET 2003. llvm-svn: 126243
-
Matt Beaumont-Gay authored
llvm-svn: 126240
-
Devang Patel authored
llvm-svn: 126232
-
Douglas Gregor authored
array from a constant array compound literal. Fixes PR9261. llvm-svn: 126230
-
Argyrios Kyrtzidis authored
-Migrate ObjCSelfInitChecker to CheckerV2. In the process remove the 'preCallSelfFlags' field from the checker class and use GRState for storing that info. -Get ExprEngine to start delegating checker running to CheckerManager. llvm-svn: 126229
-
Joerg Sonnenberger authored
use -nostdinc++ and -cxx-isystem. llvm-svn: 126223
-
Peter Collingbourne authored
llvm-svn: 126221
-
Peter Collingbourne authored
llvm-svn: 126220
-
John McCall authored
emitting the collection expression. Fixes some really, really broken code. llvm-svn: 126193
-
John McCall authored
llvm-svn: 126189
-
Ted Kremenek authored
llvm-svn: 126188
-
Ted Kremenek authored
llvm-svn: 126187
-
NAKAMURA Takumi authored
mingw-w64's i128 tweak should be done with x86_64-mingw32. llvm-svn: 126186
-
Douglas Gregor authored
underlying type: we weren't parsing unnamed enumeration types with a fixed underlying type. llvm-svn: 126184
-
Douglas Gregor authored
enumeration types. Fixes <rdar://problem/8559831>. llvm-svn: 126183
-
Anders Carlsson authored
Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. Update all tests accordingly. llvm-svn: 126177
-
Richard Smith authored
In Objective-C, there are no trailing return types, so don't produce diagnostics suggesting they are missing. llvm-svn: 126174
-
Joerg Sonnenberger authored
It works like -isystem and the search path keeps -isystem and -cxx-isystem in order relative to each other. -cxx-isystem is only used for C++ sources though. Drop the existing -cxx-system-include option for cc1 as it is now redundant. llvm-svn: 126167
-
Richard Smith authored
* 'auto' was being rejected on abstract-declarators with trailing return types and on typedefs with trailing return types. 'auto' is always allowed in these cases. This was found while testing the fix for PR 9278. * A very poor diagnostic was being issued for auto (f() -> int): "return type must be 'auto', not 'auto'". This is closely related to PR 9060. * Trailing return type handling was happening slightly too late, resulting in the checks for functions returning arrays and functions returning functions being missed. llvm-svn: 126166
-
Fariborz Jahanian authored
protocols do not match with method implementation. // rdar://7076235 llvm-svn: 126162
-
David Chisnall authored
The instance size of a metaclass should be the size of a class. This is not, in fact, 0, even for very small classes. (GNU runtime) llvm-svn: 126161
-
Richard Smith authored
This actually rules out too much, since it also catches typedefs for pointers to functions with trailing return types: typedef auto (*F)() -> int; Fix for that (and the same issue in all abstract-declarators) to follow shortly. llvm-svn: 126153
-