cmake.h 25 KB

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