rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.79k stars 314 forks source link

[Feature Request] Exclude flags #405

Closed ofirgall closed 3 years ago

ofirgall commented 3 years ago

Some gcc flags aren't supported by clang as far as I know it's only optimization flags which aren't important to compile commands. There is an option to include extra flags but not to exclude flags.

rizsotto commented 3 years ago

He @ofir753 , thanks for your report. Not sure if I understand correctly, but in the latest version there is way to filter out specific compiler flags. (Read the man page of citnames command for the configuration file.)