]> granicus.if.org Git - clang/commit
Relax the assertion in ASTLocation's ctor: if the decl is not the immediate
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Jul 2009 06:58:08 +0000 (06:58 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Jul 2009 06:58:08 +0000 (06:58 +0000)
commitadfc8d14ce2e5611aa366cb9135fa20095b7d191
tree9e26d8fc7c0edad7bdcf9f769c3cded6ae1a9e39
parent24ff030f400b261c142bab748bf2d26e5aaa948c
Relax the assertion in ASTLocation's ctor: if the decl is not the immediate
parent of the stmt, find the immediate parent for the stmt.

This is because sometimes we cannot get the immediate decl of the stmt when
creating the ASTLocation. We can only get a parent of the stmt.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76159 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Index/ASTLocation.h
lib/Index/ASTLocation.cpp