Author: Aditya Medhane
Date: 2026-06-28T21:05:58-04:00
New Revision: 49cf5a7ba0ab76a1f700ce6407cea1713741bc01

URL: 
https://github.com/llvm/llvm-project/commit/49cf5a7ba0ab76a1f700ce6407cea1713741bc01
DIFF: 
https://github.com/llvm/llvm-project/commit/49cf5a7ba0ab76a1f700ce6407cea1713741bc01.diff

LOG: [clangd] Remove unused onlyValue<bool> overload (NFC) (#206312)

BundledEntry has three `std::string` members and no bool member, so the
bool overload of onlyValue can never be instantiated. It has been dead
since it was added and trips -Wunused-template.

NFC. Part of #202945.

Added: 
    

Modified: 
    clang-tools-extra/clangd/CodeComplete.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/CodeComplete.cpp 
b/clang-tools-extra/clangd/CodeComplete.cpp
index 9f7da6b6f8fac..5f70dfe0dfd71 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -556,14 +556,6 @@ struct CodeCompletionBuilder {
     return &(B->*Member);
   }
 
-  template <bool BundledEntry::*Member> const bool *onlyValue() const {
-    auto B = Bundled.begin(), E = Bundled.end();
-    for (auto *I = B + 1; I != E; ++I)
-      if (I->*Member != B->*Member)
-        return nullptr;
-    return &(B->*Member);
-  }
-
   std::string summarizeReturnType() const {
     if (auto *RT = onlyValue<&BundledEntry::ReturnType>())
       return *RT;


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to