FailedChanges

Summary

  1. [CMake] Use find_library for ncurses (details)
  2. Remove -Wcompound-token-split-by-space from -Wall. (details)
  3. Fix -Wcompound-token-split to give the same warnings under -E (details)
Commit 3c7bfbd6831b2144229734892182d403e46d7baf by phosek
[CMake] Use find_library for ncurses

Currently it is hard to avoid having LLVM link to the system install of
ncurses, since it uses check_library_exists to find e.g. libtinfo and
not find_library or find_package.

With this change the ncurses lib is found with find_library, which also
considers CMAKE_PREFIX_PATH. This solves an issue for the spack package
manager, where we want to use the zlib installed by spack, and spack
provides the CMAKE_PREFIX_PATH for it.

This is a similar change as https://reviews.llvm.org/D79219, which just
landed in master.

Patch By: haampie

Differential Revision: https://reviews.llvm.org/D85820
The file was modifiedllvm/cmake/config-ix.cmake
The file was modifiedcompiler-rt/lib/xray/tests/CMakeLists.txt
The file was modifiedllvm/include/llvm/Config/config.h.cmake
The file was modifiedllvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
The file was modifiedlldb/source/Core/CMakeLists.txt
The file was modifiedllvm/CMakeLists.txt
The file was modifiedllvm/lib/Support/CMakeLists.txt
The file was modifiedllvm/lib/Support/Unix/Process.inc
The file was modifiedcompiler-rt/cmake/config-ix.cmake
Commit 0da84535b1e328188efbc1bb697dc7276f9e7d27 by richard
Remove -Wcompound-token-split-by-space from -Wall.

Use of a linebreak between the `(` and `{` in a GNU statement-expression
appears to be too common to include this warning in -Wall -- this occurs
in some Linux kernel headers, for example.
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedclang/test/Misc/warning-wall.c
The file was modifiedclang/test/Parser/compound-token-split.cpp
Commit 113861b444610aebd1c05760a3e0ee6284f42211 by richard
Fix -Wcompound-token-split to give the same warnings under -E
-frewrite-includes.

Remove the special-case (and highly implausible) diagnostic for a
compound token that crosses a file boundary, and instead model that case
the same as a compound token separated by whitespace, so that file
transitions and presumed file transitions behave the same way.
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td
The file was modifiedclang/lib/Parse/Parser.cpp
The file was modifiedclang/test/Parser/compound-token-split.cpp