Files
playbook/templates/cpp/.clangd
T
csh 9ef45155dd 🔧 chore(cpp): trim clang-format to intentional google deviations
- 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
2026-07-29 15:45:48 +08:00

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