dense-analysis / dense-analysis/ale

Make specifying C++ flags to be used by all linters possible

Open
#3,623 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

In my nvim settings I have the following lines:

```
let g:ale_cpp_cc_options = '-std=c++17 -Wall'
let g:ale_cpp_clang_options = '-std=c++17 -Wall'
let g:ale_cpp_clangd_options = '-std=c++17 -Wall'
let g:ale_cpp_clangcheck_options = '--extra-arg=-std=c++17 --extra-arg=-Wall'
let g:ale_cpp_clangtidy_options = '-std=c++17 -Wall'
let g:ale_cpp_gcc_options = '-std=c++17 -Wall'
```

It would be nice if it would be possible to specify C++ options, that would be used for every linter, so that you wouldn't need to repeat the options for each. Something like
```
let g:ale_cpp_flags = `-std=c++17 -Wall`
```
or
```
let g:ale_cpp_std=`c++17`
let g:ale_cpp_flags=`-Wall`
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.