]> granicus.if.org Git - clang/commit
Introduce Decl::getParentFunctionOrMethod which if the decl is defined inside
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Sep 2011 02:45:33 +0000 (02:45 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Sep 2011 02:45:33 +0000 (02:45 +0000)
commitc8680f46970a5a53d07e05edd93657e64764da3c
tree101b82ab8c2522f4ce799de0d2fd9c82ffc2e7ee
parent4f8de278b73f438f1911128ae9c8ce27c2b53546
Introduce Decl::getParentFunctionOrMethod which if the decl is defined inside
a function/method/block it returns the corresponding DeclContext, otherwise it returns null.

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