Extra Clang Tools 5 documentation

clang-tidy - misc-virtual-near-miss

«  misc-use-after-move   ::   Contents   ::   modernize-avoid-bind  »

misc-virtual-near-miss

Warn if a function is a near miss (ie. the name is very similar and the function signiture is the same) to a virtual function from a base class.

Example:

struct Base {
  virtual void func();
};

struct Derived : Base {
  virtual funk();
  // warning: 'Derived::funk' has a similar name and the same signature as virtual method 'Base::func'; did you mean to override it?
};

«  misc-use-after-move   ::   Contents   ::   modernize-avoid-bind  »