17
17
18
18
// Used for any magic identifier.
19
19
#ifndef MAGIC_IDENTIFIER
20
- #define MAGIC_IDENTIFIER (NAME, STRING, SYNTAX_KIND )
20
+ #define MAGIC_IDENTIFIER (NAME, STRING )
21
21
#endif
22
22
23
23
// Used for magic identifiers which produce string literals.
24
24
#ifndef MAGIC_STRING_IDENTIFIER
25
- #define MAGIC_STRING_IDENTIFIER (NAME, STRING, SYNTAX_KIND ) MAGIC_IDENTIFIER(NAME, STRING, SYNTAX_KIND )
25
+ #define MAGIC_STRING_IDENTIFIER (NAME, STRING ) MAGIC_IDENTIFIER(NAME, STRING)
26
26
#endif
27
27
28
28
// Used for magic identifiers which produce integer literals.
29
29
#ifndef MAGIC_INT_IDENTIFIER
30
- #define MAGIC_INT_IDENTIFIER (NAME, STRING, SYNTAX_KIND ) MAGIC_IDENTIFIER(NAME, STRING, SYNTAX_KIND )
30
+ #define MAGIC_INT_IDENTIFIER (NAME, STRING ) MAGIC_IDENTIFIER(NAME, STRING)
31
31
#endif
32
32
33
33
// Used for magic identifiers which produce raw pointers.
34
34
#ifndef MAGIC_POINTER_IDENTIFIER
35
- #define MAGIC_POINTER_IDENTIFIER (NAME, STRING, SYNTAX_KIND ) MAGIC_IDENTIFIER(NAME, STRING, SYNTAX_KIND )
35
+ #define MAGIC_POINTER_IDENTIFIER (NAME, STRING ) MAGIC_IDENTIFIER(NAME, STRING)
36
36
#endif
37
37
38
38
// Used when a given token always maps to a particular magic identifier kind.
45
45
//
46
46
47
47
// / The \c #fileID magic identifier literal.
48
- MAGIC_STRING_IDENTIFIER (FileID, " #fileID" , PoundFileIDExpr )
48
+ MAGIC_STRING_IDENTIFIER (FileID, " #fileID" )
49
49
MAGIC_IDENTIFIER_TOKEN(FileID, pound_fileID)
50
50
51
51
// / The \c #file magic identifier literal, written in code where it is
52
52
// / a synonym for \c #fileID (i.e. "Swift 6 mode" code).
53
- MAGIC_STRING_IDENTIFIER(FileIDSpelledAsFile, " #file" , PoundFileExpr )
53
+ MAGIC_STRING_IDENTIFIER(FileIDSpelledAsFile, " #file" )
54
54
// tok::pound_file is shared with FilePathSpelledAsFile; please write custom
55
55
// code paths for it.
56
56
57
57
// / The \c #filePath magic identifier literal.
58
- MAGIC_STRING_IDENTIFIER(FilePath, " #filePath" , PoundFilePathExpr )
58
+ MAGIC_STRING_IDENTIFIER(FilePath, " #filePath" )
59
59
MAGIC_IDENTIFIER_TOKEN(FilePath, pound_filePath)
60
60
61
61
// / The \c #file magic identifier literal, written in code where it is
62
62
// / a synonym for \c #filePath (i.e. Swift 5 mode code).
63
- MAGIC_STRING_IDENTIFIER(FilePathSpelledAsFile, " #file" , PoundFileExpr )
63
+ MAGIC_STRING_IDENTIFIER(FilePathSpelledAsFile, " #file" )
64
64
// tok::pound_file is shared with FileIDSpelledAsFile; please write custom
65
65
// code paths for it.
66
66
67
67
// / The \c #function magic identifier literal.
68
- MAGIC_STRING_IDENTIFIER(Function, " #function" , PoundFunctionExpr )
68
+ MAGIC_STRING_IDENTIFIER(Function, " #function" )
69
69
MAGIC_IDENTIFIER_TOKEN(Function, pound_function)
70
70
71
71
@@ -75,11 +75,11 @@ MAGIC_STRING_IDENTIFIER(Function, "#function", PoundFunctionExpr)
75
75
//
76
76
77
77
// / The \c #line magic identifier literal.
78
- MAGIC_INT_IDENTIFIER(Line, " #line" , PoundLineExpr )
78
+ MAGIC_INT_IDENTIFIER(Line, " #line" )
79
79
MAGIC_IDENTIFIER_TOKEN(Line, pound_line)
80
80
81
81
// / The \c #column magic identifier literal.
82
- MAGIC_INT_IDENTIFIER(Column, " #column" , PoundColumnExpr )
82
+ MAGIC_INT_IDENTIFIER(Column, " #column" )
83
83
MAGIC_IDENTIFIER_TOKEN(Column, pound_column)
84
84
85
85
@@ -89,7 +89,7 @@ MAGIC_INT_IDENTIFIER(Column, "#column", PoundColumnExpr)
89
89
//
90
90
91
91
// / The \c #dsohandle magic identifier literal.
92
- MAGIC_POINTER_IDENTIFIER(DSOHandle, " #dsohandle" , PoundDsohandleExpr )
92
+ MAGIC_POINTER_IDENTIFIER(DSOHandle, " #dsohandle" )
93
93
MAGIC_IDENTIFIER_TOKEN(DSOHandle, pound_dsohandle)
94
94
95
95
#undef MAGIC_IDENTIFIER
0 commit comments