lift_indicator_suite/.clangd
Ezra Maccabee 6673bf5da6 # 11
- написан и покрыт хост-тестами модуль bsp_opto (оптовоходы RS, IN1, IN2)
- TODO: написал первый HIL тест с m5stamplc
2026-03-23 13:58:09 +03:00

76 lines
1.7 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Для тестов, подхватываем compile_commands для host
If:
PathMatch: "tests/host/.*\\.c"
CompileFlags:
CompilationDatabase: build/host-debug
---
# Для всего кроме тестов, подхватываем compile_commands для target
If:
PathExclude: "tests/host/.*\\.c"
CompileFlags:
CompilationDatabase: build/Debug
---
# Не ругаемся на нарушения правил нейминга в тестах
If:
PathMatch: "tests/.*\\.c"
Diagnostics:
ClangTidy:
Remove:
- readability-identifier-naming
UnusedIncludes: None
---
# SDK NXP: сгенерированный/вендорный код — tidy полностью отключён
If:
PathMatch: "sdk/.*\\.(c|h)"
Diagnostics:
ClangTidy:
Remove:
- "*"
UnusedIncludes: None
---
# Сторонние библиотеки (SEGGER RTT и др.) — tidy полностью отключён
If:
PathMatch: "lib/.*\\.(c|h)"
Diagnostics:
ClangTidy:
Remove:
- "*"
UnusedIncludes: None
---
# BSP board: сгенерированный Config Tools код — tidy полностью отключён
If:
PathMatch: "bsp/board/(board|pin_mux|clock_config)\\.(c|h)"
Diagnostics:
ClangTidy:
Remove:
- "*"
UnusedIncludes: None
---
# Глобальные настройки
Index:
Background: Build
Diagnostics:
ClangTidy:
Add:
- bugprone-*
- clang-analyzer-*
- performance-*
- readability-*
- portability-*
Remove:
- performance-no-int-to-ptr
- readability-magic-numbers
- readability-isolate-declaration
- bugprone-easily-swappable-parameters
UnusedIncludes: Enabled
InlayHints:
Enabled: true
ParameterNames: true
DeducedTypes: true