[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 13:16:28 PDT 2023
================
@@ -16339,7 +16345,7 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
verifyFormat("int f();", SpaceFuncDef);
verifyFormat("void f (int a, T b) {}", SpaceFuncDef);
- verifyFormat("A::A () : a(1) {}", SpaceFuncDef);
+ verifyFormat("A::A() : a(1) {}", SpaceFuncDef);
----------------
owenca wrote:
The space was inserted in 086305120887 because ctors/dtors were annotated as `FunctionDeclarationName`. Now that we annotate them as `CtorDtorDeclName`, they are no longer functions.
https://github.com/llvm/llvm-project/pull/67955
More information about the cfe-commits
mailing list