[clang] [Clang] Fix Microsoft ABI inheritance model when member pointer is used in a base specifier (PR #91990)

Max Winkler via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 5 22:22:24 PDT 2024


================
@@ -598,7 +599,9 @@ class CXXRecordDecl : public RecordDecl {
     return !hasDefinition() || !isDynamicClass() || hasAnyDependentBases();
   }
 
-  void setIsParsingBaseSpecifiers() { data().IsParsingBaseSpecifiers = true; }
+  void setIsParsingBaseSpecifiers(bool to = true) {
----------------
MaxEW707 wrote:

```suggestion
  void setIsParsingBaseSpecifiers(bool To = true) {
```

I am surprised clang-format didn't complain about starting with a lowercase for variables.
I can't think of a better name. I respond here if I do :).

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


More information about the cfe-commits mailing list