inconsistent versions of clang-format between platforms #9247
Labels
bug
Feature: Code Formatting
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
Milestone
Bug type: Language Service
Describe the bug
Context:
The version of
clang-format
installed into the remote device is v10.0.0:❯ ~/.vscode-server/extensions/ms-vscode.cpptools-1.9.8-linux-arm64/LLVM/bin/clang-format --version clang-format version 10.0.0 (https://github.com/llvm/llvm-project d32170dbd5b0d54436537b6b75beaf44324e0c28)
The version on the host is v13.0.0:
❯ ~/.vscode/extensions/ms-vscode.cpptools-1.9.8-darwin-x64/LLVM/bin/clang-format --version clang-format version 13.0.0 (https://github.com/llvm/llvm-project d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)
My
.clang-format
file was created using v13. When run on the remote device it doesn't work and gives errors along the lines ofError reading
...Invalid argument
.Steps to reproduce
clang-format -style=Chromium -dump-config > .clang-format
Expected behavior
The version of
clang-format
should preferably always be 13+Work-around
Regenerating the config using
clang-format
v10 and comparing with my existing.clang-format
file allowed me to find all instances of newer arguments and options. I re-saved my config to be v10-compatible.The text was updated successfully, but these errors were encountered: