- Added checks for broken control flow
- Added unittests
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp | ||
---|---|---|
433 ↗ | (On Diff #217881) | rather than writing this twice, take an int Increment parameter? |
480 ↗ | (On Diff #217881) | (NumberOfLoops > 0 || NumberOfSwitch = 0) |
497 ↗ | (On Diff #217881) | NestedLoops would be clearer I think |
clang-tools-extra/clangd/unittests/TweakTests.cpp | ||
523 ↗ | (On Diff #217881) | please add these to a new test case e.g. TEST_F(ExtractFunctionTest, ControlFlow) to avoid each getting too long |