From 2d6051aa5b2f52c295ce1124bbc788b4d0f190c6 Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Fri, 26 May 2023 03:37:25 +0000 Subject: [PATCH] Bug 1834859 - Handle fields in VisitCXXDependentScopeMemberExpr. r=asuth Differential Revision: https://phabricator.services.mozilla.com/D179182 --- build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp b/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp index 259303409e85..1b7ae5d564f4 100644 --- a/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp +++ b/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp @@ -2021,6 +2021,10 @@ public: std::string Mangled = getMangledName(CurMangleContext, F); visitIdentifier("use", "function", getQualifiedName(F), Loc, Mangled, F->getType(), getContext(Loc)); + } else if (const FieldDecl *F = dyn_cast(D)) { + std::string Mangled = getMangledName(CurMangleContext, F); + visitIdentifier("use", "field", getQualifiedName(F), Loc, Mangled, + F->getType(), getContext(Loc)); } }