<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Clang Static Code Analyzer does not report 'Switch' Statement as a branch condition."
   href="http://llvm.org/bugs/show_bug.cgi?id=18157">18157</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang Static Code Analyzer does not report 'Switch' Statement as a branch condition.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>prashant.purohit@kpitcummins.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am new to Clang Static Code analyzer internals.

Currently, I am trying to get all the branch conditions in a function using
‘check::BranchCondition’ call back function.
I am successful in detecting all the branch conditions like if, while,
do..while, for and ternary operator condition except switch condition.

I have checked this with already existing checks (e.g.- DumpTraversal) which
uses ‘check::BranchCondition’ call back function, these checks
also do not detect ‘switch’ statements.

Kindly help me in getting switch statements using ‘check::BranchCondition’ call
back function.

Thanks,
Prashant S. Purohit</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>