llvm-project
4247175d - [nfc]For InstrProfData.inc, clang-format functions and opt-out of formatting on the rest (#82057)

Commit
1 year ago
[nfc]For InstrProfData.inc, clang-format functions and opt-out of formatting on the rest (#82057) Without this, each time `InstrProfData.inc` is modified (like in https://github.com/llvm/llvm-project/pull/81691), pre-commit CI clang-format aggressively formats many lines in an unreadable way. Pull request with red pre-commit checks are usually frowned upon. * Use `// clang-format:<reason>` instead of `/* clang-format */`. The former [allows](https://github.com/llvm/llvm-project/blob/563ef306017a47d387f1c36dd562b172c1ad0626/clang/lib/Format/Format.cpp#L4108-L4113) specifying a reason but the latter is [not](https://github.com/llvm/llvm-project/blob/563ef306017a47d387f1c36dd562b172c1ad0626/clang/lib/Format/Format.cpp#L4105-L4106). - Filed https://github.com/llvm/llvm-project/issues/82426 to track the issue in clang-format.
Parents
Loading