aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorFabio Rossini Sluzala <fabio3rs@gmail.com>2022-04-05 19:08:34 +0200
committerSam McCall <sam.mccall@gmail.com>2022-04-05 19:49:17 +0200
commita0e4ba4b4607267d96c3ab8bc1c38f5a09830692 (patch)
treeae6dd9a23448bd056fbed8758022cb4ac7096743 /clang/lib/Basic/FileManager.cpp
parentc082ca16f123144072afffaa21742238021eae9c (diff)
downloadllvm-a0e4ba4b4607267d96c3ab8bc1c38f5a09830692.zip
llvm-a0e4ba4b4607267d96c3ab8bc1c38f5a09830692.tar.gz
llvm-a0e4ba4b4607267d96c3ab8bc1c38f5a09830692.tar.bz2
[clangd] Add support to extract method for ExtractFunction Tweak
I miss more automatically refactoring functions when working with already running code, so I am making some small addition that I hope help more people. This works by checking if the function is a method (CXXMethodDecl), then collecting information about the function that the code is being extracted, looking for the declaration if it is out-of-line, creating the declaration if it is necessary and putting the extracted function as a class-method. This is my first code review request, sorry if I did something wrong. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D122698
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions