[OpenMP] "UnFix" layering problem with FrontendOpenMP

This reverts commit 97aa593a83 as it
causes problems (PR45453) https://reviews.llvm.org/D77574#1966321.

This additionally adds an explicit reference to FrontendOpenMP to
clang-tidy where ASTMatchers is used.

This is hopefully just a temporary solution. The dependence on
`FrontendOpenMP` from `ASTMatchers` should be handled by CMake
implicitly, not us explicitly.

Reviewed By: aheejin

Differential Revision: https://reviews.llvm.org/D77666
This commit is contained in:
Johannes Doerfert 2020-04-07 11:26:40 -05:00
parent be99c61588
commit f9d558c871
53 changed files with 127 additions and 31 deletions

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
add_clang_library(clangChangeNamespace

View File

@ -1,6 +1,7 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
support
BitstreamReader
FrontendOpenMP
)
add_clang_library(clangDoc

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
Support
FrontendOpenMP
)
add_clang_library(findAllSymbols

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangMove

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
lineeditor
support
FrontendOpenMP
)
add_clang_library(clangQuery

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangTidyAbseilModule
AbseilTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangTidyAndroidModule
AndroidTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangTidyBoostModule
BoostTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangTidyBugproneModule
ArgumentCommentCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
)
add_clang_library(clangTidyCERTModule
CERTTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyCppCoreGuidelinesModule
AvoidGotoCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyDarwinModule
AvoidSpinlockCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyFuchsiaModule
DefaultArgumentsCallsCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyGoogleModule
AvoidCStyleCastsCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyHICPPModule
ExceptionBaseclassCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyLinuxKernelModule
LinuxKernelTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyLLVMModule
HeaderGuardCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyLLVMLibcModule
ImplementationInNamespaceCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyMiscModule
DefinitionsInHeadersCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyModernizeModule
AvoidBindCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyMPIModule
BufferDerefCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyObjCModule
AvoidNSErrorInitCheck.cpp

View File

@ -1,5 +1,7 @@
set(LLVM_LINK_COMPONENTS
Support)
FrontendOpenMP
Support
)
add_clang_library(clangTidyOpenMPModule
ExceptionEscapeCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyPerformanceModule
FasterStringFindCheck.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyPortabilityModule
PortabilityTidyModule.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyReadabilityModule
AvoidConstParamsInDecls.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyUtils
ASTUtils.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
add_clang_library(clangTidyZirconModule
TemporaryObjectsCheck.cpp

View File

@ -22,6 +22,7 @@ configure_file(
set(LLVM_LINK_COMPONENTS
Support
AllTargetsInfos
FrontendOpenMP
)
if(CLANG_BUILT_STANDALONE)

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
support
AllTargetsInfos
FrontendOpenMP
)
get_filename_component(CLANGD_SOURCE_DIR

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
get_filename_component(CHANGE_NAMESPACE_SOURCE_DIR

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
support
BitstreamReader
FrontendOpenMP
)
get_filename_component(CLANG_DOC_SOURCE_DIR

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
get_filename_component(INCLUDE_FIXER_SOURCE_DIR

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
get_filename_component(INCLUDE_FIXER_SOURCE_DIR

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
include_directories(

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
support
FrontendOpenMP
Support
)
get_filename_component(CLANG_LINT_SOURCE_DIR

View File

@ -1,6 +1,7 @@
add_subdirectory(Dynamic)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)
@ -14,5 +15,3 @@ add_clang_library(clangASTMatchers
clangBasic
clangLex
)
target_link_libraries(clangASTMatchers PUBLIC LLVMFrontendOpenMP)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
Option
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
)

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
FrontendOpenMP
Support
)