Peter Goodman
Peter Goodman
Not yet fixed, this is what the token tree looks like:
This function from OpenVPN is a good motivator for this analysis, I think:
This sometimes happens, but not always. It only happens when the `#define` is syntactically nested inside some code that uses the macro.
I think the issue here is related to the macro preamble.
Expanding on this to a belief analysis on locksets would be intersting.
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
- mark the code that runs a js function as "invokes callback", and then when I'm reading far away and that function is in the call graph, I'll see it...
```json [ { "directory": "/Users/pag/Code/darwin-xnu-build/build/xnu-compiledb.obj/RELEASE_ARM64_VMAPPLE/bsd/RELEASE", "file": "/Users/pag/Code/darwin-xnu-build/xnu/bsd/net/necp.c", "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -g -nostdinc -ferror-limit=10000 -fno-builtin -fno-common -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fsigned-bitfields -fmerge-all-constants -fno-c++-static-destructors -DARM64_BOARD_CONFIG_VMAPPLE -march=armv8.5a -arch arm64e -Darm64 -DARM64 -D__ARM64__ -DLP64 -DPAGE_SIZE_FIXED -DVM_KERNEL_LINK_ADDRESS=0xfffffe0007004000...
``` E20230314 14:27:30.519896 93479850 IndexCompileJob.cpp:1309] Error building AST for command -cc1 -triple arm64e-apple-macosx13.1.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -main-file-name necp.c -static-define -mrelocation-model static -fmerge-all-constants -mframe-pointer=non-leaf -relaxed-aliasing -ffp-contract=on...
> For python, the required version should be 3.12+ and while running the suggested command "sudo apt install python3.12-dev", I'm getting the error E: Unable to locate package python3.12-dev So...