[lldb][NFC] Move ClangExpressionDeclMap's persistent decl search into its own function
authorRaphael Isemann <teemperor@gmail.com>
Wed, 20 Nov 2019 12:41:44 +0000 (13:41 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 20 Nov 2019 13:17:35 +0000 (14:17 +0100)
commitc34478f5f6c7ef1ae8fb3605fbdec0634d543fed
treefdc50789fd2358b41881aa71df7a877327c49b17
parentb80e483c4205d216f6648d7e217183694fe9a55e
[lldb][NFC] Move ClangExpressionDeclMap's persistent decl search into its own function

Searching persistent decls is a small subset of the things
FindExternalVisibleDecls does. It should be its own function instead
of being encapsulated in this `do { } while(false);` pattern.
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h