[PATCH] D122698: [clangd] Add support to extract method for ExtractFunction Tweak
Fabio R. Sluzala via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 30 16:58:13 PDT 2022
FabioRS updated this revision to Diff 419290.
FabioRS marked 14 inline comments as done.
FabioRS added a comment.
I am not sure about the LangOptions object, the NestedNameSpecifier needs it to correctly print the nested classes-name and not sure about the getEnclosing() too.
I can not run the test the consteval, so it is not in the diff.
TestTU failed to build (suppress with /*error-ok*/):
[1:4-1:13] unknown type name 'consteval'; did you mean 'constexpr'?, fixes: {change 'consteval' to 'constexpr' {1:4-1:13 => "constexpr"}}
For code:
consteval void SomeClass::f() const {
int x;
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122698/new/
https://reviews.llvm.org/D122698
Files:
clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
clang-tools-extra/clangd/unittests/tweaks/ExtractFunctionTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122698.419290.patch
Type: text/x-patch
Size: 14641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220330/c47a0eaa/attachment.bin>
More information about the cfe-commits
mailing list