Skip to content

[clang-format] qualified names breaks AfterFunctionDefinitionName #98820

Closed
@urnathan

Description

@urnathan

It seems that using a qualified name to define a function causes problems with AfterFunctionDefinitionName: true:

/*
.clang-format contents:
BasedOnStyle: LLVM
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterFunctionDefinitionName: true
*/

// space before (, expected
void fn (int) {}      // void fn (int) {}
// no space before (, unexpected
void sue::fn (int) {} // void sue::fn(int) {}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions