Bug 405951 - Add -verbose command line option to clang-standalone
Summary: Add -verbose command line option to clang-standalone
Status: RESOLVED UPSTREAM
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-28 01:18 UTC by Eugene Zelenko
Modified: 2019-04-16 13:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.