Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mmoderau opened this issue Jan 31, 2020 · 1 comment
Closed

Comments

@mmoderau
Copy link

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>
@mkurdej
Copy link
Member

mkurdej commented Jan 31, 2022

The option SortIncludes gained CaseInsensitive some time ago (in v13). You might give it a try.
Cf. a8105b3

@mkurdej mkurdej closed this as completed Jan 31, 2022
brson pushed a commit to brson/llvm-project that referenced this issue Mar 12, 2022
* [InstCombine] Add tests for "eq of parts" with logical op (NFC)

We currently only handle this with a bitwise and/or instruction,
but not a logical.

(cherry picked from commit be4b836)

* [InstCombine] Perform "eq of parts" fold with logical ops

The pattern matched here is too complex for the general logical
and/or to bitwise and/or conversion to trigger. However, the
fold is poison-safe, so match it with a select root as well:

https://alive2.llvm.org/ce/z/vNzzSg
https://alive2.llvm.org/ce/z/Beyumt
(cherry picked from commit fafe5a6)
mjklemm pushed a commit to mjklemm/llvm-project that referenced this issue Jul 25, 2024
…lvm#113)

Lifts a restriction we had so far for `do concurrent` -> OpenMP mapping
by supporting non-const bounds in loop headers.
RevySR pushed a commit to revyos/llvm-project that referenced this issue Jul 27, 2024
…fclass/vfmerge/vfmv.v` (llvm#113)

* [Clang][XTHeadVector] Implement 14.12-14.15 `vmf{eq,ne,lt,le,gt,ge}/vfclass/vfmerge/vfmv.v`

* [Clang][XTHeadVector] Test 14.12-14.15 `vmf{eq,ne,lt,le,gt,ge}/vfclass/vfmerge/vfmv.v`

* [Clang][XTHeadVector] Implement wrappers 14.12-14.15 `vmf{eq,ne,lt,le,gt,ge}/vfclass/vfmerge/vfmv.v`
kovdan01 added a commit that referenced this issue Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants