llvm / llvm/llvm-project

[clang-format] NumericLiteralCase.HexDigit modifies #include statements, macros that are not hex literals

Open
#200,731 1 comment 0 reactions 0 assignees View on GitHub
clang-format confirmed
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```console
$ clang-format --version
clang-format version 22.1.5
$ cat .clang-format
---
NumericLiteralCase:
HexDigit: Upper
$ cat foo.c
#include

#define FOO(x) foo##x

FOO(16header)
$ clang-format foo.c
#include

#define FOO(x) foo##x

FOO(16Header)
```

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.