Clone the full Type hierarchy into the TypeLoc hierarchy. Normalize
TypeLoc class names to be $(Type classname)Loc. Rewrite the visitor. Provide skeleton implementations for all the new TypeLocs. Handle all cases in PCH. Handle a few more cases when inserting location information in SemaType. It should be extremely straightforward to add new location information to existing TypeLoc objects now. llvm-svn: 84386
Showing
- clang/include/clang/AST/TypeLoc.h 275 additions, 234 deletionsclang/include/clang/AST/TypeLoc.h
- clang/include/clang/AST/TypeLocNodes.def 12 additions, 34 deletionsclang/include/clang/AST/TypeLocNodes.def
- clang/include/clang/AST/TypeLocVisitor.h 18 additions, 26 deletionsclang/include/clang/AST/TypeLocVisitor.h
- clang/include/clang/Index/ASTLocation.h 1 addition, 1 deletionclang/include/clang/Index/ASTLocation.h
- clang/lib/AST/Decl.cpp 9 additions, 2 deletionsclang/lib/AST/Decl.cpp
- clang/lib/AST/TypeLoc.cpp 38 additions, 172 deletionsclang/lib/AST/TypeLoc.cpp
- clang/lib/Frontend/PCHReader.cpp 111 additions, 36 deletionsclang/lib/Frontend/PCHReader.cpp
- clang/lib/Frontend/PCHWriter.cpp 109 additions, 38 deletionsclang/lib/Frontend/PCHWriter.cpp
- clang/lib/Index/ASTLocation.cpp 1 addition, 1 deletionclang/lib/Index/ASTLocation.cpp
- clang/lib/Index/ASTVisitor.h 4 additions, 4 deletionsclang/lib/Index/ASTVisitor.h
- clang/lib/Index/DeclReferenceMap.cpp 4 additions, 4 deletionsclang/lib/Index/DeclReferenceMap.cpp
- clang/lib/Index/ResolveLocation.cpp 10 additions, 10 deletionsclang/lib/Index/ResolveLocation.cpp
- clang/lib/Sema/SemaType.cpp 92 additions, 73 deletionsclang/lib/Sema/SemaType.cpp
Loading
Please register or sign in to comment