[NFC] give getParentFunctionOrMethod a 'Lexical' parameter
authorErich Keane <erich.keane@intel.com>
Fri, 22 Jul 2022 19:52:26 +0000 (12:52 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 22 Jul 2022 19:52:26 +0000 (12:52 -0700)
commit70c62f4cadbec132c4ab5f939648d10ca6338b15
treee3386ce4eddb58e0a18d271ec89d20c011d5fe05
parent3ff86f961094306d1a3f219a44614e9cfd1dbd6b
[NFC] give getParentFunctionOrMethod a 'Lexical' parameter

Split up from the deferred concepts implementation, this function is
useful for determining the containing function of a different function.
However, in some cases it is valuable to instead get the lexical parent.
This adds a parameter to the existing function to allow a 'Lexical'
parameter to instead select the lexical parent.
clang/include/clang/AST/DeclBase.h
clang/lib/AST/DeclBase.cpp