- May 26, 2009
-
-
Eli Friedman authored
Found by code inspection; I haven't seen this in real-world code. llvm-svn: 72408
-
- May 25, 2009
-
-
Eli Friedman authored
correctly. llvm-svn: 72401
-
Eli Friedman authored
left out handling for stuff like (S())++ for the moment. llvm-svn: 72394
-
Chris Lattner authored
argument. This avoids the argument from being silenced when the argument is the NULL macro, which is defined in a system header. This also makes the output a bit nicer, e.g.: t.c:8:3: warning: null passed to a callee which requires a non-null argument func1(NULL, cp2, i1); ^ ~~~~ vs something like: t.c:8:10: warning: argument is null where non-null is required func1(NULL, cp2, i1); ^ llvm-svn: 72393
-
Chris Lattner authored
1. When we accept "#garbage" in asm-with-cpp mode, change the token kind of the # to unknown so that the preprocessor won't try to process it as a real #. This fixes a crash on the attached example 2. Fix macro definition extents processing to handle #foo at the end of a macro to say the definition ends with the foo, not the #. This is a follow-on fix to r72283, and rdar://6916026 llvm-svn: 72388
-
Chris Lattner authored
llvm-svn: 72386
-
- May 24, 2009
-
-
Eli Friedman authored
the RHS. Fixes assembler-with-cpp issue reported on cfe-dev. llvm-svn: 72370
-
Mike Stump authored
llvm-svn: 72353
-
Mike Stump authored
llvm-svn: 72352
-
Mike Stump authored
how to get the backend to know that the operation is volatile. llvm-svn: 72348
-
Mike Stump authored
llvm-svn: 72347
-
- May 23, 2009
-
-
Mike Stump authored
is still ignored. llvm-svn: 72344
-
Mike Stump authored
llvm-svn: 72342
-
Mike Stump authored
llvm-svn: 72341
-
Daniel Dunbar authored
llvm-svn: 72333
-
Mike Stump authored
llvm-svn: 72315
-
Eli Friedman authored
llvm-svn: 72314
-
Daniel Dunbar authored
- Otherwise we may incorrectly miss generation of some write barriers. llvm-svn: 72313
-
Eli Friedman authored
PPC double double. (No testcase because no normal target uses the format at the moment.) llvm-svn: 72310
-
Mike Stump authored
llvm-svn: 72308
-
Douglas Gregor authored
expressions. We are now missing template instantiation logic for only three classes of expressions: - Blocks-related expressions (BlockExpr, BlockDeclRefExpr) - C++ default argument expressions - Objective-C expressions Additionally, our handling of DeclRefExpr is still quite poor, since it cannot handle references to many kinds of declarations. As part of this change, converted the TemplateExprInstantiator to use iteration through all of the expressions via clang/AST/StmtNodes.def, ensuring that we don't forget to add template instantiation logic for any new expression node kinds. llvm-svn: 72303
-
Douglas Gregor authored
llvm-svn: 72301
-
Douglas Gregor authored
llvm-svn: 72299
-
Douglas Gregor authored
llvm::SmallVector, using data() instead of &[0]. The PCH testsuite now runs cleanly (again). llvm-svn: 72292
-
Ted Kremenek authored
ProtoRefs.data() instead of &ProtoRefs[0] to access the raw buffer. llvm-svn: 72291
-
- May 22, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 72284
-
Daniel Dunbar authored
non-argument names, pass the tokens through. llvm-svn: 72283
-
Douglas Gregor authored
call other member functions of class templates, including after template instantiation. No functionality change. llvm-svn: 72282
-
Douglas Gregor authored
expressions. This change introduces another AST node, CXXUnresolvedMemberExpr, that captures member references (x->m, x.m) when the base of the expression (the "x") is type-dependent, and we therefore cannot resolve the member reference yet. Note that our parsing of member references for C++ is still quite poor, e.g., we don't handle x->Base::m or x->operator int. llvm-svn: 72281
-
Argyrios Kyrtzidis authored
(T(*)(int[x+y])); is an (invalid) paren expression, but "x+y" will be parsed as part of the (rejected) type-id, so unnecessary Action calls are made for an unused (and possibly leaked) "x+y". Use a different scheme, similar to parsing inline methods. The parenthesized tokens are cached, the context that follows is determined (possibly by parsing a cast-expression), and then we re-introduce the cached tokens into the token stream and parse them appropriately. llvm-svn: 72279
-
Argyrios Kyrtzidis authored
The TokenLexer may encounter annotations if the parser enters them using Preprocessor::EnterTokenStream. So check for annotation before using the Token's IdentifierInfo. llvm-svn: 72278
-
Fariborz Jahanian authored
compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. llvm-svn: 72275
-
Mike Stump authored
improve codegen in some cases. llvm-svn: 72273
-
Daniel Dunbar authored
- We could just warn about -fno-unit-at-a-time, but in practice people using it probably aren't going to get what they want out of clang. Also, use "clang" specified error for unsupported things instead of driver unsupported error. llvm-svn: 72272
-
Daniel Dunbar authored
- PR4242. llvm-svn: 72268
-
Fariborz Jahanian authored
and objects of this class are derived from 'NSProxy'. Under such conditions, which means that every method possible is implemented in the class, we should not issue "Method definition not found" warnings. llvm-svn: 72267
-
Argyrios Kyrtzidis authored
There are no unnecessary action calls period (courtesy of the annotation scheme) and too many 'this means'.. llvm-svn: 72263
-
Sanjiv Gupta authored
Targets like PIC16 generate Static decls for automatic variables, emit the appropriate debug descriptor as well in that case. llvm-svn: 72261
-
Argyrios Kyrtzidis authored
Handle correctly a very ugly part of the C++ syntax. We cannot disambiguate between a parenthesized type-id and a paren expression without considering the context past the parentheses. Behold: (T())x; - type-id (T())*x; - type-id (T())/x; - expression (T()); - expression llvm-svn: 72260
-
Argyrios Kyrtzidis authored
Factor the compound literal parsing out from ParseParenExpression and into a new ParseCompoundLiteralExpression. No functionality change. llvm-svn: 72259
-