SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [clangd] Define out-of-line availability checks (details)
  2. [clangd] Define out-of-line initial apply logic (details)
  3. [clangd] Define out-of-line qualify return value (details)
  4. [clangd] Define out-of-line qualify function name (details)
  5. [lldb][NFC] Migrate to raw_ostream in ArchSpec::DumpTriple (details)
  6. Revert "Enable `-funwind-tables` flag when building libunwind" (details)
Commit 9f251eece46675ba0095baddebe90512abde6337 by kadircet
[clangd] Define out-of-line availability checks
Summary: Initial availability checks for performing define out-of-line
code action, which is a refactoring that will help users move
function/method definitions from headers to implementation files.
Proposed implementation only checks whether we have an interesting
selection, namely function name or full function definition/body.
Reviewers: hokein
Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman,
usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69266
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/unittests/TweakTesting.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTesting.h
The file was addedclang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
Commit ce2189202245953cbbfff100e6e5e9c1acb664ad by kadircet
[clangd] Define out-of-line initial apply logic
Summary: Initial implementation for apply logic, replaces function body
with a semicolon in source location and copies the full function
definition into target location.
Will handle qualification of return type and function name in following
patches to keep the changes small.
Reviewers: hokein
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69298
The file was modifiedclang-tools-extra/clangd/unittests/TweakTesting.cpp
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
Commit e4609ec0e8cfddf697ffc3eccf9bef6a830bc6f0 by kadircet
[clangd] Define out-of-line qualify return value
Summary: Return type might need qualification if insertion context
doesn't have the same decls visible as the source context.
This patch adds qualification for return value to cover such cases.
Reviewers: hokein
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70535
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
Commit ddcce0f3d665b66a8232a80ca918d349c8485fe4 by kadircet
[clangd] Define out-of-line qualify function name
Summary: When moving function definitions to a different context, the
function name might need a different spelling, for example in the header
it might be:
``` namespace a {
void foo() {}
}
```
And we might want to move it into a context which doesn't have
`namespace a` as a parent, then we must re-spell the function name, i.e:
``` void a::foo() {}
```
This patch implements a version of this which ignores using namespace
declarations in the source file.
Reviewers: hokein
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70656
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
Commit 2f1e7b3d01e176e912477d52847c19d3847a43a0 by Raphael Isemann
[lldb][NFC] Migrate to raw_ostream in ArchSpec::DumpTriple
Reviewers: labath, davide
Reviewed By: davide
Subscribers: clayborg, JDevlieghere, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D70979
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp
The file was modifiedlldb/include/lldb/Core/ModuleSpec.h
The file was modifiedlldb/source/Target/TargetList.cpp
The file was modifiedlldb/source/Utility/ProcessInfo.cpp
The file was modifiedlldb/include/lldb/Utility/ArchSpec.h
The file was modifiedlldb/source/Target/Platform.cpp
The file was modifiedlldb/source/Utility/ArchSpec.cpp
Commit 938c70b86c7d2165f8c28d5700e9c1ac1263307e by martin
Revert "Enable `-funwind-tables` flag when building libunwind"
This reverts commit b3fdf33ba6aa7ef80621696f74aaf2f6f8e1d1de.
This change broke building libunwind for Windows/MinGW, and broke on
aspect of the CMake tests in libunwind in general.
After set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY), CMake skips the
linking step in tests, but cmake/config-ix.cmake also does a few checks
for functions in libraries (looking for whether
-lc provides fopen and whether -ldl provides dladdr).
As CMake only tests building a static library, these tests incorrectly
succeed and CMake concludes "Looking for fopen in c - found" and
"Looking for dladdr in dl - found", while building then fails at the end
with errors about unable to find -lc and -ldl.
The file was modifiedlibunwind/test/libunwind/test/config.py
The file was modifiedlibunwind/cmake/config-ix.cmake
The file was modifiedlibunwind/CMakeLists.txt
The file was modifiedlibunwind/test/signal_frame.pass.cpp
The file was modifiedlibunwind/test/CMakeLists.txt
The file was modifiedlibunwind/test/lit.site.cfg.in