This file contains hidden or 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
import subprocess | |
import sys | |
from pathlib import Path | |
from clang.cindex import CursorKind, Index | |
# argv チェック | |
if len(sys.argv) == 1: | |
print(f"Usage: python3 {sys.argv[0]} <filename> [compile options]") | |
sys.exit(1) |
This file contains hidden or 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
#include <fcntl.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <array> | |
#include <cassert> | |
#include <csignal> | |
#include <cstdint> |