]> granicus.if.org Git - clang/commit
Introduce the ResolveLocationInAST function which takes an ASTContext and a SourceLoc...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 25 Jun 2009 18:22:41 +0000 (18:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 25 Jun 2009 18:22:41 +0000 (18:22 +0000)
commit53d4c14a989523afc6aa8fff275ec3ab26eb6c18
tree03068ffcdac0d3405c8ff16a3626870feb5bce39
parent106c9981f18084e60602244f1feaeabbbe8ab5e8
Introduce the ResolveLocationInAST function which takes an ASTContext and a SourceLocation and it resolves it into a <Decl*, Stmt*> pair.

Decl* is the declaration associated with this source location and Stmt* is the statement/expression that the location points to.
If the location does not point to a statement node, Stmt* is null.

ResolveLocationInAST (along with converting a file:line:column triplet to a SourceLocation) will be useful for an IDE client and for clang's test suite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74197 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/Utils.h
lib/Frontend/CMakeLists.txt
lib/Frontend/ResolveLocation.cpp [new file with mode: 0644]