Skip to content

clang-format header sorting inconsistent #1586

@sebholt

Description

@sebholt

When using clang-format from the Source Code Formatter the own header of the source file is not put on top but rather placed in the alphabetical order.

Consider a file b.cpp with the following content

// b.cpp
#include "b.hpp"
#include "a.hpp"
...

After clang-format in codelite it becomes

// b.cpp
#include "a.hpp"
#include "b.hpp"
...

which differs from the result of clang-format -i b.cpp which would leave b.hpp at the top.

Besides this the clang-format plugin is a great tool!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions