|
clang 24.0.0git
|
Includes sorting options. More...
#include "clang/Format/Format.h"
Public Member Functions | |
| bool | operator== (const SortIncludesOptions &R) const |
| bool | operator!= (const SortIncludesOptions &R) const |
Public Attributes | |
| bool | Enabled |
| If true, includes are sorted based on the other suboptions below. | |
| bool | IgnoreCase |
| Whether or not includes are sorted in a case-insensitive fashion. | |
| bool | IgnoreExtension |
| When sorting includes in each block, only take file extensions into account if two includes compare equal otherwise. | |
| bool | Natural |
| Whether or not includes are sorted by natural ordering i.e., whether embedded runs of digits are compared as numbers rather than sequences of characters. | |
| bool | FilesBeforeFolders |
| When true, sort includes so that files in a directory appear before subdirectories at each level, recursively. | |
|
inline |
Definition at line 5148 of file Format.h.
References Enabled, FilesBeforeFolders, IgnoreCase, IgnoreExtension, and Natural.
|
inline |
Definition at line 5143 of file Format.h.
References FilesBeforeFolders.
| bool clang::format::FormatStyle::SortIncludesOptions::Enabled |
If true, includes are sorted based on the other suboptions below.
(Never is deprecated by Enabled: false.)
Definition at line 5090 of file Format.h.
Referenced by operator!=().
| bool clang::format::FormatStyle::SortIncludesOptions::FilesBeforeFolders |
When true, sort includes so that files in a directory appear before subdirectories at each level, recursively.
Within a level, files and folders are each sorted alphabetically. When false (default), sorts includes purely alphabetically.
This option is a secondary sort key within each Priority group defined by IncludeCategories. Includes in different Priority groups are still separated by that primary ordering.
Definition at line 5142 of file Format.h.
Referenced by operator!=(), and operator==().
| bool clang::format::FormatStyle::SortIncludesOptions::IgnoreCase |
Whether or not includes are sorted in a case-insensitive fashion.
(CaseSensitive and CaseInsensitive are deprecated by IgnoreCase: false and IgnoreCase: true, respectively.)
Definition at line 5102 of file Format.h.
Referenced by operator!=().
| bool clang::format::FormatStyle::SortIncludesOptions::IgnoreExtension |
When sorting includes in each block, only take file extensions into account if two includes compare equal otherwise.
Definition at line 5111 of file Format.h.
Referenced by operator!=().
| bool clang::format::FormatStyle::SortIncludesOptions::Natural |
Whether or not includes are sorted by natural ordering i.e., whether embedded runs of digits are compared as numbers rather than sequences of characters.
Definition at line 5120 of file Format.h.
Referenced by operator!=().