Skip to content

Error running: clang-format: Unknown command line argument '-sort-includes' #64

@shiywang

Description

@shiywang

I try to use :FormatCode, it throws:

Error formatting file: ERROR(ShellError): Error running: clang-format -style file -assume-filename /Users/shiyang/test.c -lines 1:29 -cursor 134 -sort-includes
clang-format: Unknown command line argument '-sort-includes'.  Try: 'clang-format -help'
clang-format: Did you mean '-style'?

my clang-format version:

➜  ~  clang-format -version
clang-format version 3.8.0 (tags/google/testing/2015-07-31)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions