I've been trying to follow the instructions here:
https://chromium.googlesource.com/chromium/src/+/master/docs/writing_clang_plugins.md
But I'm running into the following error:
error: unable to load plugin '../../_test/tools/llvm-project/build/lib/PrintFunctionNames.dylib': 'dlopen(../../_test/tools/llvm-project/build/lib/PrintFunctionNames.dylib, 9): Symbol not found: __ZN5clang11ASTConsumer21HandleInterestingDeclENS_12DeclGroupRefE
Referenced from: ../../_test/tools/llvm-project/build/lib/PrintFunctionNames.dylib
Expected in: flat namespace
in ../../_test/tools/llvm-project/build/lib/PrintFunctionNames.dylib'
After reading through the build script I found the line -DCLANG_PLUGIN_SUPPORT=OFF which I assume creates a binary that won't allow `-Xclang -load`?
Is this assumption correct, and how can I move forward with writing a custom plugin? This is for an experiment, not something intended to be committed.
Thanks!