-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clangd and clang-tidy initial support (#466)
* Add rules for extracting bazel compile commands * Add .clang-tidy configuration file
- Loading branch information
1 parent
fe1c1b1
commit 5a04a50
Showing
5 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Provides better readability. | ||
UseColor: true | ||
|
||
# NOTE: The checks were taken from | ||
# https://github.com/3rdparty/eventuals/pull/210 | ||
# TODO: Discuss if we want to add some extra checks. | ||
# Available checks can be found here: | ||
# https://clang.llvm.org/extra/clang-tidy/checks/list.html | ||
Checks: > | ||
bugprone-*, | ||
clang-analyzer-cplusplus*, | ||
concurrency-*, | ||
cppcoreguidelines-*, | ||
google-*, | ||
modernize-*, | ||
performance-*, | ||
readability-*, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# If there are too many errors, clangd, by default, does not show them, but instead | ||
# emits the error [clang: fatal_too_many_errors]. | ||
# It's not helpful at all, so the following option disables this behaviour | ||
# and forces clangd to continue running. | ||
# https://github.com/clangd/coc-clangd/issues/255 | ||
CompileFlags: | ||
Add: -ferror-limit=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters