1 /** 2 * This file is part of DCD, a development tool for the D programming language. 3 * Copyright (C) 2014 Brian Schott 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 module common.constants; 20 21 // The lists in this module should be kept sorted. 22 23 /** 24 * Pragma arguments 25 */ 26 immutable string[] pragmas = [ 27 "inline", 28 "lib", 29 "mangle", 30 "msg", 31 "startaddress" 32 ]; 33 34 /** 35 * Linkage types 36 */ 37 immutable string[] linkages = [ 38 "C", 39 "C++", 40 "D", 41 "Pascal", 42 "System", 43 "Windows" 44 ]; 45 46 /** 47 * Traits arguments 48 */ 49 immutable string[] traits = [ 50 "allMembers", 51 "classInstanceSize", 52 "compiles", 53 "derivedMembers", 54 "getAliasThis", 55 "getAttributes", 56 "getFunctionAttributes", 57 "getFunctionVariadicStyle", 58 "getLinkage", 59 "getMember", 60 "getOverloads", 61 "getParameterStorageClasses", 62 "getPointerBitmap", 63 "getProtection", 64 "getUnitTests", 65 "getVirtualFunctions", 66 "getVirtualIndex", 67 "getVirtualMethods", 68 "hasMember", 69 "identifier", 70 "isAbstractClass", 71 "isAbstractFunction", 72 "isArithmetic", 73 "isAssociativeArray", 74 "isFinalClass", 75 "isFinalFunction", 76 "isFloating", 77 "isIntegral", 78 "isLazy", 79 "isNested", 80 "isOut", 81 "isOverrideFunction", 82 "isPOD", 83 "isRef", 84 "isSame", 85 "isScalar", 86 "isStaticArray", 87 "isStaticFunction", 88 "isTemplate", 89 "isUnsigned", 90 "isVirtualFunction", 91 "isVirtualMethod", 92 "parent" 93 ]; 94 95 /** 96 * Scope conditions 97 */ 98 immutable string[] scopes = [ 99 "exit", 100 "failure", 101 "success" 102 ]; 103 104 /** 105 * Compiler-defined values for version() conditions. 106 */ 107 immutable string[] predefinedVersions = [ 108 "AArch64", 109 "AIX", 110 "all", 111 "Alpha", 112 "Alpha_HardFloat", 113 "Alpha_SoftFloat", 114 "Android", 115 "ARM", 116 "ARM_HardFloat", 117 "ARM_SoftFloat", 118 "ARM_SoftFP", 119 "ARM_Thumb", 120 "assert", 121 "BigEndian", 122 "BSD", 123 "CRuntime_Bionic", 124 "CRuntime_DigitalMars", 125 "CRuntime_Glibc", 126 "CRuntime_Microsoft", 127 "Cygwin", 128 "DigitalMars", 129 "DragonFlyBSD", 130 "D_Coverage", 131 "D_Ddoc", 132 "D_HardFloat", 133 "D_InlineAsm_X86", 134 "D_InlineAsm_X86_64", 135 "D_LP64", 136 "D_NoBoundsChecks", 137 "D_PIC", 138 "D_SIMD", 139 "D_SoftFloat", 140 "D_Version2", 141 "D_X32", 142 "ELFv1", 143 "ELFv2", 144 "Epiphany", 145 "FreeBSD", 146 "FreeStanding", 147 "GNU", 148 "Haiku", 149 "HPPA", 150 "HPPA64", 151 "Hurd", 152 "IA64", 153 "iOS", 154 "LDC", 155 "linux", 156 "LittleEndian", 157 "MinGW", 158 "MIPS32", 159 "MIPS64", 160 "MIPS_EABI", 161 "MIPS_HardFloat", 162 "MIPS_N32", 163 "MIPS_N64", 164 "MIPS_O32", 165 "MIPS_O64", 166 "MIPS_SoftFloat", 167 "NetBSD", 168 "none", 169 "NVPTX", 170 "NVPTX64", 171 "OpenBSD", 172 "OSX", 173 "PlayStation", 174 "PlayStation4", 175 "Posix", 176 "PPC", 177 "PPC64", 178 "PPC_HardFloat", 179 "PPC_SoftFloat", 180 "RISCV32", 181 "RISCV64", 182 "S390", 183 "S390X", 184 "SDC", 185 "SH", 186 "SH64", 187 "SkyOS", 188 "Solaris", 189 "SPARC", 190 "SPARC64", 191 "SPARC_HardFloat", 192 "SPARC_SoftFloat", 193 "SPARC_V8Plus", 194 "SystemZ", 195 "SysV3", 196 "SysV4", 197 "TVOS", 198 "unittest", 199 "WatchOS", 200 "Win32", 201 "Win64", 202 "Windows", 203 "X86", 204 "X86_64" 205 ];