lebedev.ri added inline comments.

================
Comment at: test/clang-tidy/misc-class-inherit-from-struct.cpp:13
+};
+
+class C
----------------
lebedev.ri wrote:
> Missing cases:
> * struct inheriting from struct
> * Different inheritance visibility:
>   * You only check the default visibility
>   * What if class explicitly-`public`ly inherits from `struct`?
>   * What if class explicitly-`private`ly inherits from `struct`?
>   * What if class explicitly-`protected`ly inherits from `struct`?
>   * Same for `struct` inheriting from struct?
Also, i have only thought about it, there are no tests about what happens if 
you (say, publicly) inherit from `struct`, that does not have anything `public`.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52552



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to