зеркало из https://github.com/microsoft/clang-1.git
73a0d889ed
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 |
||
---|---|---|
.. | ||
Analysis | ||
CodeGen | ||
CodeGenObjC | ||
Coverage | ||
Driver | ||
Lexer | ||
Misc | ||
Parser | ||
Preprocessor | ||
Rewriter | ||
Sema | ||
SemaCXX | ||
SemaObjC | ||
SemaObjCXX | ||
Serialization | ||
Makefile | ||
TestRunner.sh |