[clang-tools-extra] [clangd] Let DefineOutline tweak handle member functions (PR #95235)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 24 08:54:10 PDT 2024
================
@@ -144,8 +144,13 @@ getQualification(ASTContext &Context, const DeclContext *DestContext,
// since we stored inner-most parent first.
std::string Result;
llvm::raw_string_ostream OS(Result);
- for (const auto *Parent : llvm::reverse(Parents))
+ for (const auto *Parent : llvm::reverse(Parents)) {
+ if (Parent != *Parents.rbegin() && Parent->isDependent() &&
+ Parent->getAsRecordDecl() &&
+ Parent->getAsRecordDecl()->getDescribedClassTemplate())
----------------
5chmidti wrote:
Save the duplicate call to `getAsRecordDecl` by adding a variable? (+-)
https://github.com/llvm/llvm-project/pull/95235
More information about the cfe-commits
mailing list