Commit Graph

3 Commits

Author SHA1 Message Date
Hielke Morsink 307745dd86 clang-format: better pattern for common.h
[ci skip]
2017-01-14 18:48:11 +00:00
Hielke Morsink a36b200dda Add include categories to .clang-format
This adds 3 rules that clang-format uses when ordering include files:
 - common.h is assigned priority -1
 - Incudes using <> is given priority 1
 - Includes using "" is given priority 2

It also disables putting the "main" file first (the .h/.hpp with the
same name as the .c/.cpp"

#5074
[ci skip]
2017-01-14 18:30:48 +00:00
Michał Janiszewski 46fbac9564 Add .clang-format style file (#4836)
[ci skip]
2016-11-30 19:01:02 +01:00