diff options
| author | John McCall <rjmccall@apple.com> | 2009-10-18 01:05:36 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2009-10-18 01:05:36 +0000 |
| commit | 1700197e65896dc0e4697f3b802cb2e1bea0e850 (patch) | |
| tree | 9a01d3add7c506b928f02135b569e3f7ee6ec2ea /clang/lib/Index/ASTVisitor.h | |
| parent | 91ea404e98133355be6edb051bc3cbcfdee61f1e (diff) | |
| download | bcm5719-llvm-1700197e65896dc0e4697f3b802cb2e1bea0e850.tar.gz bcm5719-llvm-1700197e65896dc0e4697f3b802cb2e1bea0e850.zip | |
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
Diffstat (limited to 'clang/lib/Index/ASTVisitor.h')
| -rw-r--r-- | clang/lib/Index/ASTVisitor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Index/ASTVisitor.h b/clang/lib/Index/ASTVisitor.h index e18aa57b4d1..0ae78fb74ff 100644 --- a/clang/lib/Index/ASTVisitor.h +++ b/clang/lib/Index/ASTVisitor.h @@ -123,14 +123,14 @@ public: BaseTypeLocVisitor::Visit(TL); } - void VisitArrayLoc(ArrayLoc TL) { - BaseTypeLocVisitor::VisitArrayLoc(TL); + void VisitArrayLoc(ArrayTypeLoc TL) { + BaseTypeLocVisitor::VisitArrayTypeLoc(TL); if (TL.getSizeExpr()) Visit(TL.getSizeExpr()); } - void VisitFunctionLoc(FunctionLoc TL) { - BaseTypeLocVisitor::VisitFunctionLoc(TL); + void VisitFunctionTypeLoc(FunctionTypeLoc TL) { + BaseTypeLocVisitor::VisitFunctionTypeLoc(TL); for (unsigned i = 0; i != TL.getNumArgs(); ++i) Visit(TL.getArg(i)); } |

