[PATCH] D122698: [clangd] Add support to extract method for ExtractFunction Tweak

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 30 17:42:49 PDT 2022


sammccall added a comment.

Thanks! I'll look at the changes in the morning, just wanted to mention one thing

In D122698#3417946 <https://reviews.llvm.org/D122698#3417946>, @FabioRS wrote:

> 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"}}

It's a c++20 feature, so you'll need to add something like `ExtraArgs.push_back("-std=c++20");`.

Though if there's no real difference between handling constexpr vs consteval, up to you whether it's worth a separate test.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122698/new/

https://reviews.llvm.org/D122698



More information about the cfe-commits mailing list