Commit cbec0b5
authored
[SYCL] Emit diagnostics appropriately when coexisting with OpenMP (#3750)
In the presence of OpenMP, calls to undefined functions get
diagnosed incorrectly in SYCL. With this change, the diagnostic
is emitted only when the reason for the emission is SYCL.
This change leverages the diagnostic "reason" infrastructure
implemented in PR #3511.
Signed-off-by: Premanand M Rao <premanand.m.rao@intel.com>1 parent 093f89b commit cbec0b5
File tree
5 files changed
+64
-12
lines changed- clang
- include/clang/Sema
- lib/Sema
- test/SemaSYCL
5 files changed
+64
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
1812 | 1835 | | |
1813 | 1836 | | |
1814 | 1837 | | |
| |||
13288 | 13311 | | |
13289 | 13312 | | |
13290 | 13313 | | |
13291 | | - | |
| 13314 | + | |
| 13315 | + | |
13292 | 13316 | | |
13293 | 13317 | | |
13294 | 13318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
| 1668 | + | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18469 | 18469 | | |
18470 | 18470 | | |
18471 | 18471 | | |
| 18472 | + | |
18472 | 18473 | | |
18473 | 18474 | | |
18474 | | - | |
| 18475 | + | |
18475 | 18476 | | |
18476 | | - | |
| 18477 | + | |
| 18478 | + | |
| 18479 | + | |
| 18480 | + | |
| 18481 | + | |
| 18482 | + | |
| 18483 | + | |
| 18484 | + | |
18477 | 18485 | | |
18478 | 18486 | | |
18479 | 18487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
600 | 609 | | |
601 | 610 | | |
602 | 611 | | |
| |||
3885 | 3894 | | |
3886 | 3895 | | |
3887 | 3896 | | |
3888 | | - | |
| 3897 | + | |
| 3898 | + | |
3889 | 3899 | | |
3890 | 3900 | | |
3891 | 3901 | | |
3892 | 3902 | | |
3893 | 3903 | | |
3894 | 3904 | | |
3895 | | - | |
3896 | | - | |
3897 | 3905 | | |
3898 | | - | |
3899 | | - | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
3900 | 3916 | | |
3901 | | - | |
3902 | | - | |
3903 | | - | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
3904 | 3920 | | |
3905 | 3921 | | |
3906 | 3922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
0 commit comments