google / google/vim-codefmt

Order include directives alphabetically.

Open
#42 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
1.1k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

The google C++ style guide recommends to sort include directives alphabetically. https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Names_and_Order_of_Includes

It would be nice if codefmt's FormatCode could also do this.

Contributor guide

Open the contributing guide

Research direction

Start at the FormatCode entry point named in the issue and trace how code formatting is applied to C++ source. The work is done when include directives are sorted alphabetically in the formatted output, while the existing formatting behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vim
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.