<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54384>54384</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format crashes on dozens of files in clang/test/
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            crash
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            owenca
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          owenca
      </td>
    </tr>
</table>

<pre>
    clang-format crashes on the following files in `clang/test/`:
```
Analysis/inline-plist.c
Sema/sizeless-1.c
Sema/attr-external-source-symbol.c
Sema/attr-assume.c
Parser/ms-inline-asm.c
CodeGen/ms-inline-asm.c
OpenMP/metadirective_device_kind_codegen.c
OpenMP/declare_variant_messages.c
OpenMP/declare_variant_ast_print.c
OpenMP/declare_variant_construct_codegen_1.c
test/Driver/ignore-xcoff-visibility.cpp
test/SemaCXX/sizeless-1.cpp
test/CoverageMapping/macro-expressions.cpp
test/Parser/cxx0x-attributes.cpp
test/Parser/MicrosoftExtensions.cpp
test/Parser/pragma-attribute.cpp
test/Preprocessor/cxx_oper_keyword_ms_compat.cpp
test/OpenMP/teams_distribute_simd_if_messages.cpp
test/OpenMP/distribute_simd_if_messages.cpp
test/OpenMP/parallel_for_if_messages.cpp
test/OpenMP/target_enter_data_if_messages.cpp
test/OpenMP/masked_messages_attr.cpp
test/OpenMP/target_teams_if_messages.cpp
test/OpenMP/distribute_parallel_for_simd_if_messages.cpp
test/OpenMP/task_if_messages.cpp
test/OpenMP/target_update_if_messages.cpp
test/OpenMP/parallel_if_messages.cpp
test/OpenMP/target_data_if_messages.cpp
test/OpenMP/target_parallel_for_if_messages.cpp
test/OpenMP/unroll_codegen_unroll_for_attr.cpp
test/OpenMP/teams_distribute_parallel_for_if_messages.cpp
test/OpenMP/target_parallel_if_messages.cpp
test/OpenMP/target_if_messages.cpp
test/OpenMP/for_simd_if_messages.cpp
test/OpenMP/parallel_for_simd_if_messages.cpp
test/OpenMP/target_exit_data_if_messages.cpp
test/OpenMP/metadirective_device_kind_codegen.cpp
test/OpenMP/distribute_parallel_for_if_messages.cpp
test/OpenMP/target_teams_distribute_if_messages.cpp
test/OpenMP/target_teams_distribute_parallel_for_if_messages.cpp
test/OpenMP/cancel_if_messages.cpp
test/OpenMP/parallel_sections_if_messages.cpp
test/OpenMP/teams_distribute_parallel_for_simd_num_teams_messages_attr.cpp
test/OpenMP/parallel_master_if_messages.cpp
test/OpenMP/target_parallel_for_simd_if_messages.cpp
```
The crash is due the assertion failure below:
```
Assertion failed: (OpeningParen.is(tok::l_paren)), function parseParens, file TokenAnnotator.cpp, line 216.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVk2P2jAQ_TXhEgWFBHaXQw6UbXtatVL30Fs0sSfBxbEj22Fhf33HgWW7UEpCJaRgz4ffvPHHKzTfZUyCqqJSmxpcyAzYFdpQq9CtMCy1lPpFqCoshaRpocLgLu4iguSLQ-voQzNBugjixyBe-P_7XzdcKJA7Kyx5CSWFwqiRwrox25t_YA1ksuIVKbuNJicGcM5EuHVoKE9kdWsYRnZXF1r-zROsbWt8s3wHY9GQrbbRYXGw9Zt1qTl-RXXJ_K1B9fTdW9EBFwaZExvMOW4Ew3wtFM8ZZahQnUVwJH4M5hswApTLa6oMKrRXHcG6vDFCuaueTCvrTMvcG4j8yNyhJ4-G4PriRaW0wWjLdFlGG2FFIaRwuzFrmg8Bnsflz58n3ThxWmpKSrU8QdOIbgvUwIymFjWGIgTBOos5toFtt_E28o0SRevwH55PgpJaXbrP1Hp1JW1DgGp4z3vuabAxmhE-fYCR6wZNvsbdizY8ry2xWDfgziKP_DsE8uK0c_dr5FbUPBflH729FHpTUAMGpESZ06nsF-HAVOhyVHRWcg4O-oXVYNfIj465Z_HqIns2hlb_oab-VDhCOIiCtqHycSDPQxboz-4hYHg3W2Xo4j0e7sPQh19p0Ok-vXkj3cRML99h7b951-yP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