<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Unnecessary notes from cplusplus.VirtualCall"
   href="https://bugs.llvm.org/show_bug.cgi?id=39075">39075</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unnecessary notes from cplusplus.VirtualCall
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dcoughlin@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kalle.huttunen@ge.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The checker for virtual calls made in constructors produces unnecessary notes
about where the constructor was called from:

library.hpp:2:11: warning: Call to virtual function during construction
[clang-analyzer-optin.cplusplus.VirtualCall]
    foo() { f(); }
          ^
main.cpp:3:18: note: Calling default constructor for 'foo'
  int main() { foo f; }

The call to a virtual function is present in the constructor regardless of
where the constructor is used (or if it's not used at all). This note is
causing issues when running the checker in clang-tidy (see
<a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - clang-analyzer-* checks generate warnings from non-user code"
   href="show_bug.cgi?id=38484">https://bugs.llvm.org/show_bug.cgi?id=38484</a>).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>