Initiallize property getters as being property accessors (NFC)
authorAdrian Prantl <aprantl@apple.com>
Tue, 14 Apr 2020 22:55:00 +0000 (15:55 -0700)
committerAdrian Prantl <aprantl@apple.com>
Tue, 14 Apr 2020 22:56:17 +0000 (15:56 -0700)
This is a no-op because it is set later on unconditionally again, but
it's far less confusing this way and consistent with how the setters
are initialized.

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

index 8598e41..0a3e873 100644 (file)
@@ -7622,7 +7622,7 @@ bool TypeSystemClang::AddObjCClassProperty(
                         : class_interface_decl->lookupClassMethod(getter_sel);
   if (!getter_sel.isNull() && !getter) {
     const bool isVariadic = false;
-    const bool isPropertyAccessor = false;
+    const bool isPropertyAccessor = true;
     const bool isSynthesizedAccessorStub = false;
     const bool isImplicitlyDeclared = true;
     const bool isDefined = false;