title: Warning for calling static methods via instance object in C++
body: <p>I know calling static method via instance object is <a href="https://stackoverflow.com/questions/2207320/can-i-forbid-calling-static-methods-on-object-instance">explicitly allowed</a>. </p>
  
  <p>But if I want to avoid it manually, how can I to be warned when the calling happens? I mean, is there some compiler options (or some special attributes) to check the situation?</p>
  
  <p>I am using Clang, but any other compiler specific features are also welcome.</p>