Skip to content

srefactor does not work in files that contain concatenated namespaces #57

@st-j

Description

@st-j

I am using srefactor package version 20230504.617 from MELPA.

In this code,

namespace foo {
namespace bar {

class Baz {};

}  // namespace bar
}  // namespace foo

when I put point on "Baz" and call srefactor-refactor-at-point, the srefactor UI menu opens as expected, offering the "Move" and "Generate Function Implementation" refactorings.

Now, when I concatenate the namespaces (or let clang-tidy apply the corresponding code action), i.e., change the code to the following,

namespace foo::bar {

class Baz {};

}  // namespace foo::bar

then calling srefactor-refactor-at-point with point on "Baz" results in a message "No available action" in the modeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions