8000 Use unmodified official ClangFormat configuration as base formatter configuration by per1234 · Pull Request #1324 · arduino/arduino-ide · GitHub
[go: up one dir, main page]

Skip to content

Use unmodified official ClangFormat configuration as base formatter configuration #1324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 16, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct relative path to formatter configuration file
  • Loading branch information
per1234 committed Aug 16, 2022
commit becb9013da4f915aec3e138bb10a14903698b901
2 changes: 1 addition & 1 deletion arduino-ide-extension/src/node/clang-formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function styleJson({
UseTab,
}: ClangFormatOptions): Record<string, unknown> {
// Source: https://github.com/arduino/tooling-project-assets/tree/main/other/clang-format-configuration
const defaultConfig = require('./default-formatter-config.json'); // 1. require the JSON
const defaultConfig = require('../../src/node/default-formatter-config.json'); // 1. require the JSON
return {
...defaultConfig,
TabWidth, // 2. override the default values with the user-defined ones
Expand Down
0