Bug 383377 - Add clazy-standalone option to only consider specific headers
Summary: Add clazy-standalone option to only consider specific headers
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-10 18:56 UTC by Taylor Braun-Jones
Modified: 2018-01-13 13:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taylor Braun-Jones 2017-08-10 18:56:01 UTC
Something similar to what `run-clang-tidy.py -header-filter=...` provides.
Comment 1 Sergio Martins 2017-12-01 19:02:26 UTC
Maybe we want a run-clazy-standalone instead ? Or even make run-clang-tidy.py compatible with clazy
Comment 2 Taylor Braun-Jones 2017-12-01 19:23:12 UTC
Making run-clang-tidy.py compatible with clazy makes sense to me. Especially if the goal is to one day be integrated with clang-tidy as a plugin.
Comment 3 Konstantin Tokarev 2017-12-01 19:25:59 UTC
-header-filter is not run-clang-tidy.py option, but option of clang-tidy itself, while clazy doesn't have this option. For me personally it's much more important than having run-clazy-standalone of any kind
Comment 4 Sergio Martins 2018-01-13 13:27:39 UTC
Git commit c86bd90f5918c5032a2c83c34d7edb5297dc95d6 by Sergio Martins.
Committed on 13/01/2018 at 13:25.
Pushed by smartins into branch 'master'.

Introduce -header-filter=<regexp> option for clazy-standalone

Similar to what clang-tidy has. Useful for when you can't use
-isystem.

M  +2    -0    Changelog
M  +6    -7    src/Clazy.cpp
M  +5    -2    src/Clazy.h
M  +5    -1    src/ClazyContext.cpp
M  +29   -1    src/ClazyContext.h
M  +7    -1    src/ClazyStandaloneMain.cpp
M  +3    -0    src/checkbase.cpp
A  +15   -0    tests/clazy-standalone/config.json
A  +7    -0    tests/clazy-standalone/header_filter.cpp     [License: UNKNOWN]  *
A  +3    -0    tests/clazy-standalone/header_filter.cpp.expected
A  +7    -0    tests/clazy-standalone/header_filter2.cpp     [License: UNKNOWN]  *
A  +2    -0    tests/clazy-standalone/header_filter2.cpp.expected
A  +6    -0    tests/clazy-standalone/header_filter_bar.h     [License: UNKNOWN]  *
A  +6    -0    tests/clazy-standalone/header_filter_foo.h     [License: UNKNOWN]  *
M  +7    -0    tests/run_tests.py

The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


https://commits.kde.org/clazy/c86bd90f5918c5032a2c83c34d7edb5297dc95d6