llvm-project/clang-tools-extra/include-fixer
Eric Fiselier 87c87f4c30 [CMake] Fix pthread handling for out-of-tree builds
LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects
to correctly link the threading library when needed. Unfortunately
`PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed
and therefore can't be used when configuring out-of-tree builds. This causes
such builds to fail since `pthread` isn't being correctly linked.

This patch attempts to fix that problem by renaming and exporting
`LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`. I renamed `PTHREAD_LIB`
because It seemed likely to cause collisions with downstream users of
`LLVMConfig.cmake`.

llvm-svn: 294690
2017-02-10 01:59:20 +00:00
..
find-all-symbols [find-all-symbols] Index partial template specializations. 2017-01-11 11:47:44 +00:00
plugin [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
tool Update tools to use new getStyle API 2017-01-17 00:13:32 +00:00
CMakeLists.txt [include-fixer] Refactor include fixer to be usable as a plugin 2016-11-17 15:16:05 +00:00
InMemorySymbolIndex.cpp [include-fixer] Simplify unittest code. 2016-05-13 15:17:17 +00:00
InMemorySymbolIndex.h [include-fixer] Simplify unittest code. 2016-05-13 15:17:17 +00:00
IncludeFixer.cpp [include-fixer] Don't return a correction if the header insertion failed. 2017-01-18 16:22:58 +00:00
IncludeFixer.h Reapply "Fix for shared_ptrification in Clang" 2017-01-06 19:49:09 +00:00
IncludeFixerContext.cpp [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
IncludeFixerContext.h [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
SymbolIndex.h [include-fixer] Rename XrefsDB to SymbolIndex. 2016-05-13 09:27:54 +00:00
SymbolIndexManager.cpp Improve include fixer's ranking by taking the paths into account. 2017-01-11 10:32:47 +00:00
SymbolIndexManager.h Fix the build of the include-fixer plugin for some shared cmake builds and MSVC. 2017-01-13 10:14:07 +00:00
YamlSymbolIndex.cpp [include-fixer] Rename XrefsDB to SymbolIndex. 2016-05-13 09:27:54 +00:00
YamlSymbolIndex.h [include-fixer] Rename XrefsDB to SymbolIndex. 2016-05-13 09:27:54 +00:00