cmake.h 25 KB

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