| Issue |
63802
|
| Summary |
Warnings emitted when utilizing -pedantic -save-temps flags.
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
milos1397
|
```
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?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs