[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


================
@@ -212,9 +232,13 @@ getFunctionSourceCode(const FunctionDecl *FD, const DeclContext *TargetContext,
           }
         }
         const NamedDecl *ND = Ref.Targets.front();
-        const std::string Qualifier =
+        std::string Qualifier =
             getQualification(AST, TargetContext,
                              SM.getLocForStartOfFile(SM.getMainFileID()), ND);
+        if (ND->getDeclContext()->isDependentContext()) {
+          if (llvm::isa<TypeDecl>(ND))
----------------
5chmidti wrote:

Merge these two `if`s with a `&&`

https://github.com/llvm/llvm-project/pull/95235


More information about the cfe-commits mailing list