llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.12k stars 12.01k forks source link

[clang-format] Add an option that dictates how alternative-token operators are spelt #58115

Open cjdb opened 2 years ago

cjdb commented 2 years ago

Some C++ programmers use alternative tokens instead of symbol tokens. We should have a way to ensure that the tokens can be checked.

LogicalOperatorSpelling: Symbol|Words|AsIs|Custom
  LogicalAndSpelling: Symbol|Word|AsIs
  LogicalOrSpelling: Symbol|Word|AsIs
  LogicalNotSpelling: Symbol|Word|AsIs

There should also be equivalents for bitwise operators and compound operators.

llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-format