2008-10-26 08:56:18 +08:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
|
|
|
add_clang_library(clangAST
|
2008-11-20 02:46:39 +08:00
|
|
|
APValue.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
ASTConsumer.cpp
|
|
|
|
ASTContext.cpp
|
|
|
|
Decl.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
DeclBase.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
DeclCXX.cpp
|
|
|
|
DeclGroup.cpp
|
|
|
|
DeclObjC.cpp
|
2009-05-30 08:08:05 +08:00
|
|
|
DeclPrinter.cpp
|
2009-02-05 03:02:06 +08:00
|
|
|
DeclTemplate.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
DeclarationName.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
Expr.cpp
|
|
|
|
ExprCXX.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
ExprConstant.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
InheritViz.cpp
|
Introduce a representation for types that we referred to via a
qualified name, e.g.,
foo::x
so that we retain the nested-name-specifier as written in the source
code and can reproduce that qualified name when printing the types
back (e.g., in diagnostics). This is PR3493, which won't be complete
until finished the other tasks mentioned near the end of this commit.
The parser's representation of nested-name-specifiers, CXXScopeSpec,
is now a bit fatter, because it needs to contain the scopes that
precede each '::' and keep track of whether the global scoping
operator '::' was at the beginning. For example, we need to keep track
of the leading '::', 'foo', and 'bar' in
::foo::bar::x
The Action's CXXScopeTy * is no longer a DeclContext *. It's now the
opaque version of the new NestedNameSpecifier, which contains a single
component of a nested-name-specifier (either a DeclContext * or a Type
*, bitmangled).
The new sugar type QualifiedNameType composes a sequence of
NestedNameSpecifiers with a representation of the type we're actually
referring to. At present, we only build QualifiedNameType nodes within
Sema::getTypeName. This will be extended to other type-constructing
actions (e.g., ActOnClassTemplateId).
Also on the way: QualifiedDeclRefExprs will also store a sequence of
NestedNameSpecifiers, so that we can print out the property
nested-name-specifier. I expect to also use this for handling
dependent names like Fibonacci<I - 1>::value.
llvm-svn: 67265
2009-03-19 08:18:19 +08:00
|
|
|
NestedNameSpecifier.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
ParentMap.cpp
|
2009-07-19 08:40:45 +08:00
|
|
|
RecordLayoutBuilder.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
Stmt.cpp
|
|
|
|
StmtDumper.cpp
|
|
|
|
StmtIterator.cpp
|
|
|
|
StmtPrinter.cpp
|
2009-07-28 08:33:38 +08:00
|
|
|
StmtProfile.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
StmtViz.cpp
|
2009-04-02 03:11:05 +08:00
|
|
|
TemplateName.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
Type.cpp
|
2009-08-19 20:02:15 +08:00
|
|
|
TypeLoc.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
)
|
2009-03-17 07:06:59 +08:00
|
|
|
|
|
|
|
add_dependencies(clangAST ClangDiagnosticAST)
|