cmake.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  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. static const int NO_BUILD_PARALLEL_LEVEL = -1;
  108. static const int DEFAULT_BUILD_PARALLEL_LEVEL = 0;
  109. /// Default constructor
  110. cmake(Role role);
  111. /// Destructor
  112. ~cmake();
  113. #if defined(CMAKE_BUILD_WITH_CMAKE)
  114. Json::Value ReportCapabilitiesJson(bool haveServerMode) const;
  115. #endif
  116. std::string ReportCapabilities(bool haveServerMode) const;
  117. static const char* GetCMakeFilesDirectory() { return "/CMakeFiles"; }
  118. static const char* GetCMakeFilesDirectoryPostSlash()
  119. {
  120. return "CMakeFiles/";
  121. }
  122. //@{
  123. /**
  124. * Set/Get the home directory (or output directory) in the project. The
  125. * home directory is the top directory of the project. It is the
  126. * path-to-source cmake was run with.
  127. */
  128. void SetHomeDirectory(const std::string& dir);
  129. std::string const& GetHomeDirectory() const;
  130. void SetHomeOutputDirectory(const std::string& dir);
  131. std::string const& GetHomeOutputDirectory() const;
  132. //@}
  133. /**
  134. * Handle a command line invocation of cmake.
  135. */
  136. int Run(const std::vector<std::string>& args)
  137. {
  138. return this->Run(args, false);
  139. }
  140. int Run(const std::vector<std::string>& args, bool noconfigure);
  141. /**
  142. * Run the global generator Generate step.
  143. */
  144. int Generate();
  145. /**
  146. * Configure the cmMakefiles. This routine will create a GlobalGenerator if
  147. * one has not already been set. It will then Call Configure on the
  148. * GlobalGenerator. This in turn will read in an process all the CMakeList
  149. * files for the tree. It will not produce any actual Makefiles, or
  150. * workspaces. Generate does that. */
  151. int Configure();
  152. int ActualConfigure();
  153. ///! Break up a line like VAR:type="value" into var, type and value
  154. static bool ParseCacheEntry(const std::string& entry, std::string& var,
  155. std::string& value,
  156. cmStateEnums::CacheEntryType& type);
  157. int LoadCache();
  158. bool LoadCache(const std::string& path);
  159. bool LoadCache(const std::string& path, bool internal,
  160. std::set<std::string>& excludes,
  161. std::set<std::string>& includes);
  162. bool SaveCache(const std::string& path);
  163. bool DeleteCache(const std::string& path);
  164. void PreLoadCMakeFiles();
  165. ///! Create a GlobalGenerator
  166. cmGlobalGenerator* CreateGlobalGenerator(const std::string& name);
  167. ///! Return the global generator assigned to this instance of cmake
  168. cmGlobalGenerator* GetGlobalGenerator() { return this->GlobalGenerator; }
  169. ///! Return the global generator assigned to this instance of cmake, const
  170. const cmGlobalGenerator* GetGlobalGenerator() const
  171. {
  172. return this->GlobalGenerator;
  173. }
  174. ///! Return the full path to where the CMakeCache.txt file should be.
  175. static std::string FindCacheFile(const std::string& binaryDir);
  176. ///! Return the global generator assigned to this instance of cmake
  177. void SetGlobalGenerator(cmGlobalGenerator*);
  178. ///! Get the names of the current registered generators
  179. void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators) const;
  180. ///! Set the name of the selected generator-specific instance.
  181. void SetGeneratorInstance(std::string const& instance)
  182. {
  183. this->GeneratorInstance = instance;
  184. }
  185. ///! Set the name of the selected generator-specific platform.
  186. void SetGeneratorPlatform(std::string const& ts)
  187. {
  188. this->GeneratorPlatform = ts;
  189. }
  190. ///! Set the name of the selected generator-specific toolset.
  191. void SetGeneratorToolset(std::string const& ts)
  192. {
  193. this->GeneratorToolset = ts;
  194. }
  195. const std::vector<std::string>& GetSourceExtensions() const
  196. {
  197. return this->SourceFileExtensions;
  198. }
  199. bool IsSourceExtension(const std::string& ext) const
  200. {
  201. return this->SourceFileExtensionsSet.find(ext) !=
  202. this->SourceFileExtensionsSet.end();
  203. }
  204. const std::vector<std::string>& GetHeaderExtensions() const
  205. {
  206. return this->HeaderFileExtensions;
  207. }
  208. bool IsHeaderExtension(const std::string& ext) const
  209. {
  210. return this->HeaderFileExtensionsSet.find(ext) !=
  211. this->HeaderFileExtensionsSet.end();
  212. }
  213. // Strips the extension (if present and known) from a filename
  214. std::string StripExtension(const std::string& file) const;
  215. /**
  216. * Given a variable name, return its value (as a string).
  217. */
  218. const char* GetCacheDefinition(const std::string&) const;
  219. ///! Add an entry into the cache
  220. void AddCacheEntry(const std::string& key, const char* value,
  221. const char* helpString, int type);
  222. bool DoWriteGlobVerifyTarget() const;
  223. std::string const& GetGlobVerifyScript() const;
  224. std::string const& GetGlobVerifyStamp() const;
  225. void AddGlobCacheEntry(bool recurse, bool listDirectories,
  226. bool followSymlinks, const std::string& relative,
  227. const std::string& expression,
  228. const std::vector<std::string>& files,
  229. const std::string& variable,
  230. cmListFileBacktrace const& bt);
  231. /**
  232. * Get the system information and write it to the file specified
  233. */
  234. int GetSystemInformation(std::vector<std::string>&);
  235. ///! Parse command line arguments
  236. void SetArgs(const std::vector<std::string>&,
  237. bool directoriesSetBefore = false);
  238. ///! Is this cmake running as a result of a TRY_COMPILE command
  239. bool GetIsInTryCompile() const;
  240. void SetIsInTryCompile(bool b);
  241. ///! Parse command line arguments that might set cache values
  242. bool SetCacheArgs(const std::vector<std::string>&);
  243. typedef void (*ProgressCallbackType)(const char* msg, float progress, void*);
  244. /**
  245. * Set the function used by GUIs to receive progress updates
  246. * Function gets passed: message as a const char*, a progress
  247. * amount ranging from 0 to 1.0 and client data. The progress
  248. * number provided may be negative in cases where a message is
  249. * to be displayed without any progress percentage.
  250. */
  251. void SetProgressCallback(ProgressCallbackType f, void* clientData = nullptr);
  252. ///! this is called by generators to update the progress
  253. void UpdateProgress(const char* msg, float prog);
  254. #if defined(CMAKE_BUILD_WITH_CMAKE)
  255. ///! Get the variable watch object
  256. cmVariableWatch* GetVariableWatch() { return this->VariableWatch; }
  257. #endif
  258. void GetGeneratorDocumentation(std::vector<cmDocumentationEntry>&);
  259. ///! Set/Get a property of this target file
  260. void SetProperty(const std::string& prop, const char* value);
  261. void AppendProperty(const std::string& prop, const char* value,
  262. bool asString = false);
  263. const char* GetProperty(const std::string& prop);
  264. bool GetPropertyAsBool(const std::string& prop);
  265. ///! Get or create an cmInstalledFile instance and return a pointer to it
  266. cmInstalledFile* GetOrCreateInstalledFile(cmMakefile* mf,
  267. const std::string& name);
  268. cmInstalledFile const* GetInstalledFile(const std::string& name) const;
  269. InstalledFilesMap const& GetInstalledFiles() const
  270. {
  271. return this->InstalledFiles;
  272. }
  273. ///! Do all the checks before running configure
  274. int DoPreConfigureChecks();
  275. void SetWorkingMode(WorkingMode mode) { this->CurrentWorkingMode = mode; }
  276. WorkingMode GetWorkingMode() { return this->CurrentWorkingMode; }
  277. ///! Debug the try compile stuff by not deleting the files
  278. bool GetDebugTryCompile() { return this->DebugTryCompile; }
  279. void DebugTryCompileOn() { this->DebugTryCompile = true; }
  280. /**
  281. * Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
  282. */
  283. int AddCMakePaths();
  284. /**
  285. * Get the file comparison class
  286. */
  287. cmFileTimeComparison* GetFileComparison() { return this->FileComparison; }
  288. // Do we want debug output during the cmake run.
  289. bool GetDebugOutput() { return this->DebugOutput; }
  290. void SetDebugOutputOn(bool b) { this->DebugOutput = b; }
  291. // Do we want trace output during the cmake run.
  292. bool GetTrace() { return this->Trace; }
  293. void SetTrace(bool b) { this->Trace = b; }
  294. bool GetTraceExpand() { return this->TraceExpand; }
  295. void SetTraceExpand(bool b) { this->TraceExpand = b; }
  296. void AddTraceSource(std::string const& file)
  297. {
  298. this->TraceOnlyThisSources.push_back(file);
  299. }
  300. std::vector<std::string> const& GetTraceSources() const
  301. {
  302. return this->TraceOnlyThisSources;
  303. }
  304. bool GetWarnUninitialized() { return this->WarnUninitialized; }
  305. void SetWarnUninitialized(bool b) { this->WarnUninitialized = b; }
  306. bool GetWarnUnused() { return this->WarnUnused; }
  307. void SetWarnUnused(bool b) { this->WarnUnused = b; }
  308. bool GetWarnUnusedCli() { return this->WarnUnusedCli; }
  309. void SetWarnUnusedCli(bool b) { this->WarnUnusedCli = b; }
  310. bool GetCheckSystemVars() { return this->CheckSystemVars; }
  311. void SetCheckSystemVars(bool b) { this->CheckSystemVars = b; }
  312. void MarkCliAsUsed(const std::string& variable);
  313. /** Get the list of configurations (in upper case) considered to be
  314. debugging configurations.*/
  315. std::vector<std::string> GetDebugConfigs();
  316. void SetCMakeEditCommand(std::string const& s)
  317. {
  318. this->CMakeEditCommand = s;
  319. }
  320. std::string const& GetCMakeEditCommand() const
  321. {
  322. return this->CMakeEditCommand;
  323. }
  324. cmMessenger* GetMessenger() const;
  325. /*
  326. * Get the state of the suppression of developer (author) warnings.
  327. * Returns false, by default, if developer warnings should be shown, true
  328. * otherwise.
  329. */
  330. bool GetSuppressDevWarnings() const;
  331. /*
  332. * Set the state of the suppression of developer (author) warnings.
  333. */
  334. void SetSuppressDevWarnings(bool v);
  335. /*
  336. * Get the state of the suppression of deprecated warnings.
  337. * Returns false, by default, if deprecated warnings should be shown, true
  338. * otherwise.
  339. */
  340. bool GetSuppressDeprecatedWarnings() const;
  341. /*
  342. * Set the state of the suppression of deprecated warnings.
  343. */
  344. void SetSuppressDeprecatedWarnings(bool v);
  345. /*
  346. * Get the state of treating developer (author) warnings as errors.
  347. * Returns false, by default, if warnings should not be treated as errors,
  348. * true otherwise.
  349. */
  350. bool GetDevWarningsAsErrors() const;
  351. /**
  352. * Set the state of treating developer (author) warnings as errors.
  353. */
  354. void SetDevWarningsAsErrors(bool v);
  355. /*
  356. * Get the state of treating deprecated warnings as errors.
  357. * Returns false, by default, if warnings should not be treated as errors,
  358. * true otherwise.
  359. */
  360. bool GetDeprecatedWarningsAsErrors() const;
  361. /**
  362. * Set the state of treating developer (author) warnings as errors.
  363. */
  364. void SetDeprecatedWarningsAsErrors(bool v);
  365. /** Display a message to the user. */
  366. void IssueMessage(
  367. cmake::MessageType t, std::string const& text,
  368. cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
  369. ///! run the --build option
  370. int Build(int jobs, const std::string& dir, const std::string& target,
  371. const std::string& config,
  372. const std::vector<std::string>& nativeOptions, bool clean);
  373. ///! run the --open option
  374. bool Open(const std::string& dir, bool dryRun);
  375. void UnwatchUnusedCli(const std::string& var);
  376. void WatchUnusedCli(const std::string& var);
  377. cmState* GetState() const { return this->State; }
  378. void SetCurrentSnapshot(cmStateSnapshot const& snapshot)
  379. {
  380. this->CurrentSnapshot = snapshot;
  381. }
  382. cmStateSnapshot GetCurrentSnapshot() const { return this->CurrentSnapshot; }
  383. protected:
  384. void RunCheckForUnusedVariables();
  385. void InitializeProperties();
  386. int HandleDeleteCacheVariables(const std::string& var);
  387. typedef std::vector<cmGlobalGeneratorFactory*> RegisteredGeneratorsVector;
  388. RegisteredGeneratorsVector Generators;
  389. typedef std::vector<cmExternalMakefileProjectGeneratorFactory*>
  390. RegisteredExtraGeneratorsVector;
  391. RegisteredExtraGeneratorsVector ExtraGenerators;
  392. void AddScriptingCommands();
  393. void AddProjectCommands();
  394. void AddDefaultGenerators();
  395. void AddDefaultExtraGenerators();
  396. cmGlobalGenerator* GlobalGenerator;
  397. std::map<std::string, DiagLevel> DiagLevels;
  398. std::string GeneratorInstance;
  399. std::string GeneratorPlatform;
  400. std::string GeneratorToolset;
  401. ///! read in a cmake list file to initialize the cache
  402. void ReadListFile(const std::vector<std::string>& args, const char* path);
  403. bool FindPackage(const std::vector<std::string>& args);
  404. ///! Check if CMAKE_CACHEFILE_DIR is set. If it is not, delete the log file.
  405. /// If it is set, truncate it to 50kb
  406. void TruncateOutputLog(const char* fname);
  407. /**
  408. * Method called to check build system integrity at build time.
  409. * Returns 1 if CMake should rerun and 0 otherwise.
  410. */
  411. int CheckBuildSystem();
  412. void SetDirectoriesFromFile(const char* arg);
  413. //! Make sure all commands are what they say they are and there is no
  414. /// macros.
  415. void CleanupCommandsAndMacros();
  416. void GenerateGraphViz(const char* fileName) const;
  417. private:
  418. ProgressCallbackType ProgressCallback;
  419. void* ProgressCallbackClientData;
  420. bool InTryCompile;
  421. WorkingMode CurrentWorkingMode;
  422. bool DebugOutput;
  423. bool Trace;
  424. bool TraceExpand;
  425. bool WarnUninitialized;
  426. bool WarnUnused;
  427. bool WarnUnusedCli;
  428. bool CheckSystemVars;
  429. std::map<std::string, bool> UsedCliVariables;
  430. std::string CMakeEditCommand;
  431. std::string CXXEnvironment;
  432. std::string CCEnvironment;
  433. std::string CheckBuildSystemArgument;
  434. std::string CheckStampFile;
  435. std::string CheckStampList;
  436. std::string VSSolutionFile;
  437. std::vector<std::string> SourceFileExtensions;
  438. std::unordered_set<std::string> SourceFileExtensionsSet;
  439. std::vector<std::string> HeaderFileExtensions;
  440. std::unordered_set<std::string> HeaderFileExtensionsSet;
  441. bool ClearBuildSystem;
  442. bool DebugTryCompile;
  443. cmFileTimeComparison* FileComparison;
  444. std::string GraphVizFile;
  445. InstalledFilesMap InstalledFiles;
  446. #if defined(CMAKE_BUILD_WITH_CMAKE)
  447. cmVariableWatch* VariableWatch;
  448. #endif
  449. cmState* State;
  450. cmStateSnapshot CurrentSnapshot;
  451. cmMessenger* Messenger;
  452. std::vector<std::string> TraceOnlyThisSources;
  453. void UpdateConversionPathTable();
  454. // Print a list of valid generators to stderr.
  455. void PrintGeneratorList();
  456. void CreateDefaultGlobalGenerator();
  457. /**
  458. * Convert a message type between a warning and an error, based on the state
  459. * of the error output CMake variables, in the cache.
  460. */
  461. cmake::MessageType ConvertMessageType(cmake::MessageType t) const;
  462. /*
  463. * Check if messages of this type should be output, based on the state of the
  464. * warning and error output CMake variables, in the cache.
  465. */
  466. bool IsMessageTypeVisible(cmake::MessageType t) const;
  467. };
  468. #define CMAKE_STANDARD_OPTIONS_TABLE \
  469. { "-S <path-to-source>", "Explicitly specify a source directory." }, \
  470. { "-B <path-to-build>", "Explicitly specify a build directory." }, \
  471. { "-C <initial-cache>", "Pre-load a script to populate the cache." }, \
  472. { "-D <var>[:<type>]=<value>", "Create or update a cmake cache entry." }, \
  473. { "-U <globbing_expr>", "Remove matching entries from CMake cache." }, \
  474. { "-G <generator-name>", "Specify a build system generator." }, \
  475. { "-T <toolset-name>", \
  476. "Specify toolset name if supported by generator." }, \
  477. { "-A <platform-name>", \
  478. "Specify platform name if supported by generator." }, \
  479. { "-Wdev", "Enable developer warnings." }, \
  480. { "-Wno-dev", "Suppress developer warnings." }, \
  481. { "-Werror=dev", "Make developer warnings errors." }, \
  482. { "-Wno-error=dev", "Make developer warnings not errors." }, \
  483. { "-Wdeprecated", "Enable deprecation warnings." }, \
  484. { "-Wno-deprecated", "Suppress deprecation warnings." }, \
  485. { "-Werror=deprecated", \
  486. "Make deprecated macro and function warnings " \
  487. "errors." }, \
  488. { \
  489. "-Wno-error=deprecated", \
  490. "Make deprecated macro and function warnings " \
  491. "not errors." \
  492. }
  493. #define FOR_EACH_C_FEATURE(F) \
  494. F(c_std_90) \
  495. F(c_std_99) \
  496. F(c_std_11) \
  497. F(c_function_prototypes) \
  498. F(c_restrict) \
  499. F(c_static_assert) \
  500. F(c_variadic_macros)
  501. #define FOR_EACH_CXX_FEATURE(F) \
  502. F(cxx_std_98) \
  503. F(cxx_std_11) \
  504. F(cxx_std_14) \
  505. F(cxx_std_17) \
  506. F(cxx_std_20) \
  507. F(cxx_aggregate_default_initializers) \
  508. F(cxx_alias_templates) \
  509. F(cxx_alignas) \
  510. F(cxx_alignof) \
  511. F(cxx_attributes) \
  512. F(cxx_attribute_deprecated) \
  513. F(cxx_auto_type) \
  514. F(cxx_binary_literals) \
  515. F(cxx_constexpr) \
  516. F(cxx_contextual_conversions) \
  517. F(cxx_decltype) \
  518. F(cxx_decltype_auto) \
  519. F(cxx_decltype_incomplete_return_types) \
  520. F(cxx_default_function_template_args) \
  521. F(cxx_defaulted_functions) \
  522. F(cxx_defaulted_move_initializers) \
  523. F(cxx_delegating_constructors) \
  524. F(cxx_deleted_functions) \
  525. F(cxx_digit_separators) \
  526. F(cxx_enum_forward_declarations) \
  527. F(cxx_explicit_conversions) \
  528. F(cxx_extended_friend_declarations) \
  529. F(cxx_extern_templates) \
  530. F(cxx_final) \
  531. F(cxx_func_identifier) \
  532. F(cxx_generalized_initializers) \
  533. F(cxx_generic_lambdas) \
  534. F(cxx_inheriting_constructors) \
  535. F(cxx_inline_namespaces) \
  536. F(cxx_lambdas) \
  537. F(cxx_lambda_init_captures) \
  538. F(cxx_local_type_template_args) \
  539. F(cxx_long_long_type) \
  540. F(cxx_noexcept) \
  541. F(cxx_nonstatic_member_init) \
  542. F(cxx_nullptr) \
  543. F(cxx_override) \
  544. F(cxx_range_for) \
  545. F(cxx_raw_string_literals) \
  546. F(cxx_reference_qualified_functions) \
  547. F(cxx_relaxed_constexpr) \
  548. F(cxx_return_type_deduction) \
  549. F(cxx_right_angle_brackets) \
  550. F(cxx_rvalue_references) \
  551. F(cxx_sizeof_member) \
  552. F(cxx_static_assert) \
  553. F(cxx_strong_enums) \
  554. F(cxx_template_template_parameters) \
  555. F(cxx_thread_local) \
  556. F(cxx_trailing_return_types) \
  557. F(cxx_unicode_literals) \
  558. F(cxx_uniform_initialization) \
  559. F(cxx_unrestricted_unions) \
  560. F(cxx_user_literals) \
  561. F(cxx_variable_templates) \
  562. F(cxx_variadic_macros) \
  563. F(cxx_variadic_templates)
  564. #endif