arocc
arocc copied to clipboard
Add computed include support
The following is allowed by gcc/clang:
#define HEADER <stdarg.h>
#include HEADER
arocc currently gives:
./test.c:2:10: error: expected "FILENAME" or <FILENAME>
#include HEADER
^
https://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html
Relevant thing we're not doing:
If the first non-whitespace character after ‘#include’ is not ‘"’ or ‘<’, then the entire line is macro-expanded like running text would be.