brintos

brintos / llvm-project-archived public Read only

0
0
Text · 523 B · d422684 Raw
22 lines · plain
1.. title:: clang-tidy - bugprone-virtual-near-miss2 3bugprone-virtual-near-miss4==========================5 6Warn if a function is a near miss (i.e. the name is very similar and7the function signature is the same) to a virtual function from a base8class.9 10Example:11 12.. code-block:: c++13 14  struct Base {15    virtual void func();16  };17 18  struct Derived : Base {19    virtual void funk();20    // warning: 'Derived::funk' has a similar name and the same signature as virtual method 'Base::func'; did you mean to override it?21  };22