[clang] [clang-tools-extra] [clangd] Autocomplete fixes for methods (PR #165916)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 7 23:07:21 PST 2026


================
@@ -1777,20 +1800,31 @@ class CodeCompletionDeclConsumer : public VisibleDeclConsumer {
     this->BaseType = BaseType;
   }
 
+  void setIsInDeclarationContext(bool IsInDeclarationContext) {
+    this->IsInDeclarationContext = IsInDeclarationContext;
+  }
+
+  void setIsAddressOfOperand(bool isAddressOfOperand) {
----------------
HighCommander4 wrote:

nit: capitalize parameter name (and use `this->` in body to disambiguate, as in `setIsInDeclarationContext`)

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


More information about the cfe-commits mailing list