<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 - libclang ExceptionSpecificationKind regression"
   href="https://bugs.llvm.org/show_bug.cgi?id=37414">37414</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libclang ExceptionSpecificationKind regression
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jbcoe@me.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Python tests fail with libclang from trunk

Running cindex tests with trunk libclang I get:

```
======================================================================
FAIL: test_exception_specification_kind
(cindex.test_exception_specification_kind.TestExceptionSpecificationKind)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/Users/jon/DEV/FFIG/ffig/clang-tests/cindex/test_exception_specification_kind.py",
line 30, in test_exception_specification_kind
    self.assertListEqual(declarations, expected)
AssertionError: Lists differ: [('sq[93 chars]PT), ('square3',
ExceptionSpecificationKind.UNINSTANTIATED)] != [('sq[93 chars]PT), ('square3',
ExceptionSpecificationKind.COMPUTED_NOEXCEPT)]

First differing element 2:
('square3', ExceptionSpecificationKind.UNINSTANTIATED)
('square3', ExceptionSpecificationKind.COMPUTED_NOEXCEPT)

  [('square1', ExceptionSpecificationKind.NONE),
   ('square2', ExceptionSpecificationKind.BASIC_NOEXCEPT),
-  ('square3', ExceptionSpecificationKind.UNINSTANTIATED)]
?                                          ----------

+  ('square3', ExceptionSpecificationKind.COMPUTED_NOEXCEPT)]
?                                         ++++    +++++++++
```

AppleClang does not give me this error and the test code:

```
source = """int square1(int x);
            int square2(int x) noexcept;
            int square3(int x) noexcept(noexcept(x * x));"""
```

Seems to me to be consistent with the old result
`ExceptionSpecificationKind.COMPUTED_NOEXCEPT`. I presume something has changed
in libclang and was not picked up by a lower-level test.</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>