Only function declarations should have the default arguments.
This patch makes sure we don't propogate those arguments to out-of-line
definitions.
Paths
| Differential D71187
[clangd] Delete default arguments while moving functions out-of-line ClosedPublic Authored by kadircet on Dec 9 2019, 1:41 AM.
Details Summary Only function declarations should have the default arguments. This patch makes sure we don't propogate those arguments to out-of-line
Diff Detail
Event TimelineComment Actions Build result: pass - 60555 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt
Comment Actions Build result: pass - 60555 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt
Comment Actions Build result: pass - 60555 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt kadircet added a child revision: D71188: [clangd] Delete ctor initializers while moving functions out-of-line.Dec 9 2019, 5:47 AM This revision is now accepted and ready to land.Dec 9 2019, 7:16 AM Closed by commit rG898d7a0695c5: [clangd] Delete default arguments while moving functions out-of-line (authored by kadircet). · Explain WhyDec 9 2019, 9:56 AM This revision was automatically updated to reflect the committed changes. Comment Actions Build result: pass - 60555 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt
Revision Contents
Diff 232790 clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
|
just curious what's the getDefaultArgRange for case like void foo(int a = 5), is it just [[5]]?