- keep only the options that differ from Google style, each annotated with the Google default, so every override carries its own rationale - switch to Allman braces and a 120 column limit; short functions now collapse only when declared inline - dropped overrides fall back to Google behaviour, which turns include sorting, argument binpacking, comment reflow and namespace comment fixing back on - drop a stray trailing blank line in .clangd
25 lines
556 B
YAML
25 lines
556 B
YAML
CompileFlags:
|
|
# Point clangd to a CMake compilation database (compile_commands.json).
|
|
#
|
|
# Recommended: keep this aligned with your Conan/CMake preset output directory.
|
|
# Example (this playbook's default cross build folder):
|
|
CompilationDatabase: build/windows-x86_64-clang-cross/Release
|
|
|
|
---
|
|
If:
|
|
PathMatch: [.*\\.hpp, .*\\.hxx, .*\\.cpp, .*\\.cc, .*\\.cxx, .*\\.cppm, .*\\.ixx, .*\\.mpp]
|
|
|
|
CompileFlags:
|
|
Add:
|
|
- "-std=c++23"
|
|
Compiler: clang++
|
|
|
|
---
|
|
If:
|
|
PathMatch: [.*\\.h, .*\\.c]
|
|
|
|
CompileFlags:
|
|
Add:
|
|
- "-std=c17"
|
|
Compiler: clang
|