clang-1/test
Argyrios Kyrtzidis 73a0d889ed Implement support for C++ direct initializers in declarations, e.g. "int x(1);".
This is how this kind of initializers appear in the AST:
-The Init expression of the VarDecl is a functional type construction (of the VarDecl's type).
-The new VarDecl::hasCXXDirectInitializer() returns true.

e.g, for "int x(1);":
-VarDecl 'x' has Init with expression "int(1)" (CXXFunctionalCastExpr).
-hasCXXDirectInitializer() of VarDecl 'x' returns true.

A major benefit is that clients that don't particularly care about which exactly form was the initializer can handle both cases without special case code.
Note that codegening works now for "int x(1);" without any changes to CodeGen.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57178 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-06 17:10:33 +00:00
..
Analysis Enhance NSError** checking with analogous checking for CFErrorRef*. 2008-10-01 23:24:09 +00:00
CodeGen fix incorrect rdar number. 2008-10-06 07:43:28 +00:00
CodeGenObjC NeXT: Update to use CreateRuntimeFunction for the routines it imports. 2008-10-01 01:06:06 +00:00
Coverage Improve C language testing coverage. 2008-10-05 06:36:33 +00:00
Driver Add -rewrite-macros test case. 2008-10-05 01:39:04 +00:00
Lexer Test case for previous commit (Workaround gcc bug causing crash on our 2008-09-05 03:23:51 +00:00
Misc fix bogus run line. 2008-08-18 19:54:48 +00:00
Parser Allow variadic arguments without named ones for C++, e.g. "void(...);" 2008-10-06 00:07:55 +00:00
Preprocessor switch to using -verify 2008-10-04 19:43:25 +00:00
Rewriter Teach block rewriter to replace '^' with '*' in VarDecls. 2008-09-23 19:24:41 +00:00
Sema "Enhance" CheckArithmeticConstantExpression to accept ?: with a constant 2008-10-06 05:42:39 +00:00
SemaCXX Implement support for C++ direct initializers in declarations, e.g. "int x(1);". 2008-10-06 17:10:33 +00:00
SemaObjC Fix <rdar://problem/6191148> [sema] Objective-C method lookup (at global scope) fails to handle overloaded selectors properly. 2008-09-30 14:38:43 +00:00
SemaObjCXX Add carbon.cpp and cocoa.mm tests 2008-08-23 22:21:00 +00:00
Serialization Added "complex.c" (a copy of test/Codegen/complex.) to the serialization 2007-11-29 19:05:51 +00:00
Makefile Another attempt to make test/Makefile return correct error code. 2008-09-17 18:08:07 +00:00
TestRunner.sh Remove automagic substitution of %llvmgcc 2008-09-27 00:47:03 +00:00