llvm-project/clang/test/Analysis/virtualcall.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
200 B
C
Raw Normal View History

namespace header {
class Z {
public:
Z() {
foo(); // impure-warning {{Call to virtual method 'Z::foo' during construction bypasses virtual dispatch}}
}
virtual int foo();
};
}