Bug 405951

Summary: Add -verbose command line option to clang-standalone
Product: [Developer tools] clazy Reporter: Eugene Zelenko <eugene.zelenko>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: wishlist CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eugene Zelenko 2019-03-28 01:18:03 UTC
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.
Comment 1 Eugene Zelenko 2019-04-15 20:20:36 UTC
See also https://github.com/include-what-you-use/include-what-you-use/issues/679 for similar problem.
Comment 2 Sergio Martins 2019-04-15 21:00:17 UTC
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
Comment 3 Eugene Zelenko 2019-04-16 00:30:39 UTC
Thank you for help! Workaround works for me.
Comment 4 Sergio Martins 2019-04-16 09:05:11 UTC
maybe also help the IWYU guys :)
Comment 5 Eugene Zelenko 2019-04-16 13:25:26 UTC
(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.