Skip to content

Commit

Permalink
Change default value "PAS_Left" to "Left" (#54)
Browse files Browse the repository at this point in the history
If I set my PointerAlignment setting to "PAS_Left" (uncomment the setting line)
The following error occurs upon formatting:
```
Error parsing-style: Invalid argument
```

The comment in the settings file cites probably [clang](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) which also says that in config the "PAS_" prefix is omitted.

In my version (v1.3.6 ) on Ubuntu `Left`, `Middle`, and `Right` do the work.
  • Loading branch information
lnksz authored and sailormoon committed Mar 23, 2018
1 parent 5f77ec1 commit 13faf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang_format_custom.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
// PAS_Left (in configuration: Left) Align pointer to the left.
// PAS_Right (in configuration: Right) Align pointer to the right.
// PAS_Middle (in configuration: Middle) Align pointer in the middle.
// "PointerAlignment": "PAS_Left",
// "PointerAlignment": "Left",

// If true, a space may be inserted after C style casts.
// "SpaceAfterCStyleCast": true,
Expand Down

0 comments on commit 13faf0e

Please sign in to comment.