- Oct 23, 2007
-
-
Devang Patel authored
llvm-svn: 43258
-
Steve Naroff authored
- Add rewrite rule for @class. - Add setter/getter to ObjcClassDecl. - Predefined key runtime functions. llvm-svn: 43257
-
Fariborz Jahanian authored
llvm-svn: 43255
-
Devang Patel authored
llvm-svn: 43236
-
Fariborz Jahanian authored
llvm-svn: 43235
-
- Oct 22, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43233
-
- Oct 19, 2007
-
-
Chris Lattner authored
llvm-svn: 43188
-
Hartmut Kaiser authored
llvm-svn: 43179
-
Gabor Greif authored
llvm-svn: 43178
-
Fariborz Jahanian authored
llvm-svn: 43159
-
Steve Naroff authored
Include a simple test case for the previous commit... llvm-svn: 43158
-
Steve Naroff authored
Fix the previous (short lived:-) FIXME. I didn't realize that GCC considers this a hard error (I thought it was built-in). Since it's not, we should simply emit an error. [dylan:~/llvm/tools/clang] admin% cc -c trivial.m trivial.m:6: error: cannot find interface declaration for 'NSConstantString' [administrators-powerbook59:~/llvm/tools/clang] admin% ../../Debug/bin/clang trivial.m trivial.m:6:16: error: cannot find interface declaration for 'NSConstantString' NSString *s = @"123"; ^ 1 diagnostic generated. llvm-svn: 43157
-
Ted Kremenek authored
visits its decls, rather than just creating an "end()" iterator. Fixed child_end() for statements and expressions to use child_iterator() to create the end() iterator, rather than just returning NULL. Fixed bug in StmtIterator where we did not correctly detect if we had marched off the end of the ScopedDecls. llvm-svn: 43156
-
Fariborz Jahanian authored
llvm-svn: 43155
-
Ted Kremenek authored
llvm-svn: 43154
-
Steve Naroff authored
Add a FIXME to an assert. Change a dyn_cast_or_null back to cast (which is more efficient). llvm-svn: 43152
-
Fariborz Jahanian authored
llvm-svn: 43151
-
- Oct 18, 2007
-
-
Chris Lattner authored
llvm-svn: 43149
-
Fariborz Jahanian authored
llvm-svn: 43143
-
Steve Naroff authored
Tweak a recent fix to UsualArithmeticConversions (made by Chris - r43113). The benefit of this tweak is it guarantees the entire routine operates on unqualified types (which I believe is a bit clearer). llvm-svn: 43142
-
Ted Kremenek authored
llvm-svn: 43139
-
Ted Kremenek authored
and StmtIteratorImpl (templated), which StmtIterator and ConstStmtIterator now succintly subclass. Implemented iteration over the initializers in DeclStmts. This is not thoroughly tested, so there may be bugs. llvm-svn: 43138
-
Ted Kremenek authored
directly inlining its logic. llvm-svn: 43137
-
Ted Kremenek authored
llvm-svn: 43132
-
Hartmut Kaiser authored
llvm-svn: 43125
-
Hartmut Kaiser authored
llvm-svn: 43124
-
Steve Naroff authored
Fix a bug in Sema::CheckConditionalOperands(). When mixing pointers and null pointer constants, we need to promote the null pointer constant (which is an integer) to the pointer type. Test case is self explanatory. This surfaced yesterday, when compiling test/Sema/cocoa.m on Leopard. Since this has nothing to do with ObjC, it's kind of bizarre this hasn't shown up before. I imagine Cocoa.h on Leopard may have changed recently? Thanks to Ted for localizing the bug and giving me a useful AST dump... llvm-svn: 43114
-
Chris Lattner authored
when comparing "float" and "const float". This "fixes" the issue, but may not be the right fix. Steve, please review. Testcase here: test/Sema/usual-float.c llvm-svn: 43113
-
Steve Naroff authored
Fix the following bug... unsigned char asso_values[] = { 34 }; int legal2() { return asso_values[0]; } The code that creates the new constant array type was operating on the original type. As a result, the constant type being generated was "unsigned char [1][]" (which is wrong). The fix is to operate on the element type - in this case, the correct type is "unsigned char [1]" I added this case to array-init.c, which clearly didn't catch this bogosity... llvm-svn: 43112
-
Chris Lattner authored
llvm-svn: 43110
-
Chris Lattner authored
llvm-svn: 43109
-
Ted Kremenek authored
that will (soon) allow iteration over the initializers in declarations. This new iterator mechanism is implemented by the classes StmtIterator and ConstStmtIterator. Patched a few files to use "operator++" instead of "operator+" on child_iterators. Friendship added in VarDecl to StmtIterator to allow returning a reference to the initializer within the VarDecl. We may not wish this as a permanent solution. llvm-svn: 43105
-
Chris Lattner authored
local, making the code easier to read. llvm-svn: 43104
-
Chris Lattner authored
llvm-svn: 43101
-
- Oct 17, 2007
-
-
Chris Lattner authored
we currently turn: c = @encode(char *)[2] + 4; into: c = "foo"[2] + 4; Right now the foo string is hard coded, but you can imagine a world where it wouldn't be :) llvm-svn: 43093
-
Chris Lattner authored
the size of the last token. llvm-svn: 43092
-
Chris Lattner authored
llvm-svn: 43091
-
Chris Lattner authored
the lexer, where it can be shared. llvm-svn: 43090
-
Chris Lattner authored
llvm-svn: 43085
-
Chris Lattner authored
object in order to do its thing. llvm-svn: 43084
-