We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb03ecf commit dcff453Copy full SHA for dcff453
clang/test/SemaCXX/unnecessary-virtual-specifier.cpp
@@ -24,5 +24,6 @@ struct Bar final : BarBase {
24
void virt() override {};
25
// `virtual ... override;` is a common pattern, so don't warn
26
virtual int virt(int) override;
27
+ virtual int virt(bool); // expected-warning {{virtual method}}
28
int nonvirt();
29
};
0 commit comments