Skip to content

Clang-Format: Sort include directives by letter, not by ASCII code #113

Closed
@mmoderau

Description

@mmoderau

When sorting includes in a project, that mixes case styles for file names (for example both PascalCase and snake_case), it would be helpful to be able to sort alphabetically (case aware) instead of by character code.

Currently

#include <AClass.h>
#include <ThisIsADifferentClass.h>
#include <a_header_with_utility_functions.h>

Expected

#include <AClass.h>
#include <a_header_with_utility_functions.h>
#include <ThisIsADifferentClass.h>

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