| Issue |
91771
|
| Summary |
[clang-format] Unexpected formatting on function parameter
|
| Labels |
|
| Assignees |
|
| Reporter |
LinZhihao-723
|
clang-format version: 18.1
Config file: https://github.com/LinZhihao-723/clp/blob/lint-update/components/core/.clang-format
Formatting output: https://github.com/LinZhihao-723/clp/blob/lint-update/components/core/src/clp/ir/LogEventDeserializer.cpp#L13
Formatted result:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(ReaderInterface& reader
) -> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Expected result:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(
ReaderInterface& reader
) -> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Result from clang-format 17:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(ReaderInterface& reader)
-> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Not sure if this is a bug or missing configuration in .clang-format. Would be appreciated if someone can help take a look :D
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs