commit | c8680f46970a5a53d07e05edd93657e64764da3c | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Wed Sep 28 02:45:33 2011 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Wed Sep 28 02:45:33 2011 +0000 |
tree | 101b82ab8c2522f4ce799de0d2fd9c82ffc2e7ee | |
parent | 4f8de278b73f438f1911128ae9c8ce27c2b53546 [diff] |
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