|
16 | 16 | namespace swift {
|
17 | 17 |
|
18 | 18 | /// The extension for serialized modules.
|
19 |
| -static const char SERIALIZED_MODULE_EXTENSION[] = "swiftmodule"; |
| 19 | +constexpr static const char SERIALIZED_MODULE_EXTENSION[] = "swiftmodule"; |
20 | 20 | /// The extension for serialized documentation comments.
|
21 |
| -static const char SERIALIZED_MODULE_DOC_EXTENSION[] = "swiftdoc"; |
| 21 | +constexpr static const char SERIALIZED_MODULE_DOC_EXTENSION[] = "swiftdoc"; |
22 | 22 | /// The extension for PCH files.
|
23 |
| -static const char PCH_EXTENSION[] = "pch"; |
| 23 | +constexpr static const char PCH_EXTENSION[] = "pch"; |
24 | 24 | /// The extension for replacement map files.
|
25 |
| -static const char REMAP_EXTENSION[] = "remap"; |
| 25 | +constexpr static const char REMAP_EXTENSION[] = "remap"; |
26 | 26 | /// The extension for SIL files.
|
27 |
| -static const char SIL_EXTENSION[] = "sil"; |
| 27 | +constexpr static const char SIL_EXTENSION[] = "sil"; |
28 | 28 | /// The extension for SIB files.
|
29 |
| -static const char SIB_EXTENSION[] = "sib"; |
| 29 | +constexpr static const char SIB_EXTENSION[] = "sib"; |
30 | 30 | /// The extension for LLVM IR files.
|
31 |
| -static const char LLVM_BC_EXTENSION[] = "bc"; |
32 |
| -static const char LLVM_IR_EXTENSION[] = "ll"; |
| 31 | +constexpr static const char LLVM_BC_EXTENSION[] = "bc"; |
| 32 | +constexpr static const char LLVM_IR_EXTENSION[] = "ll"; |
33 | 33 | /// The name of the standard library, which is a reserved module name.
|
34 |
| -static const char STDLIB_NAME[] = "Swift"; |
| 34 | +constexpr static const char STDLIB_NAME[] = "Swift"; |
35 | 35 | /// The name of the Onone support library, which is a reserved module name.
|
36 |
| -static const char SWIFT_ONONE_SUPPORT[] = "SwiftOnoneSupport"; |
| 36 | +constexpr static const char SWIFT_ONONE_SUPPORT[] = "SwiftOnoneSupport"; |
37 | 37 | /// The name of the SwiftShims module, which contains private stdlib decls.
|
38 |
| -static const char SWIFT_SHIMS_NAME[] = "SwiftShims"; |
| 38 | +constexpr static const char SWIFT_SHIMS_NAME[] = "SwiftShims"; |
39 | 39 | /// The name of the Builtin module, which contains Builtin functions.
|
40 |
| -static const char BUILTIN_NAME[] = "Builtin"; |
| 40 | +constexpr static const char BUILTIN_NAME[] = "Builtin"; |
41 | 41 | /// The prefix of module names used by LLDB to capture Swift expressions
|
42 |
| -static const char LLDB_EXPRESSIONS_MODULE_NAME_PREFIX[] = "__lldb_expr_"; |
| 42 | +constexpr static const char LLDB_EXPRESSIONS_MODULE_NAME_PREFIX[] = |
| 43 | + "__lldb_expr_"; |
43 | 44 |
|
44 | 45 | /// The name of the fake module used to hold imported Objective-C things.
|
45 |
| -static const char MANGLING_MODULE_OBJC[] = "__C"; |
| 46 | +constexpr static const char MANGLING_MODULE_OBJC[] = "__C"; |
46 | 47 | /// The name of the fake module used to hold synthesized ClangImporter things.
|
47 |
| -static const char MANGLING_MODULE_CLANG_IMPORTER[] = "__C_Synthesized"; |
| 48 | +constexpr static const char MANGLING_MODULE_CLANG_IMPORTER[] = |
| 49 | + "__C_Synthesized"; |
48 | 50 |
|
49 | 51 | /// The name of the Builtin type prefix
|
50 |
| -static const char BUILTIN_TYPE_NAME_PREFIX[] = "Builtin."; |
| 52 | +constexpr static const char BUILTIN_TYPE_NAME_PREFIX[] = "Builtin."; |
51 | 53 | /// The name of the Builtin type for Int
|
52 |
| -static const char BUILTIN_TYPE_NAME_INT[] = "Builtin.Int"; |
| 54 | +constexpr static const char BUILTIN_TYPE_NAME_INT[] = "Builtin.Int"; |
53 | 55 | /// The name of the Builtin type for Int8
|
54 |
| -static const char BUILTIN_TYPE_NAME_INT8[] = "Builtin.Int8"; |
| 56 | +constexpr static const char BUILTIN_TYPE_NAME_INT8[] = "Builtin.Int8"; |
55 | 57 | /// The name of the Builtin type for Int16
|
56 |
| -static const char BUILTIN_TYPE_NAME_INT16[] = "Builtin.Int16"; |
| 58 | +constexpr static const char BUILTIN_TYPE_NAME_INT16[] = "Builtin.Int16"; |
57 | 59 | /// The name of the Builtin type for Int32
|
58 |
| -static const char BUILTIN_TYPE_NAME_INT32[] = "Builtin.Int32"; |
| 60 | +constexpr static const char BUILTIN_TYPE_NAME_INT32[] = "Builtin.Int32"; |
59 | 61 | /// The name of the Builtin type for Int64
|
60 |
| -static const char BUILTIN_TYPE_NAME_INT64[] = "Builtin.Int64"; |
| 62 | +constexpr static const char BUILTIN_TYPE_NAME_INT64[] = "Builtin.Int64"; |
61 | 63 | /// The name of the Builtin type for Int128
|
62 |
| -static const char BUILTIN_TYPE_NAME_INT128[] = "Builtin.Int128"; |
| 64 | +constexpr static const char BUILTIN_TYPE_NAME_INT128[] = "Builtin.Int128"; |
63 | 65 | /// The name of the Builtin type for Int256
|
64 |
| -static const char BUILTIN_TYPE_NAME_INT256[] = "Builtin.Int256"; |
| 66 | +constexpr static const char BUILTIN_TYPE_NAME_INT256[] = "Builtin.Int256"; |
65 | 67 | /// The name of the Builtin type for Int512
|
66 |
| -static const char BUILTIN_TYPE_NAME_INT512[] = "Builtin.Int512"; |
| 68 | +constexpr static const char BUILTIN_TYPE_NAME_INT512[] = "Builtin.Int512"; |
67 | 69 | /// The name of the Builtin type for Float
|
68 |
| -static const char BUILTIN_TYPE_NAME_FLOAT[] = "Builtin.Float"; |
| 70 | +constexpr static const char BUILTIN_TYPE_NAME_FLOAT[] = "Builtin.Float"; |
69 | 71 | /// The name of the Builtin type for NativeObject
|
70 |
| -static const char BUILTIN_TYPE_NAME_NATIVEOBJECT[] = "Builtin.NativeObject"; |
| 72 | +constexpr static const char BUILTIN_TYPE_NAME_NATIVEOBJECT[] = |
| 73 | + "Builtin.NativeObject"; |
71 | 74 | /// The name of the Builtin type for BridgeObject
|
72 |
| -static const char BUILTIN_TYPE_NAME_BRIDGEOBJECT[] = "Builtin.BridgeObject"; |
| 75 | +constexpr static const char BUILTIN_TYPE_NAME_BRIDGEOBJECT[] = |
| 76 | + "Builtin.BridgeObject"; |
73 | 77 | /// The name of the Builtin type for RawPointer
|
74 |
| -static const char BUILTIN_TYPE_NAME_RAWPOINTER[] = "Builtin.RawPointer"; |
| 78 | +constexpr static const char BUILTIN_TYPE_NAME_RAWPOINTER[] = |
| 79 | + "Builtin.RawPointer"; |
75 | 80 | /// The name of the Builtin type for UnsafeValueBuffer
|
76 |
| -static const char BUILTIN_TYPE_NAME_UNSAFEVALUEBUFFER[] = "Builtin.UnsafeValueBuffer"; |
| 81 | +constexpr static const char BUILTIN_TYPE_NAME_UNSAFEVALUEBUFFER[] = |
| 82 | + "Builtin.UnsafeValueBuffer"; |
77 | 83 | /// The name of the Builtin type for UnknownObject
|
78 |
| -static const char BUILTIN_TYPE_NAME_UNKNOWNOBJECT[] = "Builtin.UnknownObject"; |
| 84 | +constexpr static const char BUILTIN_TYPE_NAME_UNKNOWNOBJECT[] = |
| 85 | + "Builtin.UnknownObject"; |
79 | 86 | /// The name of the Builtin type for Vector
|
80 |
| -static const char BUILTIN_TYPE_NAME_VEC[] = "Builtin.Vec"; |
| 87 | +constexpr static const char BUILTIN_TYPE_NAME_VEC[] = "Builtin.Vec"; |
81 | 88 | /// The name of the Builtin type for SILToken
|
82 |
| -static const char BUILTIN_TYPE_NAME_SILTOKEN[] = "Builtin.SILToken"; |
| 89 | +constexpr static const char BUILTIN_TYPE_NAME_SILTOKEN[] = "Builtin.SILToken"; |
83 | 90 | /// The name of the Builtin type for Word
|
84 |
| -static const char BUILTIN_TYPE_NAME_WORD[] = "Builtin.Word"; |
85 |
| - |
| 91 | +constexpr static const char BUILTIN_TYPE_NAME_WORD[] = "Builtin.Word"; |
86 | 92 | } // end namespace swift
|
87 | 93 |
|
88 | 94 | #endif // SWIFT_STRINGS_H
|
0 commit comments