NVIDIA / NVIDIA/cccl

Specify qualifier order in `.clang-format`

Open
#1,748 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

Since I saw @miscco suggesting to contributors his preferred ordering of `static` and `constexpr`, I thought we could just automate this using clang-format, which has a corresponding style option [QualifierOrder](https://clang.llvm.org/docs/ClangFormatStyleOptions.html#qualifierorder). This option is not set in our `.clang-format` and also not inherited from the LLVM style.

_Originally posted by @bernhardmgruber in https://github.com/NVIDIA/cccl/pull/1233#discussion_r1603786283_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.