SwiftStrings.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //===--- Strings.h - Shared string constants across components --*- C++ -*-===//
  2. //
  3. // This source file is part of the Swift.org open source project
  4. //
  5. // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
  6. // Licensed under Apache License v2.0 with Runtime Library Exception
  7. //
  8. // See https://swift.org/LICENSE.txt for license information
  9. // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef SWIFT_STRINGS_H
  13. #define SWIFT_STRINGS_H
  14. #include "LLVM.h"
  15. #include "StringRef.h"
  16. namespace swift {
  17. /// The name of the standard library, which is a reserved module name.
  18. constexpr static const char STDLIB_NAME[] = "Swift";
  19. /// The name of the Onone support library, which is a reserved module name.
  20. constexpr static const char SWIFT_ONONE_SUPPORT[] = "SwiftOnoneSupport";
  21. /// The name of the SwiftShims module, which contains private stdlib decls.
  22. constexpr static const char SWIFT_SHIMS_NAME[] = "SwiftShims";
  23. /// The name of the Builtin module, which contains Builtin functions.
  24. constexpr static const char BUILTIN_NAME[] = "Builtin";
  25. /// The prefix of module names used by LLDB to capture Swift expressions
  26. constexpr static const char LLDB_EXPRESSIONS_MODULE_NAME_PREFIX[] =
  27. "__lldb_expr_";
  28. /// The name of the fake module used to hold imported Objective-C things.
  29. constexpr static const char MANGLING_MODULE_OBJC[] = "__C";
  30. /// The name of the fake module used to hold synthesized ClangImporter things.
  31. constexpr static const char MANGLING_MODULE_CLANG_IMPORTER[] =
  32. "__C_Synthesized";
  33. /// The name of the Builtin type prefix
  34. constexpr static const char BUILTIN_TYPE_NAME_PREFIX[] = "Builtin.";
  35. /// The name of the Builtin type for Int
  36. constexpr static const char BUILTIN_TYPE_NAME_INT[] = "Builtin.Int";
  37. /// The name of the Builtin type for Int8
  38. constexpr static const char BUILTIN_TYPE_NAME_INT8[] = "Builtin.Int8";
  39. /// The name of the Builtin type for Int16
  40. constexpr static const char BUILTIN_TYPE_NAME_INT16[] = "Builtin.Int16";
  41. /// The name of the Builtin type for Int32
  42. constexpr static const char BUILTIN_TYPE_NAME_INT32[] = "Builtin.Int32";
  43. /// The name of the Builtin type for Int64
  44. constexpr static const char BUILTIN_TYPE_NAME_INT64[] = "Builtin.Int64";
  45. /// The name of the Builtin type for Int128
  46. constexpr static const char BUILTIN_TYPE_NAME_INT128[] = "Builtin.Int128";
  47. /// The name of the Builtin type for Int256
  48. constexpr static const char BUILTIN_TYPE_NAME_INT256[] = "Builtin.Int256";
  49. /// The name of the Builtin type for Int512
  50. constexpr static const char BUILTIN_TYPE_NAME_INT512[] = "Builtin.Int512";
  51. /// The name of the Builtin type for IntLiteral
  52. constexpr static const char BUILTIN_TYPE_NAME_INTLITERAL[] =
  53. "Builtin.IntLiteral";
  54. /// The name of the Builtin type for Float
  55. constexpr static const char BUILTIN_TYPE_NAME_FLOAT[] = "Builtin.FPIEEE";
  56. /// The name of the Builtin type for NativeObject
  57. constexpr static const char BUILTIN_TYPE_NAME_NATIVEOBJECT[] =
  58. "Builtin.NativeObject";
  59. /// The name of the Builtin type for BridgeObject
  60. constexpr static const char BUILTIN_TYPE_NAME_BRIDGEOBJECT[] =
  61. "Builtin.BridgeObject";
  62. /// The name of the Builtin type for RawPointer
  63. constexpr static const char BUILTIN_TYPE_NAME_RAWPOINTER[] =
  64. "Builtin.RawPointer";
  65. /// The name of the Builtin type for UnsafeValueBuffer
  66. constexpr static const char BUILTIN_TYPE_NAME_UNSAFEVALUEBUFFER[] =
  67. "Builtin.UnsafeValueBuffer";
  68. /// The name of the Builtin type for UnknownObject
  69. constexpr static const char BUILTIN_TYPE_NAME_UNKNOWNOBJECT[] =
  70. "Builtin.UnknownObject";
  71. /// The name of the Builtin type for Vector
  72. constexpr static const char BUILTIN_TYPE_NAME_VEC[] = "Builtin.Vec";
  73. /// The name of the Builtin type for SILToken
  74. constexpr static const char BUILTIN_TYPE_NAME_SILTOKEN[] = "Builtin.SILToken";
  75. /// The name of the Builtin type for Word
  76. constexpr static const char BUILTIN_TYPE_NAME_WORD[] = "Builtin.Word";
  77. // constexpr static StringLiteral SEMANTICS_PROGRAMTERMINATION_POINT =
  78. // "programtermination_point";
  79. } // end namespace swift
  80. #endif // SWIFT_STRINGS_H