[ENHANCEMENT]: normalize headers presentation
To normalize headers presentation across all the files, I propose to add new directives (IncludeBlocks
and IncludeCategories
) in the file .clang-format
.
The idea is to ensure various headers are regrouped by categories:
- cmConfigure.h as first header
- standard language headers
- cm replacement ones
- cmsys ones
- all other headers
For example:
#include "cmConfigure.h"
#include <utility>
#include <vector>
#include <cm/memory>
#include <cm/string_view>
#include "cmsys/FileCopier.h"
#include "cmsys/RegularExpression.hxx"
#include "cmMakefile.h"
#include "cmTarget.h"