Skip to content

cpplearner/feature-test-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Feature-Test Macros

This repo contains data for C++ feature-test macros, including

This repo only attempts to track the latest master versions of Clang/GCC/MSVC STL, not any particular release. For MSVC compiler, the latest release is tracked.

All data are located in the data.yaml file.

Tools

This repo also contains Python scripts for various purposes, located in the tools/ directory. These include

  • generate_testfiles.py, for generating files that can be used to check feature-test macro support for each implementation. Macros are grouped by their kinds. This is mostly useful for manual testing. The generated test files can be identified as test/{kind}/{impl}.cpp, where {kind} is one of attribute/language/library, {impl} is one of clang/gcc/msvc. (test/library/clang.cpp and test/library/gcc.cpp test for libc++ and libstdc++ respectively, although these libraries can work with different compilers.)
  • do_test.py, for automatically checking feature-test macro support.
  • maketable_cppreference.py, which generates wikicode for language/library tables that can be used in https://en.cppreference.com/w/cpp/feature_test.

In addition, there's utilities.py, which contains utility variables/functions/classes for internal use.

These scripts must be invoked from the project root (the directory that contains data.yaml).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages