aboutsummaryrefslogtreecommitdiffstats
path: root/tools/clang/declextract/declextract.cpp
Commit message (Collapse)AuthorAgeFilesLines
* tools/clang: build clang tools on linux onlyDmitry Vyukov2026-02-231-0/+2
| | | | | | | This will hopefully prevent: imports github.com/google/syzkaller/tools/clang/codesearch: C++ source files not allowed when not using cgo or SWIG: codesearch.cpp
* tools/clang: compile clang tools into the binaryDmitry Vyukov2026-02-061-6/+26
| | | | | | | | | | | | | | | | | | Compiled clang tools into Go binaries using cgo. This significantly simplifies building and deployment. This also enables unit testing of clang tools. Now raw go test for clang tools will build them, run, and verify output. Each clang tool is still started as a subprocess. I've experimented with running them in-process, but this makes stdout/stderr interception extremly complicated, and it seems that clang tools still use unsynchronized global state, which breaks when invoked multiple times. Subprocesses also make it safer in the face of potential memory leaks, or memory corruptions in clang tools. Fixes #6645
* tools/clang/declextract: move from tools/syz-declextract/clangtoolDmitry Vyukov2025-11-171-0/+1009
Some of the common helpers may be reused across different Clang tools (currently json.h and .clang-format). Move the files to allow such reuse.