Skip to content

Creation declaration/definition that targets a new file (or an empty one) has 2 extra newlines if clang-format isn't used #10164

Description

@sean-mcmanus

In test.h, do Create Declaration/Definition on

void func();

with an empty test.cpp.

Bug: The result has 2 extra newlines:

#include "test.h"



void func()
{
}

It's possible the root cause issue might result in other bugs, not sure though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions