Skip to content

Formatting during 'Extract to function' doesn't work on the header declaration in many cases #11729

Closed

Description

Repro is

#include "test.h"
// comment
// comment

int foo::func()
{
    return 0;
}
class foo
{
    [[nodiscard]] int func();
};
image

It doesn't repro is the [[nodiscard]] is removed. I'm not sure how widespread the issue is.

Activity

  1. sean-mcmanus commented on Dec 23, 2023

    @sean-mcmanus
    ContributorAuthor

    It repros "in general" and isn't related to the [[nodiscard]].

  2. changed the title [-]Formatting during 'Extract to function' doesn't work on the header declaration if a [[nodiscard]] method is nearby[/-] [+]Formatting during 'Extract to function' doesn't work on the header declaration in many cases[/+] on Dec 23, 2023
  3. locked and limited conversation to collaborators on Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions