<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142512>142512</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] const method quilifier is split on own line
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
EugeneZelenko
</td>
</tr>
</table>
<pre>
Code snippet:
```
#include <string>
class Test
{
public:
void some_method_name(const std::string& p1, const std::string& p2, const std::string& p3) const;
};
void Test::some_method_name(const std::string& p1, const std::string& p2, const std::string& p3) const
{
}
```
Expected output:
```
#include <string>
class Test
{
public:
void some_method_name(
const std::string& p1,
const std::string& p2,
const std::string& p3) const;
};
void Test::some_method_name(
const std::string& p1,
const std::string& p2,
const std::string& p3) const
{
}
```
Configuration:
```
BasedOnStyle: LLVM
BreakBeforeBraces: Allman
ColumnLimit: 100
IndentPPDirectives: AfterHash
IndentWidth: 4
LineEnding: LF
UseTab: Never
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: AcrossComments
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveMacros: AcrossEmptyLines
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
AlignEscapedNewlines: LeftWithLastLine
AlignOperands: Align
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseExpressionOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
BitFieldColonSpacing: After
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakTemplateDeclarations: Yes
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: true
Macros:
- PyVarObject_HEAD_INIT(x, y)=x, y,
MainIncludeChar: Quote
MaxEmptyLinesToKeep: 1
PackConstructorInitializers: Never
PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Left
SortUsingDeclarations: true
SpaceAfterTemplateKeyword: false
StatementMacros:
- PyObject_HEAD
- Q_OBJECT
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzEV1tv4roW_jXmxWoVHKDlgYdw03CGKczAzOicl8o4K8Gnjp3xpS3712_ZSbi23UiztXeFVMj61u1by18SagzPJcAAdYeoO25RZ7dKDyYuBwn_AwHySbU2Kt0NRioFbCQvS7AoTlAUPr2o_kQJIjGXTLgUMIpHxmoucxRPKiAT1Bi8BmP977shipLSbQRnVSiMMX5WPMVGFfBYgN2q9FHSAhC5Z0oai41NPTRO6sCkh8s2IiP8vpl8bI4R6VdmFA9DVeP6S5SEWkK1lde_UlVDlC_sjOoombyWwCykWDlbun92IrXZ_31Mw1VAci3w9wZWp_jrgq-q9PcHOFIy47nT1HIl3xzfkBpIF3JldwJQnOD5_MeXCjXUQJ-GkCkNQ00ZGG9OhCioDJGFK-ScF9yzgduRDzaTKUi7XI65Bmb5c-2TWdCfqNnuET95arfe1EFRMucSJjINa5Pg-RRFyXcDa7rxPx_gGXRVz5zK3NE8VDkqSxQlCWNgzBeV8oyDXmSZCaqBb3zYRPBchtSLEqTv4KmyJuKF7kzobg_Tmu4W2cpqx6zTVdlzyGwDGClpgDnfUhLErABpq-aYVsaMVFFducQPuZ1yEKlpVn4i6UaAnym22oG_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