SuccessChanges

Summary

  1. clang-x86-ninja-win10 - replacing backslashes (details)
Commit bc6f110d29f33b97e734d3d9a15ec7dbc63733e3 by kuhnel
clang-x86-ninja-win10 - replacing backslashes

in buildbot.tac with forward slashes to address re-configuration
cycles in cmake
The file was modifiedbuildbot/google/docker/buildbot-windows10-vs2019/VERSION (diff)
The file was modifiedbuildbot/google/terraform/main.tf (diff)
The file was modifiedbuildbot/google/docker/buildbot-windows10-vs2019/run.ps1 (diff)

Summary

  1. [clangd] Link libclangdSupport into clangd-index-server (details)
  2. [clang] Traverse init-captures while indexing (details)
  3. [CMake] Use find_dependency in LLVMConfig.cmake (details)
  4. [CMake] Use append for CMAKE_REQUIRED_* variables (details)
  5. [SyntaxTree][Nit] Take `ArrayRef` instead of `std::vector` as argument for `createTree` (details)
  6. [SyntaxTree] Test `findFirstLeaf` and `findLastLeaf` (details)
  7. [gn build] Port af582c9b0f3 (details)
  8. Revert "[CMake] Use find_dependency in LLVMConfig.cmake" (details)
  9. Reapply: [clang-cl] Always interpret the LIB env var as separated with semicolons (details)
  10. [AArch64] Fix return type of Neon scalar comparison intrinsics (details)
Commit f18f8f34d3d82b0842daf184c71e8240620d925c by zeratul976
[clangd] Link libclangdSupport into clangd-index-server

Fixes https://github.com/clangd/clangd/issues/534

Differential Revision: https://reviews.llvm.org/D87979
The file was modifiedclang-tools-extra/clangd/index/remote/server/CMakeLists.txt
Commit aa3c7638ba1648e020cf65a424389e093f2b3a1a by zeratul976
[clang] Traverse init-captures while indexing

Fixes https://github.com/clangd/clangd/issues/496

Differential Revision: https://reviews.llvm.org/D87257
The file was modifiedclang/lib/Index/IndexBody.cpp
The file was modifiedclang-tools-extra/clangd/unittests/XRefsTests.cpp
The file was modifiedclang/test/Index/cxx14-lambdas.cpp
Commit 247c4fc50720ed48db2464bbe59839eedbe16794 by phosek
[CMake] Use find_dependency in LLVMConfig.cmake

This prefered over find_package as find_dependency forwards the correct
parameters for QUIET and REQUIRED to find_package.

Differential Revision: https://reviews.llvm.org/D88069
The file was modifiedllvm/cmake/modules/LLVMConfig.cmake.in
Commit bc3615f50e585232f34edcf6faf8cbd3e6dece1a by phosek
[CMake] Use append for CMAKE_REQUIRED_* variables

This ensures that required includes and libraries such as -lm that
were added earlier aren't overwritten.

Differential Revision: https://reviews.llvm.org/D88068
The file was modifiedllvm/cmake/config-ix.cmake
Commit 1dc7836aed134b4543bad6aa54f15cc0e51a627f by ecaldas
[SyntaxTree][Nit] Take `ArrayRef` instead of `std::vector` as argument for `createTree`

I also assured that there are no other functions unnecessarily using std::vector as argument.

Differential Revision: https://reviews.llvm.org/D88024
The file was modifiedclang/include/clang/Tooling/Syntax/BuildTree.h
The file was modifiedclang/lib/Tooling/Syntax/Synthesis.cpp
Commit af582c9b0f3a09b6a1b5101fd30dcbcef5c188b0 by ecaldas
[SyntaxTree] Test `findFirstLeaf` and `findLastLeaf`

* Introduce `TreeTest.cpp` to unit test `Tree.h`
* Add `generateAllTreesWithShape` to generating test cases
* Add tests for `findFirstLeaf` and `findLastLeaf`
* Fix implementations of `findFirstLeaf` and `findLastLeaf` that had
been broken when empty `Tree` were present.

Differential Revision: https://reviews.llvm.org/D87779
The file was modifiedclang/unittests/Tooling/Syntax/CMakeLists.txt
The file was modifiedclang/lib/Tooling/Syntax/Tree.cpp
The file was addedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 9114d6cbda6042000e12b9d799868c98e8fae385 by llvmgnsyncbot
[gn build] Port af582c9b0f3
The file was modifiedllvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
Commit 6fa38de071f0993be81ea090c4a307b1d146c179 by phosek
Revert "[CMake] Use find_dependency in LLVMConfig.cmake"

This reverts commit 247c4fc50720ed48db2464bbe59839eedbe16794 as it
broke the runtime build.
The file was modifiedllvm/cmake/modules/LLVMConfig.cmake.in
Commit 3fec6ddc276a595e4409f04dabdd50c84f5f2a2d by martin
Reapply: [clang-cl] Always interpret the LIB env var as separated with semicolons

When cross compiling with clang-cl, clang splits the INCLUDE env
variable around semicolons (clang/lib/Driver/ToolChains/MSVC.cpp,
MSVCToolChain::AddClangSystemIncludeArgs) and lld splits the
LIB variable similarly (lld/COFF/Driver.cpp,
LinkerDriver::addLibSearchPaths). Therefore, the consensus for
cross compilation with clang-cl and lld-link seems to be to use
semicolons, despite path lists normally being separated by colons
on unix and EnvPathSeparator being set to that.

Therefore, handle the LIB variable similarly in Clang, when
handling lib file arguments when driving linking via Clang.

This fixes commands like "clang-cl test.c -Fetest.exe kernel32.lib" in
a cross compilation setting. Normally, most users call (lld-)link
directly, but meson happens to use this command syntax for
has_function() tests.

Reapply: Change Program.h to define procid_t as ::pid_t. When included
in lldb/unittests/Host/NativeProcessProtocolTest.cpp, it is included
after an lldb namespace containing an lldb::pid_t typedef, followed
later by a "using namespace lldb;". Previously, Program.h wasn't
included in this translation unit, but now it ends up included
transitively from Process.h.

Differential Revision: https://reviews.llvm.org/D88002
The file was modifiedllvm/include/llvm/Support/Process.h
The file was modifiedclang/test/Driver/cl-inputs.c
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedllvm/lib/Support/Process.cpp
The file was modifiedllvm/include/llvm/Support/Program.h
Commit f93514545cd91b132fe987618488b8c1e5388fb0 by david.spickett
[AArch64] Fix return type of Neon scalar comparison intrinsics

The following should have unsigned return types
but were signed:
vceqd_s64 vceqzd_s64 vcged_s64 vcgezd_s64
vcgtd_s64 vcgtzd_s64 vcled_s64 vclezd_s64
vcltd_s64 vcltzd_s64 vtstd_s64

See https://developer.arm.com/documentation/ihi0073/latest

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D88009
The file was modifiedclang/test/CodeGen/aarch64-neon-intrinsics.c
The file was modifiedclang/include/clang/Basic/arm_neon.td