Closed
Description
The following snippet
class LongClassNameToShowTheIssue {
public:
class AndAnotherLongClassNameToShowTheIssue {
AndAnotherLongClassNameToShowTheIssue();
~AndAnotherLongClassNameToShowTheIssue();
}
};
LongClassNameToShowTheIssue::AndAnotherLongClassNameToShowTheIssue::
AndAnotherLongClassNameToShowTheIssue() {}
LongClassNameToShowTheIssue::AndAnotherLongClassNameToShowTheIssue::
~AndAnotherLongClassNameToShowTheIssue() {}
formattted with clang-format-17 using the following configuration
Language: Cpp
is formatted in the following way using clang-format-18
class LongClassNameToShowTheIssue {
public:
class AndAnotherLongClassNameToShowTheIssue {
AndAnotherLongClassNameToShowTheIssue();
~AndAnotherLongClassNameToShowTheIssue();
}
};
LongClassNameToShowTheIssue::AndAnotherLongClassNameToShowTheIssue::
AndAnotherLongClassNameToShowTheIssue() {}
LongClassNameToShowTheIssue::AndAnotherLongClassNameToShowTheIssue::~
AndAnotherLongClassNameToShowTheIssue() {}
as you can see the DTOR ~ is detached from class name