I think will be good idea to have possibility to output clazy-standalone command line argument used to build particular file to troubleshoot problems. I built my project with Clang 8 and then tried to run clang-standalone using compile database. clazy-standalone complained about system headers: /usr/include/limits.h:124:16: fatal error: 'limits.h' file not found # include_next <limits.h> Clazy was built with same Clang 8 as my own project.
See also https://github.com/include-what-you-use/include-what-you-use/issues/679 for similar problem.
clazy-standalone needs to be placed in the same folder as your clang executable. Look for "stddef.h" in https://github.com/KDE/clazy/blob/master/README.md for other possible workarounds
Thank you for help! Workaround works for me.
maybe also help the IWYU guys :)
(In reply to Sergio Martins from comment #4) > maybe also help the IWYU guys :) Indeed! I mentioned your workaround already since it makes IWYU works too.