- May 27, 2009
-
-
Douglas Gregor authored
instantiation of a declaration from the template version (or version that lives in a template) and a given set of template arguments. This needs much, much more testing, but it suffices for simple examples like typedef T* iterator; iterator begin(); llvm-svn: 72461
-
Douglas Gregor authored
overloaded operator[] or overloaded postfix unary operator (++, --). Thanks to Eli for finding this bug! llvm-svn: 72460
-
Douglas Gregor authored
llvm-svn: 72440
-
- May 26, 2009
-
-
Douglas Gregor authored
llvm-svn: 72433
-
Douglas Gregor authored
an integral constant expression, maintain a cache of the value and the is-an-ICE flag within the VarDecl itself. This eliminates exponential-time behavior of the Fibonacci template metaprogram. llvm-svn: 72428
-
Anders Carlsson authored
llvm-svn: 72417
-
- May 25, 2009
-
-
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
-
- May 23, 2009
-
-
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
-
- May 22, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 72284
-
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
-
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
-
Douglas Gregor authored
llvm-svn: 72236
-
Douglas Gregor authored
llvm-svn: 72234
-
Douglas Gregor authored
can. Also, delay semantic analysis of initialization for value-dependent as well as type-dependent expressions, since we can't always properly type-check a value-dependent expression. llvm-svn: 72233
-
- May 21, 2009
-
-
Douglas Gregor authored
llvm-svn: 72229
-
Fariborz Jahanian authored
setting of NSObject attribute. llvm-svn: 72225
-
Douglas Gregor authored
llvm-svn: 72220
-
Fariborz Jahanian authored
llvm-svn: 72219
-
Douglas Gregor authored
llvm-svn: 72218
-
Douglas Gregor authored
llvm-svn: 72217
-
Douglas Gregor authored
llvm-svn: 72216
-
Douglas Gregor authored
redundant functionality. The result (ASTOwningVector) lives in clang/Parse/Ownership.h and is used by both the parser and semantic analysis. No intended functionality change. llvm-svn: 72214
-
Sebastian Redl authored
Avoid using the built-in type checker for assignment in C++ when classes are involved. Patch by Vyacheslav Kononenko. llvm-svn: 72212
-
Jay Foad authored
llvm-svn: 72210
-
Douglas Gregor authored
llvm-svn: 72199
-
Douglas Gregor authored
passes the "isStmtExpr" flag, to suppress warnings about unused expressions. llvm-svn: 72190
-
Douglas Gregor authored
llvm::SmallVector that owns all of the AST nodes inside of it. This RAII class is used to ensure proper destruction of AST nodes when template instantiation fails. llvm-svn: 72186
-
- May 20, 2009
-
-
Douglas Gregor authored
temporaries are generated for some object-constructing expressions in templates that are not type-dependent. Also, be sure to introduce the variable from a CXXConditionDeclExpr into the set of instantiated local variables. llvm-svn: 72185
-
Douglas Gregor authored
due to C++ type construction of the form T(a1, a2, ..., aN). llvm-svn: 72183
-
Douglas Gregor authored
describe the construction of a value of a given type using function syntax, e.g., T(a1, a2, ..., aN) when the type or any of its arguments are type-dependent. In this case, we don't know what kind of type-construction this will be: it might construct a temporary of type 'T' (which might be a class or non-class type) or might perform a conversion to type 'T'. Also, implement printing of and template instantiation for this new expression type. Due to the change in Sema::ActOnCXXTypeConstructExpr, our existing tests cover template instantiation of this new expression node. llvm-svn: 72176
-
Fariborz Jahanian authored
Still more to do. llvm-svn: 72173
-
Zhongxing Xu authored
llvm-svn: 72158
-
Douglas Gregor authored
need template instantiation logic. Remove one FIXME by instantiating the callee in a non-type-dependent CXXOperatorCallExpr. llvm-svn: 72145
-
Douglas Gregor authored
llvm-svn: 72144
-
Douglas Gregor authored
llvm-svn: 72143
-
Douglas Gregor authored
and it isn't clear exactly what it's supposed to mean. Thanks Eli! llvm-svn: 72142
-
Douglas Gregor authored
llvm-svn: 72139
-