-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmake check clang.tidy
doesn't follow non-default path to the compile_commands.json
#5583
Comments
xmake check clang.tidy
doesn't respect path to the compile_commands.json
xmake check clang.tidy
doesn't respect path to the compile_commands.jsonxmake check clang.tidy
doesn't follow nondefault path to the compile_commands.json
xmake check clang.tidy
doesn't follow nondefault path to the compile_commands.jsonxmake check clang.tidy
doesn't follow non-default path to the compile_commands.json
try this patch. #5586 we need pass |
Is it possible to somehow grab the compile_commands.json path from project setting in tidy.lua? Root xmake.lua in project has definition for compile_commands.json path:
|
try it again. |
It works fine, |
Xmake Version
2.9.4
Operating System Version and Architecture
Windows 11 23H2 22631.4037
Describe Bug
Whet custom location to compile_commands.json is set (
build/compile_commands.json
),xmake check clang.tidy
can't find it and creates new compile_commands.json each time:Expected Behavior
xmake check clang.tidy
should use compile_commands.json created by xmake during the config or build steps.Project Configuration
Additional Information and Error Logs
Here is xmake lua code that checks compile_commands.json by hardcoded path:
xmake/xmake/modules/private/check/checkers/clang/tidy.lua
Line 116 in 3ab8306
The text was updated successfully, but these errors were encountered: