cmake.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmake_h
  4. #define cmake_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <map>
  7. #include <set>
  8. #include <string>
  9. #include <unordered_set>
  10. #include <vector>
  11. #include "cmInstalledFile.h"
  12. #include "cmListFileCache.h"
  13. #include "cmStateSnapshot.h"
  14. #include "cmStateTypes.h"
  15. #if defined(CMAKE_BUILD_WITH_CMAKE)
  16. #include "cm_jsoncpp_value.h"
  17. #endif
  18. class cmExternalMakefileProjectGeneratorFactory;
  19. class cmFileTimeComparison;
  20. class cmGlobalGenerator;
  21. class cmGlobalGeneratorFactory;
  22. class cmMakefile;
  23. class cmMessenger;
  24. class cmState;
  25. class cmVariableWatch;
  26. struct cmDocumentationEntry;
  27. /** \brief Represents a cmake invocation.
  28. *
  29. * This class represents a cmake invocation. It is the top level class when
  30. * running cmake. Most cmake based GUIs should primarily create an instance
  31. * of this class and communicate with it.
  32. *
  33. * The basic process for a GUI is as follows:
  34. *
  35. * -# Create a cmake instance
  36. * -# Set the Home directories, generator, and cmake command. this
  37. * can be done using the Set methods or by using SetArgs and passing in
  38. * command line arguments.
  39. * -# Load the cache by calling LoadCache (duh)
  40. * -# if you are using command line arguments with -D or -C flags then
  41. * call SetCacheArgs (or if for some other reason you want to modify the
  42. * cache), do it now.
  43. * -# Finally call Configure
  44. * -# Let the user change values and go back to step 5
  45. * -# call Generate
  46. * If your GUI allows the user to change the home directories then
  47. * you must at a minimum redo steps 2 through 7.
  48. */
  49. class cmake
  50. {
  51. CM_DISABLE_COPY(cmake)
  52. public:
  53. enum Role
  54. {
  55. RoleInternal, // no commands
  56. RoleScript, // script commands
  57. RoleProject // all commands
  58. };
  59. enum MessageType
  60. {
  61. AUTHOR_WARNING,
  62. AUTHOR_ERROR,
  63. FATAL_ERROR,
  64. INTERNAL_ERROR,
  65. MESSAGE,
  66. WARNING,
  67. LOG,
  68. DEPRECATION_ERROR,
  69. DEPRECATION_WARNING
  70. };
  71. enum DiagLevel
  72. {
  73. DIAG_IGNORE,
  74. DIAG_WARN,
  75. DIAG_ERROR
  76. };
  77. /** \brief Describes the working modes of cmake */
  78. enum WorkingMode
  79. {
  80. NORMAL_MODE, ///< Cmake runs to create project files
  81. /** \brief Script mode (started by using -P).
  82. *
  83. * In script mode there is no generator and no cache. Also,
  84. * languages are not enabled, so add_executable and things do
  85. * nothing.
  86. */
  87. SCRIPT_MODE,
  88. /** \brief A pkg-config like mode
  89. *
  90. * In this mode cmake just searches for a package and prints the results to
  91. * stdout. This is similar to SCRIPT_MODE, but commands like add_library()
  92. * work too, since they may be used e.g. in exported target files. Started
  93. * via --find-package.
  94. */
  95. FIND_PACKAGE_MODE
  96. };
  97. struct GeneratorInfo
  98. {
  99. std::string name;
  100. std::string baseName;
  101. std::string extraName;
  102. bool supportsToolset;
  103. bool supportsPlatform;
  104. bool isAlias;
  105. };
  106. typedef std::map<std::string, cmInstalledFile> InstalledFilesMap;
  107. /// Default constructor
  108. cmake(Role role);
  109. /// Destructor
  110. ~cmake();
  111. #if defined(CMAKE_BUILD_WITH_CMAKE)
  112. Json::Value ReportCapabilitiesJson(bool haveServerMode) const;
  113. #endif
  114. std::string ReportCapabilities(bool haveServerMode) const;
  115. static const char* GetCMakeFilesDirectory() { return "/CMakeFiles"; }
  116. static const char* GetCMakeFilesDirectoryPostSlash()
  117. {
  118. return "CMakeFiles/";
  119. }
  120. //@{
  121. /**
  122. * Set/Get the home directory (or output directory) in the project. The
  123. * home directory is the top directory of the project. It is the
  124. * path-to-source cmake was run with.
  125. */
  126. void SetHomeDirectory(const std::string& dir);
  127. std::string const& GetHomeDirectory() const;
  128. void SetHomeOutputDirectory(const std::string& dir);
  129. std::string const& GetHomeOutputDirectory() const;
  130. //@}
  131. /**
  132. * Handle a command line invocation of cmake.
  133. */
  134. int Run(const std::vector<std::string>& args)
  135. {
  136. return this->Run(args, false);
  137. }
  138. int Run(const std::vector<std::string>& args, bool noconfigure);
  139. /**
  140. * Run the global generator Generate step.
  141. */
  142. int Generate();
  143. /**
  144. * Configure the cmMakefiles. This routine will create a GlobalGenerator if
  145. * one has not already been set. It will then Call Configure on the
  146. * GlobalGenerator. This in turn will read in an process all the CMakeList
  147. * files for the tree. It will not produce any actual Makefiles, or
  148. * workspaces. Generate does that. */
  149. int Configure();
  150. int ActualConfigure();
  151. ///! Break up a line like VAR:type="value" into var, type and value
  152. static bool ParseCacheEntry(const std::string& entry, std::string& var,
  153. std::string& value,
  154. cmStateEnums::CacheEntryType& type);
  155. int LoadCache();
  156. bool LoadCache(const std::string& path);
  157. bool LoadCache(const std::string& path, bool internal,
  158. std::set<std::string>& excludes,
  159. std::set<std::string>& includes);
  160. bool SaveCache(const std::string& path);
  161. bool DeleteCache(const std::string& path);
  162. void PreLoadCMakeFiles();
  163. ///! Create a GlobalGenerator
  164. cmGlobalGenerator* CreateGlobalGenerator(const std::string& name);
  165. ///! Return the global generator assigned to this instance of cmake
  166. cmGlobalGenerator* GetGlobalGenerator() { return this->GlobalGenerator; }
  167. ///! Return the global generator assigned to this instance of cmake, const
  168. const cmGlobalGenerator* GetGlobalGenerator() const
  169. {
  170. return this->GlobalGenerator;
  171. }
  172. ///! Return the full path to where the CMakeCache.txt file should be.
  173. static std::string FindCacheFile(const std::string& binaryDir);
  174. ///! Return the global generator assigned to this instance of cmake
  175. void SetGlobalGenerator(cmGlobalGenerator*);
  176. ///! Get the names of the current registered generators
  177. void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators) const;
  178. ///! Set the name of the selected generator-specific instance.
  179. void SetGeneratorInstance(std::string const& instance)
  180. {
  181. this->GeneratorInstance = instance;
  182. }
  183. ///! Set the name of the selected generator-specific platform.
  184. void SetGeneratorPlatform(std::string const& ts)
  185. {
  186. this->GeneratorPlatform = ts;
  187. }
  188. ///! Set the name of the selected generator-specific toolset.
  189. void SetGeneratorToolset(std::string const& ts)
  190. {
  191. this->GeneratorToolset = ts;
  192. }
  193. const std::vector<std::string>& GetSourceExtensions() const
  194. {
  195. return this->SourceFileExtensions;
  196. }
  197. bool IsSourceExtension(const std::string& ext) const
  198. {
  199. return this->SourceFileExtensionsSet.find(ext) !=
  200. this->SourceFileExtensionsSet.end();
  201. }
  202. const std::vector<std::string>& GetHeaderExtensions() const
  203. {
  204. return this->HeaderFileExtensions;
  205. }
  206. bool IsHeaderExtension(const std::string& ext) const
  207. {
  208. return this->HeaderFileExtensionsSet.find(ext) !=
  209. this->HeaderFileExtensionsSet.end();
  210. }
  211. // Strips the extension (if present and known) from a filename
  212. std::string StripExtension(const std::string& file) const;
  213. /**
  214. * Given a variable name, return its value (as a string).
  215. */
  216. const char* GetCacheDefinition(const std::string&) const;
  217. ///! Add an entry into the cache
  218. void AddCacheEntry(const std::string& key, const char* value,
  219. const char* helpString, int type);
  220. /**
  221. * Get the system information and write it to the file specified
  222. */
  223. int GetSystemInformation(std::vector<std::string>&);
  224. ///! Parse command line arguments
  225. void SetArgs(const std::vector<std::string>&,
  226. bool directoriesSetBefore = false);
  227. ///! Is this cmake running as a result of a TRY_COMPILE command
  228. bool GetIsInTryCompile() const;
  229. void SetIsInTryCompile(bool b);
  230. ///! Parse command line arguments that might set cache values
  231. bool SetCacheArgs(const std::vector<std::string>&);
  232. typedef void (*ProgressCallbackType)(const char* msg, float progress, void*);
  233. /**
  234. * Set the function used by GUIs to receive progress updates
  235. * Function gets passed: message as a const char*, a progress
  236. * amount ranging from 0 to 1.0 and client data. The progress
  237. * number provided may be negative in cases where a message is
  238. * to be displayed without any progress percentage.
  239. */
  240. void SetProgressCallback(ProgressCallbackType f, void* clientData = nullptr);
  241. ///! this is called by generators to update the progress
  242. void UpdateProgress(const char* msg, float prog);
  243. ///! Get the variable watch object
  244. cmVariableWatch* GetVariableWatch() { return this->VariableWatch; }
  245. void GetGeneratorDocumentation(std::vector<cmDocumentationEntry>&);
  246. ///! Set/Get a property of this target file
  247. void SetProperty(const std::string& prop, const char* value);
  248. void AppendProperty(const std::string& prop, const char* value,
  249. bool asString = false);
  250. const char* GetProperty(const std::string& prop);
  251. bool GetPropertyAsBool(const std::string& prop);
  252. ///! Get or create an cmInstalledFile instance and return a pointer to it
  253. cmInstalledFile* GetOrCreateInstalledFile(cmMakefile* mf,
  254. const std::string& name);
  255. cmInstalledFile const* GetInstalledFile(const std::string& name) const;
  256. InstalledFilesMap const& GetInstalledFiles() const
  257. {
  258. return this->InstalledFiles;
  259. }
  260. ///! Do all the checks before running configure
  261. int DoPreConfigureChecks();
  262. void SetWorkingMode(WorkingMode mode) { this->CurrentWorkingMode = mode; }
  263. WorkingMode GetWorkingMode() { return this->CurrentWorkingMode; }
  264. ///! Debug the try compile stuff by not deleting the files
  265. bool GetDebugTryCompile() { return this->DebugTryCompile; }
  266. void DebugTryCompileOn() { this->DebugTryCompile = true; }
  267. /**
  268. * Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
  269. */
  270. int AddCMakePaths();
  271. /**
  272. * Get the file comparison class
  273. */
  274. cmFileTimeComparison* GetFileComparison() { return this->FileComparison; }
  275. // Do we want debug output during the cmake run.
  276. bool GetDebugOutput() { return this->DebugOutput; }
  277. void SetDebugOutputOn(bool b) { this->DebugOutput = b; }
  278. // Do we want trace output during the cmake run.
  279. bool GetTrace() { return this->Trace; }
  280. void SetTrace(bool b) { this->Trace = b; }
  281. bool GetTraceExpand() { return this->TraceExpand; }
  282. void SetTraceExpand(bool b) { this->TraceExpand = b; }
  283. void AddTraceSource(std::string const& file)
  284. {
  285. this->TraceOnlyThisSources.push_back(file);
  286. }
  287. std::vector<std::string> const& GetTraceSources() const
  288. {
  289. return this->TraceOnlyThisSources;
  290. }
  291. bool GetWarnUninitialized() { return this->WarnUninitialized; }
  292. void SetWarnUninitialized(bool b) { this->WarnUninitialized = b; }
  293. bool GetWarnUnused() { return this->WarnUnused; }
  294. void SetWarnUnused(bool b) { this->WarnUnused = b; }
  295. bool GetWarnUnusedCli() { return this->WarnUnusedCli; }
  296. void SetWarnUnusedCli(bool b) { this->WarnUnusedCli = b; }
  297. bool GetCheckSystemVars() { return this->CheckSystemVars; }
  298. void SetCheckSystemVars(bool b) { this->CheckSystemVars = b; }
  299. void MarkCliAsUsed(const std::string& variable);
  300. /** Get the list of configurations (in upper case) considered to be
  301. debugging configurations.*/
  302. std::vector<std::string> GetDebugConfigs();
  303. void SetCMakeEditCommand(std::string const& s)
  304. {
  305. this->CMakeEditCommand = s;
  306. }
  307. std::string const& GetCMakeEditCommand() const
  308. {
  309. return this->CMakeEditCommand;
  310. }
  311. cmMessenger* GetMessenger() const;
  312. /*
  313. * Get the state of the suppression of developer (author) warnings.
  314. * Returns false, by default, if developer warnings should be shown, true
  315. * otherwise.
  316. */
  317. bool GetSuppressDevWarnings() const;
  318. /*
  319. * Set the state of the suppression of developer (author) warnings.
  320. */
  321. void SetSuppressDevWarnings(bool v);
  322. /*
  323. * Get the state of the suppression of deprecated warnings.
  324. * Returns false, by default, if deprecated warnings should be shown, true
  325. * otherwise.
  326. */
  327. bool GetSuppressDeprecatedWarnings() const;
  328. /*
  329. * Set the state of the suppression of deprecated warnings.
  330. */
  331. void SetSuppressDeprecatedWarnings(bool v);
  332. /*
  333. * Get the state of treating developer (author) warnings as errors.
  334. * Returns false, by default, if warnings should not be treated as errors,
  335. * true otherwise.
  336. */
  337. bool GetDevWarningsAsErrors() const;
  338. /**
  339. * Set the state of treating developer (author) warnings as errors.
  340. */
  341. void SetDevWarningsAsErrors(bool v);
  342. /*
  343. * Get the state of treating deprecated warnings as errors.
  344. * Returns false, by default, if warnings should not be treated as errors,
  345. * true otherwise.
  346. */
  347. bool GetDeprecatedWarningsAsErrors() const;
  348. /**
  349. * Set the state of treating developer (author) warnings as errors.
  350. */
  351. void SetDeprecatedWarningsAsErrors(bool v);
  352. /** Display a message to the user. */
  353. void IssueMessage(
  354. cmake::MessageType t, std::string const& text,
  355. cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
  356. ///! run the --build option
  357. int Build(const std::string& dir, const std::string& target,
  358. const std::string& config,
  359. const std::vector<std::string>& nativeOptions, bool clean);
  360. ///! run the --open option
  361. bool Open(const std::string& dir, bool dryRun);
  362. void UnwatchUnusedCli(const std::string& var);
  363. void WatchUnusedCli(const std::string& var);
  364. cmState* GetState() const { return this->State; }
  365. void SetCurrentSnapshot(cmStateSnapshot const& snapshot)
  366. {
  367. this->CurrentSnapshot = snapshot;
  368. }
  369. cmStateSnapshot GetCurrentSnapshot() const { return this->CurrentSnapshot; }
  370. protected:
  371. void RunCheckForUnusedVariables();
  372. void InitializeProperties();
  373. int HandleDeleteCacheVariables(const std::string& var);
  374. typedef std::vector<cmGlobalGeneratorFactory*> RegisteredGeneratorsVector;
  375. RegisteredGeneratorsVector Generators;
  376. typedef std::vector<cmExternalMakefileProjectGeneratorFactory*>
  377. RegisteredExtraGeneratorsVector;
  378. RegisteredExtraGeneratorsVector ExtraGenerators;
  379. void AddScriptingCommands();
  380. void AddProjectCommands();
  381. void AddDefaultGenerators();
  382. void AddDefaultExtraGenerators();
  383. cmGlobalGenerator* GlobalGenerator;
  384. std::map<std::string, DiagLevel> DiagLevels;
  385. std::string GeneratorInstance;
  386. std::string GeneratorPlatform;
  387. std::string GeneratorToolset;
  388. ///! read in a cmake list file to initialize the cache
  389. void ReadListFile(const std::vector<std::string>& args, const char* path);
  390. bool FindPackage(const std::vector<std::string>& args);
  391. ///! Check if CMAKE_CACHEFILE_DIR is set. If it is not, delete the log file.
  392. /// If it is set, truncate it to 50kb
  393. void TruncateOutputLog(const char* fname);
  394. /**
  395. * Method called to check build system integrity at build time.
  396. * Returns 1 if CMake should rerun and 0 otherwise.
  397. */
  398. int CheckBuildSystem();
  399. void SetDirectoriesFromFile(const char* arg);
  400. //! Make sure all commands are what they say they are and there is no
  401. /// macros.
  402. void CleanupCommandsAndMacros();
  403. void GenerateGraphViz(const char* fileName) const;
  404. cmVariableWatch* VariableWatch;
  405. private:
  406. ProgressCallbackType ProgressCallback;
  407. void* ProgressCallbackClientData;
  408. bool InTryCompile;
  409. WorkingMode CurrentWorkingMode;
  410. bool DebugOutput;
  411. bool Trace;
  412. bool TraceExpand;
  413. bool WarnUninitialized;
  414. bool WarnUnused;
  415. bool WarnUnusedCli;
  416. bool CheckSystemVars;
  417. std::map<std::string, bool> UsedCliVariables;
  418. std::string CMakeEditCommand;
  419. std::string CXXEnvironment;
  420. std::string CCEnvironment;
  421. std::string CheckBuildSystemArgument;
  422. std::string CheckStampFile;
  423. std::string CheckStampList;
  424. std::string VSSolutionFile;
  425. std::vector<std::string> SourceFileExtensions;
  426. std::unordered_set<std::string> SourceFileExtensionsSet;
  427. std::vector<std::string> HeaderFileExtensions;
  428. std::unordered_set<std::string> HeaderFileExtensionsSet;
  429. bool ClearBuildSystem;
  430. bool DebugTryCompile;
  431. cmFileTimeComparison* FileComparison;
  432. std::string GraphVizFile;
  433. InstalledFilesMap InstalledFiles;
  434. cmState* State;
  435. cmStateSnapshot CurrentSnapshot;
  436. cmMessenger* Messenger;
  437. std::vector<std::string> TraceOnlyThisSources;
  438. void UpdateConversionPathTable();
  439. // Print a list of valid generators to stderr.
  440. void PrintGeneratorList();
  441. void CreateDefaultGlobalGenerator();
  442. /**
  443. * Convert a message type between a warning and an error, based on the state
  444. * of the error output CMake variables, in the cache.
  445. */
  446. cmake::MessageType ConvertMessageType(cmake::MessageType t) const;
  447. /*
  448. * Check if messages of this type should be output, based on the state of the
  449. * warning and error output CMake variables, in the cache.
  450. */
  451. bool IsMessageTypeVisible(cmake::MessageType t) const;
  452. };
  453. #define CMAKE_STANDARD_OPTIONS_TABLE \
  454. { "-C <initial-cache>", "Pre-load a script to populate the cache." }, \
  455. { "-D <var>[:<type>]=<value>", "Create a cmake cache entry." }, \
  456. { "-U <globbing_expr>", "Remove matching entries from CMake cache." }, \
  457. { "-G <generator-name>", "Specify a build system generator." }, \
  458. { "-T <toolset-name>", \
  459. "Specify toolset name if supported by generator." }, \
  460. { "-A <platform-name>", \
  461. "Specify platform name if supported by generator." }, \
  462. { "-Wdev", "Enable developer warnings." }, \
  463. { "-Wno-dev", "Suppress developer warnings." }, \
  464. { "-Werror=dev", "Make developer warnings errors." }, \
  465. { "-Wno-error=dev", "Make developer warnings not errors." }, \
  466. { "-Wdeprecated", "Enable deprecation warnings." }, \
  467. { "-Wno-deprecated", "Suppress deprecation warnings." }, \
  468. { "-Werror=deprecated", "Make deprecated macro and function warnings " \
  469. "errors." }, \
  470. { \
  471. "-Wno-error=deprecated", "Make deprecated macro and function warnings " \
  472. "not errors." \
  473. }
  474. #define FOR_EACH_C_FEATURE(F) \
  475. F(c_std_90) \
  476. F(c_std_99) \
  477. F(c_std_11) \
  478. F(c_function_prototypes) \
  479. F(c_restrict) \
  480. F(c_static_assert) \
  481. F(c_variadic_macros)
  482. #define FOR_EACH_CXX_FEATURE(F) \
  483. F(cxx_std_98) \
  484. F(cxx_std_11) \
  485. F(cxx_std_14) \
  486. F(cxx_std_17) \
  487. F(cxx_aggregate_default_initializers) \
  488. F(cxx_alias_templates) \
  489. F(cxx_alignas) \
  490. F(cxx_alignof) \
  491. F(cxx_attributes) \
  492. F(cxx_attribute_deprecated) \
  493. F(cxx_auto_type) \
  494. F(cxx_binary_literals) \
  495. F(cxx_constexpr) \
  496. F(cxx_contextual_conversions) \
  497. F(cxx_decltype) \
  498. F(cxx_decltype_auto) \
  499. F(cxx_decltype_incomplete_return_types) \
  500. F(cxx_default_function_template_args) \
  501. F(cxx_defaulted_functions) \
  502. F(cxx_defaulted_move_initializers) \
  503. F(cxx_delegating_constructors) \
  504. F(cxx_deleted_functions) \
  505. F(cxx_digit_separators) \
  506. F(cxx_enum_forward_declarations) \
  507. F(cxx_explicit_conversions) \
  508. F(cxx_extended_friend_declarations) \
  509. F(cxx_extern_templates) \
  510. F(cxx_final) \
  511. F(cxx_func_identifier) \
  512. F(cxx_generalized_initializers) \
  513. F(cxx_generic_lambdas) \
  514. F(cxx_inheriting_constructors) \
  515. F(cxx_inline_namespaces) \
  516. F(cxx_lambdas) \
  517. F(cxx_lambda_init_captures) \
  518. F(cxx_local_type_template_args) \
  519. F(cxx_long_long_type) \
  520. F(cxx_noexcept) \
  521. F(cxx_nonstatic_member_init) \
  522. F(cxx_nullptr) \
  523. F(cxx_override) \
  524. F(cxx_range_for) \
  525. F(cxx_raw_string_literals) \
  526. F(cxx_reference_qualified_functions) \
  527. F(cxx_relaxed_constexpr) \
  528. F(cxx_return_type_deduction) \
  529. F(cxx_right_angle_brackets) \
  530. F(cxx_rvalue_references) \
  531. F(cxx_sizeof_member) \
  532. F(cxx_static_assert) \
  533. F(cxx_strong_enums) \
  534. F(cxx_template_template_parameters) \
  535. F(cxx_thread_local) \
  536. F(cxx_trailing_return_types) \
  537. F(cxx_unicode_literals) \
  538. F(cxx_uniform_initialization) \
  539. F(cxx_unrestricted_unions) \
  540. F(cxx_user_literals) \
  541. F(cxx_variable_templates) \
  542. F(cxx_variadic_macros) \
  543. F(cxx_variadic_templates)
  544. #endif