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

rename symbol when use clang-tidy fix feature #741

Closed
findNextStep opened this issue Apr 12, 2021 · 2 comments
Closed

rename symbol when use clang-tidy fix feature #741

findNextStep opened this issue Apr 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@findNextStep
Copy link

for example we have two file in project
test.h

void test_func();

test.cpp

#include <cstdio>
void test_func(){ printf("test\r\n");}

and the test_func is Invalid case style for function and we click quick fix only funcition name in test.h will be change, but it should change both in test.cpp and test.h

@findNextStep findNextStep added the enhancement New feature or request label Apr 12, 2021
@njames93
Copy link

The current integration of clang-tidy and clangd doesn't really allow for this. The best solution for this would annoyingly involve creating a new version of the check that's based on clangds internal renaming mechanisms. Though it's still not a perfect solution

@HighCommander4
Copy link

I'm going to forward-dupe this to #1589 which contains more detailed discussion of this issue (and there is work towards resolving it in llvm/llvm-project#78454).

@HighCommander4 HighCommander4 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants