cmake.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  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. bool DoWriteGlobVerifyTarget() const;
  221. std::string const& GetGlobVerifyScript() const;
  222. std::string const& GetGlobVerifyStamp() const;
  223. void AddGlobCacheEntry(bool recurse, bool listDirectories,
  224. bool followSymlinks, const std::string& relative,
  225. const std::string& expression,
  226. const std::vector<std::string>& files,
  227. const std::string& variable,
  228. cmListFileBacktrace const& bt);
  229. /**
  230. * Get the system information and write it to the file specified
  231. */
  232. int GetSystemInformation(std::vector<std::string>&);
  233. ///! Parse command line arguments
  234. void SetArgs(const std::vector<std::string>&,
  235. bool directoriesSetBefore = false);
  236. ///! Is this cmake running as a result of a TRY_COMPILE command
  237. bool GetIsInTryCompile() const;
  238. void SetIsInTryCompile(bool b);
  239. ///! Parse command line arguments that might set cache values
  240. bool SetCacheArgs(const std::vector<std::string>&);
  241. typedef void (*ProgressCallbackType)(const char* msg, float progress, void*);
  242. /**
  243. * Set the function used by GUIs to receive progress updates
  244. * Function gets passed: message as a const char*, a progress
  245. * amount ranging from 0 to 1.0 and client data. The progress
  246. * number provided may be negative in cases where a message is
  247. * to be displayed without any progress percentage.
  248. */
  249. void SetProgressCallback(ProgressCallbackType f, void* clientData = nullptr);
  250. ///! this is called by generators to update the progress
  251. void UpdateProgress(const char* msg, float prog);
  252. ///! Get the variable watch object
  253. cmVariableWatch* GetVariableWatch() { return this->VariableWatch; }
  254. void GetGeneratorDocumentation(std::vector<cmDocumentationEntry>&);
  255. ///! Set/Get a property of this target file
  256. void SetProperty(const std::string& prop, const char* value);
  257. void AppendProperty(const std::string& prop, const char* value,
  258. bool asString = false);
  259. const char* GetProperty(const std::string& prop);
  260. bool GetPropertyAsBool(const std::string& prop);
  261. ///! Get or create an cmInstalledFile instance and return a pointer to it
  262. cmInstalledFile* GetOrCreateInstalledFile(cmMakefile* mf,
  263. const std::string& name);
  264. cmInstalledFile const* GetInstalledFile(const std::string& name) const;
  265. InstalledFilesMap const& GetInstalledFiles() const
  266. {
  267. return this->InstalledFiles;
  268. }
  269. ///! Do all the checks before running configure
  270. int DoPreConfigureChecks();
  271. void SetWorkingMode(WorkingMode mode) { this->CurrentWorkingMode = mode; }
  272. WorkingMode GetWorkingMode() { return this->CurrentWorkingMode; }
  273. ///! Debug the try compile stuff by not deleting the files
  274. bool GetDebugTryCompile() { return this->DebugTryCompile; }
  275. void DebugTryCompileOn() { this->DebugTryCompile = true; }
  276. /**
  277. * Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
  278. */
  279. int AddCMakePaths();
  280. /**
  281. * Get the file comparison class
  282. */
  283. cmFileTimeComparison* GetFileComparison() { return this->FileComparison; }
  284. // Do we want debug output during the cmake run.
  285. bool GetDebugOutput() { return this->DebugOutput; }
  286. void SetDebugOutputOn(bool b) { this->DebugOutput = b; }
  287. // Do we want trace output during the cmake run.
  288. bool GetTrace() { return this->Trace; }
  289. void SetTrace(bool b) { this->Trace = b; }
  290. bool GetTraceExpand() { return this->TraceExpand; }
  291. void SetTraceExpand(bool b) { this->TraceExpand = b; }
  292. void AddTraceSource(std::string const& file)
  293. {
  294. this->TraceOnlyThisSources.push_back(file);
  295. }
  296. std::vector<std::string> const& GetTraceSources() const
  297. {
  298. return this->TraceOnlyThisSources;
  299. }
  300. bool GetWarnUninitialized() { return this->WarnUninitialized; }
  301. void SetWarnUninitialized(bool b) { this->WarnUninitialized = b; }
  302. bool GetWarnUnused() { return this->WarnUnused; }
  303. void SetWarnUnused(bool b) { this->WarnUnused = b; }
  304. bool GetWarnUnusedCli() { return this->WarnUnusedCli; }
  305. void SetWarnUnusedCli(bool b) { this->WarnUnusedCli = b; }
  306. bool GetCheckSystemVars() { return this->CheckSystemVars; }
  307. void SetCheckSystemVars(bool b) { this->CheckSystemVars = b; }
  308. void MarkCliAsUsed(const std::string& variable);
  309. /** Get the list of configurations (in upper case) considered to be
  310. debugging configurations.*/
  311. std::vector<std::string> GetDebugConfigs();
  312. void SetCMakeEditCommand(std::string const& s)
  313. {
  314. this->CMakeEditCommand = s;
  315. }
  316. std::string const& GetCMakeEditCommand() const
  317. {
  318. return this->CMakeEditCommand;
  319. }
  320. cmMessenger* GetMessenger() const;
  321. /*
  322. * Get the state of the suppression of developer (author) warnings.
  323. * Returns false, by default, if developer warnings should be shown, true
  324. * otherwise.
  325. */
  326. bool GetSuppressDevWarnings() const;
  327. /*
  328. * Set the state of the suppression of developer (author) warnings.
  329. */
  330. void SetSuppressDevWarnings(bool v);
  331. /*
  332. * Get the state of the suppression of deprecated warnings.
  333. * Returns false, by default, if deprecated warnings should be shown, true
  334. * otherwise.
  335. */
  336. bool GetSuppressDeprecatedWarnings() const;
  337. /*
  338. * Set the state of the suppression of deprecated warnings.
  339. */
  340. void SetSuppressDeprecatedWarnings(bool v);
  341. /*
  342. * Get the state of treating developer (author) warnings as errors.
  343. * Returns false, by default, if warnings should not be treated as errors,
  344. * true otherwise.
  345. */
  346. bool GetDevWarningsAsErrors() const;
  347. /**
  348. * Set the state of treating developer (author) warnings as errors.
  349. */
  350. void SetDevWarningsAsErrors(bool v);
  351. /*
  352. * Get the state of treating deprecated warnings as errors.
  353. * Returns false, by default, if warnings should not be treated as errors,
  354. * true otherwise.
  355. */
  356. bool GetDeprecatedWarningsAsErrors() const;
  357. /**
  358. * Set the state of treating developer (author) warnings as errors.
  359. */
  360. void SetDeprecatedWarningsAsErrors(bool v);
  361. /** Display a message to the user. */
  362. void IssueMessage(
  363. cmake::MessageType t, std::string const& text,
  364. cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
  365. ///! run the --build option
  366. int Build(const std::string& dir, const std::string& target,
  367. const std::string& config,
  368. const std::vector<std::string>& nativeOptions, bool clean);
  369. ///! run the --open option
  370. bool Open(const std::string& dir, bool dryRun);
  371. void UnwatchUnusedCli(const std::string& var);
  372. void WatchUnusedCli(const std::string& var);
  373. cmState* GetState() const { return this->State; }
  374. void SetCurrentSnapshot(cmStateSnapshot const& snapshot)
  375. {
  376. this->CurrentSnapshot = snapshot;
  377. }
  378. cmStateSnapshot GetCurrentSnapshot() const { return this->CurrentSnapshot; }
  379. protected:
  380. void RunCheckForUnusedVariables();
  381. void InitializeProperties();
  382. int HandleDeleteCacheVariables(const std::string& var);
  383. typedef std::vector<cmGlobalGeneratorFactory*> RegisteredGeneratorsVector;
  384. RegisteredGeneratorsVector Generators;
  385. typedef std::vector<cmExternalMakefileProjectGeneratorFactory*>
  386. RegisteredExtraGeneratorsVector;
  387. RegisteredExtraGeneratorsVector ExtraGenerators;
  388. void AddScriptingCommands();
  389. void AddProjectCommands();
  390. void AddDefaultGenerators();
  391. void AddDefaultExtraGenerators();
  392. cmGlobalGenerator* GlobalGenerator;
  393. std::map<std::string, DiagLevel> DiagLevels;
  394. std::string GeneratorInstance;
  395. std::string GeneratorPlatform;
  396. std::string GeneratorToolset;
  397. ///! read in a cmake list file to initialize the cache
  398. void ReadListFile(const std::vector<std::string>& args, const char* path);
  399. bool FindPackage(const std::vector<std::string>& args);
  400. ///! Check if CMAKE_CACHEFILE_DIR is set. If it is not, delete the log file.
  401. /// If it is set, truncate it to 50kb
  402. void TruncateOutputLog(const char* fname);
  403. /**
  404. * Method called to check build system integrity at build time.
  405. * Returns 1 if CMake should rerun and 0 otherwise.
  406. */
  407. int CheckBuildSystem();
  408. void SetDirectoriesFromFile(const char* arg);
  409. //! Make sure all commands are what they say they are and there is no
  410. /// macros.
  411. void CleanupCommandsAndMacros();
  412. void GenerateGraphViz(const char* fileName) const;
  413. cmVariableWatch* VariableWatch;
  414. private:
  415. ProgressCallbackType ProgressCallback;
  416. void* ProgressCallbackClientData;
  417. bool InTryCompile;
  418. WorkingMode CurrentWorkingMode;
  419. bool DebugOutput;
  420. bool Trace;
  421. bool TraceExpand;
  422. bool WarnUninitialized;
  423. bool WarnUnused;
  424. bool WarnUnusedCli;
  425. bool CheckSystemVars;
  426. std::map<std::string, bool> UsedCliVariables;
  427. std::string CMakeEditCommand;
  428. std::string CXXEnvironment;
  429. std::string CCEnvironment;
  430. std::string CheckBuildSystemArgument;
  431. std::string CheckStampFile;
  432. std::string CheckStampList;
  433. std::string VSSolutionFile;
  434. std::vector<std::string> SourceFileExtensions;
  435. std::unordered_set<std::string> SourceFileExtensionsSet;
  436. std::vector<std::string> HeaderFileExtensions;
  437. std::unordered_set<std::string> HeaderFileExtensionsSet;
  438. bool ClearBuildSystem;
  439. bool DebugTryCompile;
  440. cmFileTimeComparison* FileComparison;
  441. std::string GraphVizFile;
  442. InstalledFilesMap InstalledFiles;
  443. cmState* State;
  444. cmStateSnapshot CurrentSnapshot;
  445. cmMessenger* Messenger;
  446. std::vector<std::string> TraceOnlyThisSources;
  447. void UpdateConversionPathTable();
  448. // Print a list of valid generators to stderr.
  449. void PrintGeneratorList();
  450. void CreateDefaultGlobalGenerator();
  451. /**
  452. * Convert a message type between a warning and an error, based on the state
  453. * of the error output CMake variables, in the cache.
  454. */
  455. cmake::MessageType ConvertMessageType(cmake::MessageType t) const;
  456. /*
  457. * Check if messages of this type should be output, based on the state of the
  458. * warning and error output CMake variables, in the cache.
  459. */
  460. bool IsMessageTypeVisible(cmake::MessageType t) const;
  461. };
  462. #define CMAKE_STANDARD_OPTIONS_TABLE \
  463. { "-C <initial-cache>", "Pre-load a script to populate the cache." }, \
  464. { "-D <var>[:<type>]=<value>", "Create a cmake cache entry." }, \
  465. { "-U <globbing_expr>", "Remove matching entries from CMake cache." }, \
  466. { "-G <generator-name>", "Specify a build system generator." }, \
  467. { "-T <toolset-name>", \
  468. "Specify toolset name if supported by generator." }, \
  469. { "-A <platform-name>", \
  470. "Specify platform name if supported by generator." }, \
  471. { "-Wdev", "Enable developer warnings." }, \
  472. { "-Wno-dev", "Suppress developer warnings." }, \
  473. { "-Werror=dev", "Make developer warnings errors." }, \
  474. { "-Wno-error=dev", "Make developer warnings not errors." }, \
  475. { "-Wdeprecated", "Enable deprecation warnings." }, \
  476. { "-Wno-deprecated", "Suppress deprecation warnings." }, \
  477. { "-Werror=deprecated", "Make deprecated macro and function warnings " \
  478. "errors." }, \
  479. { \
  480. "-Wno-error=deprecated", "Make deprecated macro and function warnings " \
  481. "not errors." \
  482. }
  483. #define FOR_EACH_C_FEATURE(F) \
  484. F(c_std_90) \
  485. F(c_std_99) \
  486. F(c_std_11) \
  487. F(c_function_prototypes) \
  488. F(c_restrict) \
  489. F(c_static_assert) \
  490. F(c_variadic_macros)
  491. #define FOR_EACH_CXX_FEATURE(F) \
  492. F(cxx_std_98) \
  493. F(cxx_std_11) \
  494. F(cxx_std_14) \
  495. F(cxx_std_17) \
  496. F(cxx_std_20) \
  497. F(cxx_aggregate_default_initializers) \
  498. F(cxx_alias_templates) \
  499. F(cxx_alignas) \
  500. F(cxx_alignof) \
  501. F(cxx_attributes) \
  502. F(cxx_attribute_deprecated) \
  503. F(cxx_auto_type) \
  504. F(cxx_binary_literals) \
  505. F(cxx_constexpr) \
  506. F(cxx_contextual_conversions) \
  507. F(cxx_decltype) \
  508. F(cxx_decltype_auto) \
  509. F(cxx_decltype_incomplete_return_types) \
  510. F(cxx_default_function_template_args) \
  511. F(cxx_defaulted_functions) \
  512. F(cxx_defaulted_move_initializers) \
  513. F(cxx_delegating_constructors) \
  514. F(cxx_deleted_functions) \
  515. F(cxx_digit_separators) \
  516. F(cxx_enum_forward_declarations) \
  517. F(cxx_explicit_conversions) \
  518. F(cxx_extended_friend_declarations) \
  519. F(cxx_extern_templates) \
  520. F(cxx_final) \
  521. F(cxx_func_identifier) \
  522. F(cxx_generalized_initializers) \
  523. F(cxx_generic_lambdas) \
  524. F(cxx_inheriting_constructors) \
  525. F(cxx_inline_namespaces) \
  526. F(cxx_lambdas) \
  527. F(cxx_lambda_init_captures) \
  528. F(cxx_local_type_template_args) \
  529. F(cxx_long_long_type) \
  530. F(cxx_noexcept) \
  531. F(cxx_nonstatic_member_init) \
  532. F(cxx_nullptr) \
  533. F(cxx_override) \
  534. F(cxx_range_for) \
  535. F(cxx_raw_string_literals) \
  536. F(cxx_reference_qualified_functions) \
  537. F(cxx_relaxed_constexpr) \
  538. F(cxx_return_type_deduction) \
  539. F(cxx_right_angle_brackets) \
  540. F(cxx_rvalue_references) \
  541. F(cxx_sizeof_member) \
  542. F(cxx_static_assert) \
  543. F(cxx_strong_enums) \
  544. F(cxx_template_template_parameters) \
  545. F(cxx_thread_local) \
  546. F(cxx_trailing_return_types) \
  547. F(cxx_unicode_literals) \
  548. F(cxx_uniform_initialization) \
  549. F(cxx_unrestricted_unions) \
  550. F(cxx_user_literals) \
  551. F(cxx_variable_templates) \
  552. F(cxx_variadic_macros) \
  553. F(cxx_variadic_templates)
  554. #endif