Skip to content

Commit 585dd68

Browse files
committed
Merge from 'master' to 'sycl-web' (#59)
CONFLICT (content): Merge conflict in README.md
2 parents 5d1d2ba + 59dd625 commit 585dd68

File tree

503 files changed

+7116
-7832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+7116
-7832
lines changed

clang-tools-extra/clang-change-namespace/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
2-
support
2+
FrontendOpenMP
3+
Support
34
)
45

56
add_clang_library(clangChangeNamespace

clang-tools-extra/clang-change-namespace/tool/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
22

33
set(LLVM_LINK_COMPONENTS
4+
FrontendOpenMP
45
Support
56
)
67

clang-tools-extra/clang-doc/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
22
support
33
BitstreamReader
4+
FrontendOpenMP
45
)
56

67
add_clang_library(clangDoc

clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
22
Support
3+
FrontendOpenMP
34
)
45

56
add_clang_library(findAllSymbols

clang-tools-extra/clang-move/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
22
support
3+
FrontendOpenMP
34
)
45

56
add_clang_library(clangMove

clang-tools-extra/clang-query/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
22
lineeditor
33
support
4+
FrontendOpenMP
45
)
56

67
add_clang_library(clangQuery

clang-tools-extra/clang-reorder-fields/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
23
support
34
)
45

clang-tools-extra/clang-tidy/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
23
Support
34
)
45

clang-tools-extra/clang-tidy/ClangTidyCheck.h

+41-35
Original file line numberDiff line numberDiff line change
@@ -312,41 +312,6 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
312312
return Default;
313313
}
314314

315-
/// Read a named option from the ``Context`` and parse it as a bool.
316-
///
317-
/// Reads the option with the check-local name \p LocalName from the
318-
/// ``CheckOptions``. If the corresponding key is not present, returns
319-
/// a ``MissingOptionError``. If the corresponding key can't be parsed as
320-
/// a bool, return an ``UnparseableIntegerOptionError``.
321-
template <> llvm::Expected<bool> get<bool>(StringRef LocalName) const;
322-
323-
/// Read a named option from the ``Context`` and parse it as a bool.
324-
///
325-
/// Reads the option with the check-local name \p LocalName from the
326-
/// ``CheckOptions``. If the corresponding key is not present or it can't be
327-
/// parsed as a bool, returns \p Default.
328-
template <> bool get<bool>(StringRef LocalName, bool Default) const;
329-
330-
/// Read a named option from the ``Context`` and parse it as a bool.
331-
///
332-
/// Reads the option with the check-local name \p LocalName from local or
333-
/// global ``CheckOptions``. Gets local option first. If local is not
334-
/// present, falls back to get global option. If global option is not
335-
/// present either, returns a ``MissingOptionError``. If the corresponding
336-
/// key can't be parsed as a bool, return an
337-
/// ``UnparseableIntegerOptionError``.
338-
template <>
339-
llvm::Expected<bool> getLocalOrGlobal<bool>(StringRef LocalName) const;
340-
341-
/// Read a named option from the ``Context`` and parse it as a bool.
342-
///
343-
/// Reads the option with the check-local name \p LocalName from local or
344-
/// global ``CheckOptions``. Gets local option first. If local is not
345-
/// present, falls back to get global option. If global option is not
346-
/// present either or it can't be parsed as a bool, returns \p Default.
347-
template <>
348-
bool getLocalOrGlobal<bool>(StringRef LocalName, bool Default) const;
349-
350315
/// Read a named option from the ``Context`` and parse it as an
351316
/// enum type ``T`` using the \p Mapping provided. If \p IgnoreCase is set,
352317
/// it will search the mapping ignoring the case.
@@ -488,6 +453,47 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
488453
const LangOptions &getLangOpts() const { return Context->getLangOpts(); }
489454
};
490455

456+
/// Read a named option from the ``Context`` and parse it as a bool.
457+
///
458+
/// Reads the option with the check-local name \p LocalName from the
459+
/// ``CheckOptions``. If the corresponding key is not present, returns
460+
/// a ``MissingOptionError``. If the corresponding key can't be parsed as
461+
/// a bool, return an ``UnparseableIntegerOptionError``.
462+
template <>
463+
llvm::Expected<bool>
464+
ClangTidyCheck::OptionsView::get<bool>(StringRef LocalName) const;
465+
466+
/// Read a named option from the ``Context`` and parse it as a bool.
467+
///
468+
/// Reads the option with the check-local name \p LocalName from the
469+
/// ``CheckOptions``. If the corresponding key is not present or it can't be
470+
/// parsed as a bool, returns \p Default.
471+
template <>
472+
bool ClangTidyCheck::OptionsView::get<bool>(StringRef LocalName,
473+
bool Default) const;
474+
475+
/// Read a named option from the ``Context`` and parse it as a bool.
476+
///
477+
/// Reads the option with the check-local name \p LocalName from local or
478+
/// global ``CheckOptions``. Gets local option first. If local is not
479+
/// present, falls back to get global option. If global option is not
480+
/// present either, returns a ``MissingOptionError``. If the corresponding
481+
/// key can't be parsed as a bool, return an
482+
/// ``UnparseableIntegerOptionError``.
483+
template <>
484+
llvm::Expected<bool>
485+
ClangTidyCheck::OptionsView::getLocalOrGlobal<bool>(StringRef LocalName) const;
486+
487+
/// Read a named option from the ``Context`` and parse it as a bool.
488+
///
489+
/// Reads the option with the check-local name \p LocalName from local or
490+
/// global ``CheckOptions``. Gets local option first. If local is not
491+
/// present, falls back to get global option. If global option is not
492+
/// present either or it can't be parsed as a bool, returns \p Default.
493+
template <>
494+
bool ClangTidyCheck::OptionsView::getLocalOrGlobal<bool>(StringRef LocalName,
495+
bool Default) const;
496+
491497
} // namespace tidy
492498
} // namespace clang
493499

