Skip to content

Associate clang-format formatter with C and Obj-C #15

@dbarnett

Description

@dbarnett

In clang-format's help, it calls itself "a tool to format C/C++/Obj-C code", but the current AppliesToBuffer check on the clang-format formatter only checks for cpp, proto, and javascript filetypes.

We should enable it as a default formatter for filetypes c, objc, and objcpp so that if people use :FormatCode on these filetypes with no explicit formatter, they will get code formatted with clang-format instead of seeing Not available. codefmt doesn't have a default formatter for this buffer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions