Problem about clang-tidy check

I have written a custom clang-tidy check rule and have included code to read an XML configuration file within the rule. This configuration file is stored in the llvm/config directory that I created. Since this XML file will be used in other places as well, it is necessary to read it. The .clang-tidy file does not meet my requirements. Now that I have implemented the desired check functionality, I want to package this rule into a clangd plugin. How should I handle this XML file? I am unsure where it should be placed within the plugin because I have specified the actual path in the clang-tidy rule code, and it seems that the packaged plugin cannot find this path after it is published. I don’t know how to handle this situation, so please help me. Thank you.

1 Like