================
@@ -122,7 +122,6 @@ class SpecialCaseList {
// Returns zero if no match is found.
unsigned match(StringRef Query) const;
- private:
StringMap<std::pair<GlobPattern, unsigned>> Globs;
----------------
kadircet wrote:
these are members of `SpecialCaseList::Matcher`. `WarningsSpecialCaseList` is
just inheriting from `SpecialCaseList`. Hence it won't have visibility into
protected members of a nested class.
e.g. something like:
```cpp
$ cat a.cc
struct Foo {
class Bar {
protected:
int x;
};
};
struct Derived : public Foo {
void x() {
Bar b;
b.x = 3; // visibility error
}
};
```
`Derived` can't access `Foo::Bar::x`.
https://github.com/llvm/llvm-project/pull/112517
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits