Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract to function has no effect for code in a function in an anonymous namespace #11474

Closed
sean-mcmanus opened this issue Sep 27, 2023 · 0 comments
Assignees
Labels
bug Feature: Extract to function Extract to function (free function or member function) fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service quick fix Visual Studio Inherited from Visual Studio
Milestone

Comments

@sean-mcmanus
Copy link
Collaborator

Use Extract to function on code in a function that is in an anonymous namespace.

namespace
{
    int func()
    {
        return 2+1;
    }
}

Bug: It has no effect (no error is reported). The bug repros with VS too.

@sean-mcmanus sean-mcmanus added bug Language Service insiders Currently only repros with our latest Insiders release. Visual Studio Inherited from Visual Studio Feature: Extract to function Extract to function (free function or member function) labels Sep 27, 2023
@sean-mcmanus sean-mcmanus added this to the 1.18 milestone Sep 27, 2023
@sean-mcmanus sean-mcmanus self-assigned this Sep 27, 2023
@sean-mcmanus sean-mcmanus modified the milestones: 1.18, 1.19 Oct 31, 2023
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Nov 8, 2023
@sean-mcmanus sean-mcmanus modified the milestones: 1.19, 1.18.2 Nov 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Extract to function Extract to function (free function or member function) fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service quick fix Visual Studio Inherited from Visual Studio
Projects
None yet
Development

No branches or pull requests

1 participant