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

    <tr>
        <th>Summary</th>
        <td>
            Warnings emitted when utilizing -pedantic -save-temps flags.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
int main(void)
{
    return 0;
}
```

when compiled with **-pedantic -save-temps** flags:

```clang test.c -O3 -S  -Wall -pedantic -save-temps```

causes the following warnings, regarding usage of GNU line directives, to appear:
```
example.i:1:5: warning: this style of line directive is a GNU extension [-Wgnu-line-marker] 
# 1 "<source>"
<source>:1:5: warning: this style of line directive is a GNU extension [-Wgnu-line-marker]
# 1 "<built-in>" 1
    ^
2 warnings generated.
```

 (you can see it here https://godbolt.org/)

This is because clang has some hardcoded GNU line directives, which it adds during preprocessing in the function "clang::InitializePreprocessor".

Can they be cleaned?


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VEFz8yYQ_TXosiMNAsu2Djo48edOL21n2k7OGNbStgg0gOIv-fUdJCdx2rS3zmgk2IX3HuzTqhipd4gdax5YcyzUnAYfupGsj7Vsd8XZm5eObfnt4UfGD-QSjIocE_tnT4aJdo2z3cM6AAAImObggDP58JY93gaf0db3dUAH2o8TWTRwpTQAEwcmDuWERrlEGsqonrFMOE5xTcHFqj4yebgHekfXVrkeEsZUaSh_llD-ClA-KWvha8yvZGk1R4yQBoSLt9ZfyfVwVcGR6yMTjxCwV8Hk6BxVj-Av8MNPv4Mlh2AooE70jMvK5EFNE6rwIfgzI35X42SxIiYPNZOHhsnDG1cepoEixPRiF5bPDEAR1MKM3xO6SN4Bax7Kp97NZV5ajir8iYE1R7iRCwk1MCGYfIx-DhqZ_Jana_Y--L_K-aea80w2leRWPVB_eIo139aJeK8B9OgwqISm-g93ARP7Fz-DVg4iIlCCAQPCkNK0GEicmDj13py9TZUP_RJo7yF-y8elCGdcPAGrvQYVIfoRYVDBaG_Q_Fv5rwPpIRMrYyKYOWTPTAGn4DXGmGfkVqPNTqflxoRYWLJAefjRUSJl6RV_ed_lAxOiupf5qBaQFzhniagcGiZP9ysK00nTylYV2NXbfcv3fCPbYui2W7WvN7pt0FwuxtSGt81m1zY7ZYzUWBfUCS4k39V1LTmXbdU0reBtu9nzi9nLxrANx1GRrax9HvM1FhTjjN1W7rkorDqjjUunEcLhFZZkrnlzLEKX95TnuY9swy3FFD9QEiWL3dNbyXGklHKXyD1jTmTpNV_fl3_12iOqYg62-1u1KQ3zudJ-ZOKUqW6fcgr-D9SJidMiMDJxWg7wVwAAAP___CWVnQ">