Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional options setting for clang-tidy linter #2566

Merged
merged 1 commit into from Jun 8, 2019
Merged

Add additional options setting for clang-tidy linter #2566

merged 1 commit into from Jun 8, 2019

Conversation

jonvmey
Copy link

@jonvmey jonvmey commented Jun 8, 2019

Fixes #2324

Looking for some feedback on what to name the new option I've added for the clang-tidy linter. I've just used g:ale_c(pp)_clangtidy_extra_options as a temporary placeholder for now. This new setting can be used to configure clang-tidy specific settings unlike the existing options which can only configure compiler flags.

Ideally (IMO), the existing g:ale_c(pp)_clangtidy_options name would be repurposed for the new setting and the existing setting would be renamed to g:ale_c(pp)_clangtidy_compiler_options or something similar. This would more accurately reflect what each setting is actually used for. That would be a breaking change for existing users though so finding a better name for the new setting is probably the better option.

The existing option setting handles setting additional compile flags to
pass to clang-tidy. The new option setting added here allows setting
additional clang-tidy specific flags to be passed as well.
Fixes #2324
@w0rp w0rp merged commit 6eb68b4 into dense-analysis:master Jun 8, 2019
@w0rp
Copy link
Member

w0rp commented Jun 8, 2019

Cheers! 🍻

@gnarlie
Copy link

gnarlie commented Jun 8, 2019

perfect - I'll give this a try. thanks @Grimmn

@jonvmey jonvmey deleted the extend-clangtidy-options branch July 7, 2019 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clang-tidy user options appear after '--'
4 participants