Created
May 1, 2021 21:50
-
-
Save GavinRay97/b23c1b8dd5a2b5421d233469142819ce to your computer and use it in GitHub Desktop.
Get Clang builtin macro/preprocessor definitions from the compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works in both Windows + Linux/Mac | |
# For standard clang | |
echo | clang -dM -E - | |
# For clang-cl.exe | |
echo | clang -fms-extensions -dM -E - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment