- Feb 24, 2009
-
-
Daniel Dunbar authored
variables. - PR3657. llvm-svn: 65381
-
Chris Lattner authored
llvm-svn: 65374
-
Douglas Gregor authored
that declaration to global scope so that it can be found from other scopes. This allows us to diagnose redeclaration errors for external declarations across scopes. We also warn when name lookup finds such an out-of-scope declaration. This is part of <rdar://problem/6127293>; we'll also need to do the same thing for variables. llvm-svn: 65373
-
rdar://problem/6611677Ted Kremenek authored
analyzer for array subscript expressions involving bases that are vectors. This solution is probably a hack: it gets the lvalue of the vector instead of an rvalue like all other types. This should be reviewed (big FIXME in GRExprEngine). llvm-svn: 65366
-
Daniel Dunbar authored
Fix two @synchronized bugs found by inspection: the expression to sychronize on should only be evaluated once, and it is evaluated outside the cleanup scope. Also, lift SyncEnter and SyncExit up in nervous anticipation of x86-64 zero cost EH. llvm-svn: 65362
-
Douglas Gregor authored
- When we are declaring a function in local scope, we can merge with a visible declaration from an outer scope if that declaration refers to an entity with linkage. This behavior now works in C++ and properly ignores entities without linkage. - Diagnose the use of "static" on a function declaration in local scope. - Diagnose the declaration of a static function after a non-static declaration of the same function. - Propagate the storage specifier to a function declaration from a prior declaration (PR3425) - Don't name-mangle "main" llvm-svn: 65360
-
- Feb 23, 2009
-
-
rdar://6611778Chris Lattner authored
assertion when the ivars and method list was reset into the existing interface. To fix this, mark decls as invalid when they are redefined, and don't insert ivars/methods into invalid decls. llvm-svn: 65340
-
Steve Naroff authored
- Generate error for protocol qualifiers on non-ObjC types. llvm-svn: 65333
-
http://llvm.org/viewvc/llvm-project?view=rev&revision=65244Steve Naroff authored
Remove support for "Class<P>". Will be making this an error. llvm-svn: 65332
-
Eli Friedman authored
llvm-svn: 65305
-
Ted Kremenek authored
retain/release checker: For now don't track the retain count of NSWindow objects (opt for false negatives). llvm-svn: 65304
-
Ted Kremenek authored
llvm-svn: 65303
-
Ted Kremenek authored
llvm-svn: 65299
-
- Feb 22, 2009
-
-
Steve Naroff authored
Contains the following (related to problems found while investigting <rdar://problem/6497631> Message lookup is sometimes different than gcc's). - Implement instance/class overloading in ObjCContainerDecl (removing a FIXME). This involved hacking NamedDecl::declarationReplaces(), which took awhile to figure out (didn't realize replace was the default). - Changed Sema::ActOnInstanceMessage() to remove redundant warnings when dealing with protocols. For now, I've omitted the "protocol" term in the diagnostic. It simplifies the code flow and wan't always 100% accurate (e.g. "Foo<Prot>" looks in the class interface, not just the protocol). - Changed several test cases to jive with the above changes. llvm-svn: 65292
-
Mike Stump authored
llvm-svn: 65285
-
Eli Friedman authored
llvm-svn: 65270
-
Eli Friedman authored
helper isConstantInitializer) to check whether an initializer is constant. This passes tests, but it's possible that it'll cause regressions with real-world code. Future work: 1. The diagnostics obtained this way are lower quality at the moment; some work both here and in Evaluate is needed for accurate diagnostics. 2. We probably need some extra code when we're in -pedantic mode so we can strictly enforce the rules in C99 6.6p7. 3. Dead code cleanup (this should wait until after 2, because we might want to re-use some of the code). llvm-svn: 65265
-
Eli Friedman authored
partially done in r65258.) llvm-svn: 65260
-
Eli Friedman authored
PR3254 and part of PR3433. The isICE changes are necessary to keep the computed results consistent with Evaluate. llvm-svn: 65258
-
Anders Carlsson authored
llvm-svn: 65256
-
Anders Carlsson authored
llvm-svn: 65255
-
Eli Friedman authored
required to actually be an error for correctness. The attached testcase now gives an error instead of mysteriously crashing. Now, it's possible we actually want to support the given usage, but I haven't looked at the relevant code closely. llvm-svn: 65253
-
Daniel Dunbar authored
llvm-svn: 65252
-
- Feb 21, 2009
-
-
Steve Naroff authored
Found while researching <rdar://problem/6497631> Message lookup is sometimes different than gcc's. Will never be seen in user code. Needed to pass dejagnu testsuite. llvm-svn: 65244
-
Steve Naroff authored
llvm-svn: 65241
-
Fariborz Jahanian authored
variable (objc2 gc specific). llvm-svn: 65240
-
Fariborz Jahanian authored
llvm-svn: 65235
-
Daniel Dunbar authored
expr; hilarity ensued. - PR3640. llvm-svn: 65234
-
Steve Naroff authored
Add test case to record a couple inconsistencies with GCC (found in <rdar://problem/6561076> [clang on Xcode] warning: cannot find protocol definition for 'OzzyP'). Removing the "cannot find protocol" warning is trivial if necessary (but I don't think it's the right thing to do). llvm-svn: 65232
-
Steve Naroff authored
This fixes <rdar://problem/6497650> More type mismatches issues with clang. Move two key ObjC typechecks from Sema::CheckPointerTypesForAssignment() to ASTContext::mergeTypes(). This allows us to take advantage of the recursion in ASTContext::mergeTypes(), removing some bogus warnings. This test case I've added includes an example where we still warn (and GCC doesn't). Need to talk with folks and decide what to do. At this point, the major bogosities should be fixed. llvm-svn: 65231
-
Ted Kremenek authored
handle method names that contain 'new', 'copy', etc., but those words might be the substring of larger words such as 'newsgroup' and 'photocopy' that do not indicate the allocation of objects. This should address the issues discussed in <rdar://problem/6552389>. llvm-svn: 65224
-
Daniel Dunbar authored
- PR3629. llvm-svn: 65203
-
Daniel Dunbar authored
system header. - Prevents a codegen crash when anything used anything in tgmath! :) llvm-svn: 65200
-
- Feb 20, 2009
-
-
-
Anders Carlsson authored
Always try to fold array sizes, and warn if we could fold something that isn't an ICE. This makes us compatible with GCC. llvm-svn: 65140
-
Daniel Dunbar authored
- PR3463 (again). llvm-svn: 65133
-
Daniel Dunbar authored
- Remove an unused variant of EmitCallExpr overload. llvm-svn: 65130
-
-
Daniel Dunbar authored
llvm-svn: 65115
-
Eli Friedman authored
llvm-svn: 65106
-