diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 21:35:02 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 21:35:02 +0000 |
| commit | f24249554b3dc5d2cac5e34d61586aaec773eeec (patch) | |
| tree | f13ae79672dbd7767d20c3a1ba7b325deef6d389 /clang/lib | |
| parent | 63afa49add07b89829b83291b914a280d41debbd (diff) | |
| download | bcm5719-llvm-f24249554b3dc5d2cac5e34d61586aaec773eeec.tar.gz bcm5719-llvm-f24249554b3dc5d2cac5e34d61586aaec773eeec.zip | |
Move the 'ResolveLocationInAST' function from the Frontend library to the Index library.
Also, cut down its comments; more comments will be added to ASTLocation.
llvm-svn: 74860
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Index/ResolveLocation.cpp (renamed from clang/lib/Frontend/ResolveLocation.cpp) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/ResolveLocation.cpp b/clang/lib/Index/ResolveLocation.cpp index 9fbae30a485..b9df7029048 100644 --- a/clang/lib/Frontend/ResolveLocation.cpp +++ b/clang/lib/Index/ResolveLocation.cpp @@ -8,11 +8,11 @@ //===----------------------------------------------------------------------===// // // This defines the ResolveLocationInAST function, which resolves a -// source location into a <Decl *, Stmt *> pair. +// source location into a ASTLocation. // //===----------------------------------------------------------------------===// -#include "clang/Frontend/Utils.h" +#include "clang/Index/Utils.h" #include "clang/Index/ASTLocation.h" #include "clang/AST/DeclVisitor.h" #include "clang/AST/StmtVisitor.h" @@ -322,7 +322,7 @@ void LocResolverBase::print(Stmt *Node) { /// \brief Returns the AST node that a source location points to. /// -ASTLocation clang::ResolveLocationInAST(ASTContext &Ctx, SourceLocation Loc) { +ASTLocation idx::ResolveLocationInAST(ASTContext &Ctx, SourceLocation Loc) { if (Loc.isInvalid()) return ASTLocation(); |

