Skip to content

Commit 59bd877

Browse files
authored
[SYCL] Cleanup the deprecated Intel attribute logic (#3036)
We previously sprinkled deprecated attribute logic around to a few places when we could instead use a single helper function to do the work for us. This also adds a fix-it hint when we find a deprecated attribute to help the user convert to the new spelling.
1 parent a2c00be commit 59bd877

File tree

3 files changed

+97
-159
lines changed

3 files changed

+97
-159
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12884,6 +12884,11 @@ class Sema final {
1288412884
void MarkDevice();
1288512885
void MarkSyclSimd();
1288612886

12887+
/// Diagnoses an attribute in the 'intelfpga' namespace and suggests using
12888+
/// the attribute in the 'intel' namespace instead.
12889+
void CheckDeprecatedSYCLAttributeSpelling(const ParsedAttr &A,
12890+
StringRef NewName = "");
12891+
1288712892
/// Creates a SemaDiagnosticBuilder that emits the diagnostic if the current
1288812893
/// context is "used as device code".
1288912894
///

0 commit comments

Comments
 (0)