<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71999>71999</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang][ASTMatchers] `IgnoreUnlessSpelledInSource` ignores written parentheses
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
5chmidti
</td>
</tr>
</table>
<pre>
When `IgnoreUnlessSpelledInSource` is enabled, `parenExpr()` will not generate a match in the following example:
```c++
int foo() { return (0); }
```
Because the parentheses are spelled out, I think they should not be ignored.
https://godbolt.org/z/P4aTfq6fM
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUs2OmzAQfprhMtrIGDBw4BCaIuWwUqVs1bMxA7g1NrVNs9unryCtWu2p0kgI-_N8PzMyBD1ZogaKFopLIrc4O98Ual70EHXSu-Gt-TKTRRDsOlnn6bM1FMJtJWNouNqb27wiEAx1QLKyNzQA_7DjV-nJfnxdPfAKeL1j7toYtC7iRJa8jIQSFxnVjNpinAlHZ4y7azshvcplNQTZGdgF2BkEe5QC3u51nGobcXTuwYBQtugpbt4i8IrtpFmLUF7etXj8tqTkFujgPbTGmQIFlJ4wPPyh2-Lu5opx1vbbDn3DMLvNDIeNnlAfqQynR885xjXsmnkHvJvc0DsTT85PwLufwLtPuXwZv4vxORmabKizWibUpKKuhWCsSJO5UVVapCrjQ9pnoudVKbO8rsQgyjxPx54S3XDGszRNGc_yMktPZZUJ2TMxKqXqoqwhZ7RIbU7G_Fh27kSHsFFTpnVdJ0b2ZMKfgftmBz312xQgZ0aHGP4-izqaYzWUkXaC4gJFe769PO8DIx-guPzPWhzXAe9ex0j236STzZvmXWI6zlt_Um4B3u1Cfn-eVu--korAu8NMAN4dfn4FAAD__3hI3wQ">