clang-tools-extra/clang-tidy/abseil/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
support
3+
FrontendOpenMP
4+
)
25

36
add_clang_library(clangTidyAbseilModule
47
AbseilTidyModule.cpp

clang-tools-extra/clang-tidy/android/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
support
3+
FrontendOpenMP
4+
)
25

36
add_clang_library(clangTidyAndroidModule
47
AndroidTidyModule.cpp

clang-tools-extra/clang-tidy/boost/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
support
3+
FrontendOpenMP
4+
)
25

36
add_clang_library(clangTidyBoostModule
47
BoostTidyModule.cpp

clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
support
3+
FrontendOpenMP
4+
)
25

36
add_clang_library(clangTidyBugproneModule
47
ArgumentCommentCheck.cpp

clang-tools-extra/clang-tidy/cert/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
support
3+
FrontendOpenMP
4+
)
25

36
add_clang_library(clangTidyCERTModule
47
CERTTidyModule.cpp

clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyCppCoreGuidelinesModule
47
AvoidGotoCheck.cpp

clang-tools-extra/clang-tidy/darwin/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyDarwinModule
47
AvoidSpinlockCheck.cpp

clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyFuchsiaModule
47
DefaultArgumentsCallsCheck.cpp

clang-tools-extra/clang-tidy/google/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyGoogleModule
47
AvoidCStyleCastsCheck.cpp

clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyHICPPModule
47
ExceptionBaseclassCheck.cpp

clang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyLinuxKernelModule
47
LinuxKernelTidyModule.cpp

clang-tools-extra/clang-tidy/llvm/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyLLVMModule
47
HeaderGuardCheck.cpp

clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyLLVMLibcModule
47
ImplementationInNamespaceCheck.cpp

clang-tools-extra/clang-tidy/misc/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyMiscModule
47
DefinitionsInHeadersCheck.cpp

clang-tools-extra/clang-tidy/modernize/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyModernizeModule
47
AvoidBindCheck.cpp

clang-tools-extra/clang-tidy/mpi/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyMPIModule
47
BufferDerefCheck.cpp

clang-tools-extra/clang-tidy/objc/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyObjCModule
47
AvoidNSErrorInitCheck.cpp

clang-tools-extra/clang-tidy/openmp/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
2-
Support)
2+
FrontendOpenMP
3+
Support
4+
)
35

46
add_clang_library(clangTidyOpenMPModule
57
ExceptionEscapeCheck.cpp

clang-tools-extra/clang-tidy/performance/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyPerformanceModule
47
FasterStringFindCheck.cpp

clang-tools-extra/clang-tidy/portability/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyPortabilityModule
47
PortabilityTidyModule.cpp

clang-tools-extra/clang-tidy/readability/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyReadabilityModule
47
AvoidConstParamsInDecls.cpp

clang-tools-extra/clang-tidy/tool/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS
22
AllTargetsAsmParsers
33
AllTargetsDescs
44
AllTargetsInfos
5+
FrontendOpenMP
56
support
67
)
78

clang-tools-extra/clang-tidy/utils/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyUtils
47
ASTUtils.cpp

clang-tools-extra/clang-tidy/zircon/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support)
1+
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
3+
Support
4+
)
25

36
add_clang_library(clangTidyZirconModule
47
TemporaryObjectsCheck.cpp

clang-tools-extra/clangd/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ configure_file(
2222
set(LLVM_LINK_COMPONENTS
2323
Support
2424
AllTargetsInfos
25+
FrontendOpenMP
2526
)
2627

2728
if(CLANG_BUILT_STANDALONE)

clang-tools-extra/clangd/unittests/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
22
support
33
AllTargetsInfos
4+
FrontendOpenMP
45
)
56

67
get_filename_component(CLANGD_SOURCE_DIR

clang-tools-extra/tool-template/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(LLVM_LINK_COMPONENTS
2+
FrontendOpenMP
23
Support
34
)
45

clang-tools-extra/unittests/clang-change-namespace/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
2-
support
2+
FrontendOpenMP
3+
Support
34
)
45

56
get_filename_component(CHANGE_NAMESPACE_SOURCE_DIR

0 commit comments

Comments
 (0)