1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= C language family frontend for LLVM 13.0
8 HOMEPAGE= http://llvm.org/
12 SITES[main]= https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/
13 http://llvm.org/releases/13.0.1/
14 DISTFILE[1]= clang-13.0.1.src.tar.xz:main
15 DISTFILE[2]= clang-tools-extra-13.0.1.src.tar.xz:main
17 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 BUILDRUN_DEPENDS= llvm13:single:standard
26 EXRUN[compiler]= clang13:dynlibs:standard
28 USES= cmake ninja ncurses zlib execinfo shebangfix
29 python:build c++:compiler,extra
30 GNOME_COMPONENTS= libxml2
32 DISTNAME= clang-13.0.1.src
34 LICENSE= CUSTOM1:compiler
35 LICENSE_NAME= CUSTOM1:"University of Illinois/NCSA Open Source License"
36 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE.TXT
39 CMAKE_BUILD_TYPE= Release
40 CMAKE_INSTALL_PREFIX= {{PREFIX}}/llvm13
41 SHEBANG_FILES= utils/hmaptool/hmaptool
42 tools/scan-view/bin/scan-view
43 tools/clang-format/git-clang-format
44 tools/clang-format/clang-format-diff.py
45 tools/extra/clang-tidy/tool/clang-tidy-diff.py
46 tools/extra/clang-tidy/tool/run-clang-tidy.py
47 tools/extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
48 tools/scan-build-py/bin/analyze-build
49 tools/scan-build-py/bin/intercept-build
50 tools/scan-build-py/bin/scan-build
51 tools/scan-build-py/libexec/analyze-cc
52 tools/scan-build-py/libexec/analyze-c++
53 tools/scan-build-py/libexec/intercept-cc
54 tools/scan-build-py/libexec/intercept-c++
56 PLIST_SUB= LLVM_RELEASE="13.0.1"
67 CMAKE_ARGS= -DLLVM_BUILD_LLVM_DYLIB=ON
68 -DLLVM_LINK_LLVM_DYLIB=ON
69 -DLLVM_PARALLEL_LINK_JOBS=1
70 -DLLVM_PARALLEL_COMPILE_JOBS={{MAKE_JOBS_NUMBER}}
71 -DLLVM_INCLUDE_TESTS:BOOL=OFF
72 -DLLVM_BUILD_32_BITS:BOOL=OFF
74 -DGCC_INSTALL_PREFIX={{LOCALBASE}}/toolchain/ravensys-gcc
75 -DCLANG_ENABLE_CLANGD:BOOL=OFF
76 VAR_OPSYS[freebsd]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
77 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm13/lib"
78 VAR_OPSYS[sunos]= CMAKE_ARGS=-DCMAKE_SKIP_RPATH:BOOL=TRUE
79 LDFLAGS=-Wl,-R{{LOCALBASE}}/llvm13/lib
80 VAR_OPSYS[linux]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
81 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm13/lib"
82 VAR_OPSYS[dragonfly]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
83 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm13/lib"
86 ${REINPLACE_CMD} -e 's,/usr/local/,${LOCALBASE}/,' \
87 ${WRKSRC}/lib/Driver/ToolChains/CommonArgs.cpp
89 -e 's|@LOCALBASE@|${LOCALBASE}|' \
90 -e 's|@RAVEN_GCC@|${LOCALBASE}/toolchain/ravensys-gcc/${ASLIB}|' \
91 -e 's|@RAVEN_GCC_TARGET@|${LOCALBASE}/toolchain/ravensys-gcc/${ASLIB}/gcc/${CONFIGURE_TARGET}/11.2.0|' \
92 -e 's|@RAVEN_GXX_HEADERS_DIR@|${LOCALBASE}/toolchain/ravensys-gcc/include/c++/11.2.0|' \
93 ${WRKSRC}/lib/Driver/ToolChains/DragonFly.cpp \
94 ${WRKSRC}/lib/Driver/ToolChains/FreeBSD.cpp \
95 ${WRKSRC}/lib/Driver/ToolChains/Gnu.cpp \
96 ${WRKSRC}/lib/Frontend/InitHeaderSearch.cpp
99 # Remove headers that conflict with /usr/include
102 -e '/ stdalign.h/d' \
107 -e '/ stdnoreturn.h/d' \
108 ${WRKSRC}/lib/Headers/CMakeLists.txt
111 ${RMDIR} ${STAGEDIR}${PREFIX}/llvm13/include/clang-tidy/plugin
112 ${INSTALL_PROGRAM} ${WRKDIR}/.build/bin/clang-tblgen \
113 ${STAGEDIR}${PREFIX}/llvm13/bin/
114 .for F in c-index-test clang-13 clang-check clang-doc clang-format \
115 clang-extdef-mapping clang-offload-bundler \
116 clang-move clang-offload-wrapper clang-refactor clang-rename clang-apply-replacements \
117 clang-scan-deps clang-change-namespace clang-include-fixer clang-query \
118 clang-reorder-fields clang-tidy find-all-symbols \
119 modularize diagtool pp-trace #clangd
120 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/llvm13/bin/${F}
122 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/llvm13/lib/libclang.${LIBEXT}
123 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/llvm13/lib/libclang-cpp.${LIBEXT}
124 # Remove man page (installed in wrong spot)
125 ${RM} -r ${STAGEDIR}${PREFIX}/share/man/man1
128 ${MV} ${WRKDIR}/clang-tools-extra-13.0.1.src \
129 ${WRKDIR}/clang-tools-extra
130 # hack around clang 12.0.0 bug
131 ${CP} -a ${WRKDIR}/clang-tools-extra ${WRKSRC}/tools/extra
134 # Remove headers that conflict with /usr/include
137 -e '/ stdalign.h/d' \
139 -e '/ stdatomic.h/d' \
143 -e '/ stdnoreturn.h/d' \
145 ${WRKSRC}/lib/Headers/CMakeLists.txt
147 [FILE:842:descriptions/desc.compiler]
148 The LLVM Project is a collection of modular and reusable compiler and
149 toolchain technologies. Despite its name, LLVM has little to do with
150 traditional virtual machines, though it does provide helpful libraries
151 that can be used to build them. The name "LLVM" itself is not an
152 acronym; it is the full name of the project.
154 This package contains Clang is an "LLVM native" C/C++/Objective-C
155 compiler, which aims to deliver amazingly fast compiles (e.g. about 3x
156 faster than GCC when compiling Objective-C code in a debug
157 configuration), extremely useful error and warning messages and to
158 provide a platform for building great source level tools. The Clang
159 Static Analyzer is a tool that automatically finds bugs in your code,
160 and is a great example of the sort of tool that can be built using
161 the Clang frontend as a library to parse C/C++ code.
164 [FILE:558:descriptions/desc.extra]
165 The LLVM Project is a collection of modular and reusable compiler and
166 toolchain technologies. Despite its name, LLVM has little to do with
167 traditional virtual machines, though it does provide helpful libraries
168 that can be used to build them. The name "LLVM" itself is not an
169 acronym; it is the full name of the project.
171 This package holds tools that are developed as part of the LLVM compiler
172 infrastructure project and the Clang frontend. These tools are kept in a
173 separate "extra" repository to allow lighter weight checkouts of the core
177 [FILE:445:descriptions/desc.dynlibs]
178 The LLVM Project is a collection of modular and reusable compiler and
179 toolchain technologies. Despite its name, LLVM has little to do with
180 traditional virtual machines, though it does provide helpful libraries
181 that can be used to build them. The name "LLVM" itself is not an
182 acronym; it is the full name of the project.
184 This package contains the dynamic clang libraries which are potentially
185 dependencies for ports that require clang to build.
189 787a9e2d99f5c8720aa1773e4be009461cd30d3bd40fdd24591e473467c917c9 17847584 clang-13.0.1.src.tar.xz
190 cc2bc8598848513fa2257a270083e986fd61048347eccf1d801926ea709392d0 2740348 clang-tools-extra-13.0.1.src.tar.xz
193 [FILE:19237:manifests/plist.compiler]
194 %%ONLY-DRAGONFLY%%%%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
197 %%ONLY-LINUX%%%%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
207 %%ONLY-NETBSD%%%%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
217 %%ONLY-SUNOS%%%%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
237 clang-offload-bundler
238 clang-offload-wrapper
248 %%NAMEBASE%%/include/clang-c/
250 CXCompilationDatabase.h
259 %%NAMEBASE%%/include/clang/APINotes/
260 APINotesYAMLCompiler.h
262 %%NAMEBASE%%/include/clang/ARCMigrate/
266 %%NAMEBASE%%/include/clang/AST/
278 ASTImporterLookupTable.h
279 ASTImporterSharedState.h
281 ASTMutationListener.h
283 ASTStructuralEquivalence.h
287 AbstractBasicReader.h
288 AbstractBasicReader.inc
289 AbstractBasicWriter.h
290 AbstractBasicWriter.inc
292 AbstractTypeReader.inc
294 AbstractTypeWriter.inc
307 CXXRecordDeclDefinitionBits.def
312 CommentCommandInfo.inc
313 CommentCommandList.inc
314 CommentCommandTraits.h
316 CommentHTMLNamedCharacterReferences.inc
318 CommentHTMLTagsProperties.inc
324 ComparisonCategories.h
326 CurrentSourceLocExprScope.h
332 DeclContextInternals.h
344 DependentDiagnostic.h
345 EvaluatedExprVisitor.h
358 LexicallyOrderedRecursiveASTVisitor.h
361 MangleNumberingContext.h
363 NestedNameSpecifier.h
364 NonTrivialTypeVisitor.h
373 PrettyDeclStackTrace.h
378 RecursiveASTVisitor.h
380 SelectorLocationsKind.h
383 StmtDataCollectors.inc
390 TemplateArgumentVisitor.h
404 %%NAMEBASE%%/include/clang/ASTMatchers/
407 ASTMatchersInternal.h
410 %%NAMEBASE%%/include/clang/ASTMatchers/Dynamic/
415 %%NAMEBASE%%/include/clang/Analysis/
416 AnalysisDeclContext.h
425 ConstructionContext.h
427 MacroExpansionContext.h
430 RetainSummaryManager.h
432 %%NAMEBASE%%/include/clang/Analysis/Analyses/
433 CFGReachabilityAnalysis.h
437 ExprMutationAnalyzer.h
443 ThreadSafetyLogical.h
446 ThreadSafetyTraverse.h
448 UninitializedValues.h
449 %%NAMEBASE%%/include/clang/Analysis/DomainSpecific/
452 %%NAMEBASE%%/include/clang/Analysis/FlowSensitive/
455 %%NAMEBASE%%/include/clang/Analysis/Support/BumpVector.h
456 %%NAMEBASE%%/include/clang/Basic/
457 AArch64SVEACLETypes.def
462 AttrHasAttributeImpl.inc
465 AttrSubMatchRulesList.inc
466 AttrSubjectMatchRules.h
467 AttributeCommonInfo.h
477 BuiltinsHexagonDep.def
478 BuiltinsHexagonMapCustomDep.def
486 BuiltinsWebAssembly.def
500 DiagnosticASTKinds.inc
502 DiagnosticAnalysisKinds.inc
503 DiagnosticCategories.h
505 DiagnosticCommentKinds.inc
506 DiagnosticCommonKinds.inc
508 DiagnosticCrossTUKinds.inc
510 DiagnosticDriverKinds.inc
513 DiagnosticFrontendKinds.inc
516 DiagnosticIndexName.inc
518 DiagnosticLexKinds.inc
519 DiagnosticOptions.def
522 DiagnosticParseKinds.inc
523 DiagnosticRefactoring.h
524 DiagnosticRefactoringKinds.inc
526 DiagnosticSemaKinds.inc
527 DiagnosticSerialization.h
528 DiagnosticSerializationKinds.inc
530 ExceptionSpecificationType.h
537 FileSystemStatCache.h
552 OpenCLExtensionTypes.def
568 SanitizerSpecialCaseList.h
573 SourceManagerInternals.h
594 arm_cde_builtin_aliases.inc
595 arm_cde_builtin_cg.inc
596 arm_cde_builtin_sema.inc
599 arm_mve_builtin_aliases.inc
600 arm_mve_builtin_cg.inc
601 arm_mve_builtin_sema.inc
604 arm_sve_builtin_cg.inc
606 arm_sve_sema_rangechecks.inc
607 arm_sve_typeflags.inc
608 riscv_vector_builtin_cg.inc
609 riscv_vector_builtins.inc
610 %%NAMEBASE%%/include/clang/CodeGen/
615 ConstantInitBuilder.h
618 ObjectFilePCHContainerOperations.h
620 %%NAMEBASE%%/include/clang/Config/config.h
621 %%NAMEBASE%%/include/clang/CrossTU/
623 CrossTranslationUnit.h
624 %%NAMEBASE%%/include/clang/DirectoryWatcher/DirectoryWatcher.h
625 %%NAMEBASE%%/include/clang/Driver/
645 %%NAMEBASE%%/include/clang/Edit/
651 %%NAMEBASE%%/include/clang/Format/Format.h
652 %%NAMEBASE%%/include/clang/Frontend/
655 ChainedDiagnosticConsumer.h
656 CommandLineSourceLoc.h
659 DependencyOutputOptions.h
665 FrontendPluginRegistry.h
666 LayoutOverrideSource.h
667 LogDiagnosticPrinter.h
670 PCHContainerOperations.h
671 PrecompiledPreamble.h
672 PreprocessorOutputOptions.h
673 SerializedDiagnosticPrinter.h
674 SerializedDiagnosticReader.h
675 SerializedDiagnostics.h
677 TextDiagnosticBuffer.h
678 TextDiagnosticPrinter.h
680 VerifyDiagnosticConsumer.h
681 %%NAMEBASE%%/include/clang/FrontendTool/Utils.h
682 %%NAMEBASE%%/include/clang/Index/
690 %%NAMEBASE%%/include/clang/IndexSerialization/SerializablePathCollection.h
691 %%NAMEBASE%%/include/clang/Interpreter/
693 PartialTranslationUnit.h
694 %%NAMEBASE%%/include/clang/Lex/
695 CodeCompletionHandler.h
696 DependencyDirectivesSourceMinimizer.h
698 ExternalPreprocessorSource.h
702 HeaderSearchOptions.h
712 PPConditionalDirectiveRecord.h
714 PreprocessingRecord.h
716 PreprocessorExcludedConditionalDirectiveSkipMapping.h
718 PreprocessorOptions.h
723 VariadicMacroSupport.h
724 %%NAMEBASE%%/include/clang/Parse/
725 AttrParserStringSwitches.inc
726 AttrSubMatchRulesParserStringSwitches.inc
731 RAIIObjectsForParser.h
732 %%NAMEBASE%%/include/clang/Rewrite/Core/
739 %%NAMEBASE%%/include/clang/Rewrite/Frontend/
744 %%NAMEBASE%%/include/clang/Sema/
745 AnalysisBasedWarnings.h
746 AttrParsedAttrImpl.inc
747 AttrParsedAttrKinds.inc
748 AttrParsedAttrList.inc
749 AttrSpellingListIndex.inc
750 AttrTemplateInstantiate.inc
753 CodeCompleteConsumer.h
754 CodeCompleteOptions.h
762 MultiplexExternalSemaSource.h
779 TemplateInstCallback.h
782 %%NAMEBASE%%/include/clang/Serialization/
784 ASTDeserializationListener.h
793 InMemoryModuleCache.h
795 ModuleFileExtension.h
797 PCHContainerOperations.h
798 SerializationDiagnostic.h
800 %%NAMEBASE%%/include/clang/StaticAnalyzer/Checkers/
801 BuiltinCheckerRegistration.h
804 MPIFunctionClassifier.h
806 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/
812 CheckerRegistryData.h
813 PathDiagnosticConsumers.h
814 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/BugReporter/
816 BugReporterVisitors.h
818 CommonBugCategories.h
819 %%NAMEBASE%%/include/clang/StaticAnalyzer/Core/PathSensitive/
843 RangedConstraintManager.h
845 SMTConstraintManager.h
851 SimpleConstraintManager.h
859 %%NAMEBASE%%/include/clang/StaticAnalyzer/Frontend/
865 %%NAMEBASE%%/include/clang/Testing/
868 %%NAMEBASE%%/include/clang/Tooling/
871 CommonOptionsParser.h
872 CompilationDatabase.h
873 CompilationDatabasePluginRegistry.h
878 JSONCompilationDatabase.h
880 NodeIntrospection.inc
882 RefactoringCallbacks.h
884 StandaloneExecution.h
885 ToolExecutorPluginRegistry.h
887 %%NAMEBASE%%/include/clang/Tooling/ASTDiff/
890 %%NAMEBASE%%/include/clang/Tooling/Core/
893 %%NAMEBASE%%/include/clang/Tooling/DependencyScanning/
894 DependencyScanningFilesystem.h
895 DependencyScanningService.h
896 DependencyScanningTool.h
897 DependencyScanningWorker.h
899 %%NAMEBASE%%/include/clang/Tooling/Inclusions/
902 %%NAMEBASE%%/include/clang/Tooling/Refactoring/
906 RecursiveSymbolVisitor.h
908 RefactoringActionRule.h
909 RefactoringActionRuleRequirements.h
910 RefactoringActionRules.h
911 RefactoringActionRulesInternal.h
912 RefactoringDiagnostic.h
914 RefactoringOptionVisitor.h
916 RefactoringResultConsumer.h
917 RefactoringRuleContext.h
918 %%NAMEBASE%%/include/clang/Tooling/Refactoring/Extract/
921 %%NAMEBASE%%/include/clang/Tooling/Refactoring/Rename/
928 %%NAMEBASE%%/include/clang/Tooling/Syntax/
936 %%NAMEBASE%%/include/clang/Tooling/Transformer/
949 libclangASTMatchers.a
954 libclangDependencyScanning.a
955 libclangDirectoryWatcher.a
957 libclangDynamicASTMatchers.a
961 libclangFrontendTool.a
965 libclangIndexSerialization.a
966 libclangInterpreter.a
970 libclangRewriteFrontend.a
972 libclangSerialization.a
973 libclangStaticAnalyzerCheckers.a
974 libclangStaticAnalyzerCore.a
975 libclangStaticAnalyzerFrontend.a
978 libclangToolingASTDiff.a
979 libclangToolingCore.a
980 libclangToolingInclusions.a
981 libclangToolingRefactoring.a
982 libclangToolingSyntax.a
983 libclangTransformer.a
984 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/
985 __clang_cuda_builtin_vars.h
987 __clang_cuda_complex_builtins.h
988 __clang_cuda_device_functions.h
989 __clang_cuda_intrinsics.h
990 __clang_cuda_libdevice_declares.h
992 __clang_cuda_math_forward_declares.h
993 __clang_cuda_runtime_wrapper.h
995 __clang_hip_libdevice_declares.h
997 __clang_hip_runtime_wrapper.h
998 __stddef_max_align_t.h
1000 __wmmintrin_pclmul.h
1017 avx512bitalgintrin.h
1024 avx512ifmavlintrin.h
1028 avx512vbmivlintrin.h
1029 avx512vlbf16intrin.h
1030 avx512vlbitalgintrin.h
1035 avx512vlvbmi2intrin.h
1036 avx512vlvnniintrin.h
1037 avx512vlvp2intersectintrin.h
1039 avx512vp2intersectintrin.h
1040 avx512vpopcntdqintrin.h
1041 avx512vpopcntdqvlintrin.h
1062 hexagon_circ_brev_intrinsics.h
1068 hvx_hexagon_protos.h
1125 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/cuda_wrappers/
1129 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/openmp_wrappers/
1130 __clang_openmp_device_functions.h
1137 %%NAMEBASE%%/lib/clang/%%LLVM_RELEASE%%/include/ppc_wrappers/
1145 %%NAMEBASE%%/lib/cmake/clang/
1148 ClangTargets-%%CMAKE_BUILD_TYPE%%.cmake
1150 %%NAMEBASE%%/libexec/
1157 %%NAMEBASE%%/share/clang/
1158 bash-autocomplete.sh
1159 clang-format-bbedit.applescript
1160 clang-format-diff.py
1161 clang-format-sublime.py
1166 %%NAMEBASE%%/share/scan-build/
1169 %%NAMEBASE%%/share/scan-view/
1176 [FILE:11278:manifests/plist.extra]
1179 clang-apply-replacements
1180 clang-change-namespace
1185 clang-reorder-fields
1194 %%NAMEBASE%%/include/clang-tidy/
1197 ClangTidyDiagnosticConsumer.h
1198 ClangTidyForceLinker.h
1200 ClangTidyModuleRegistry.h
1202 ClangTidyProfiling.h
1203 ExpandModularHeadersPPCallbacks.h
1205 %%NAMEBASE%%/include/clang-tidy/abseil/
1207 DurationAdditionCheck.h
1208 DurationComparisonCheck.h
1209 DurationConversionCastCheck.h
1210 DurationDivisionCheck.h
1211 DurationFactoryFloatCheck.h
1212 DurationFactoryScaleCheck.h
1214 DurationSubtractionCheck.h
1215 DurationUnnecessaryConversionCheck.h
1216 FasterStrsplitDelimiterCheck.h
1217 NoInternalDependenciesCheck.h
1219 RedundantStrcatCallsCheck.h
1221 StringFindStartswithCheck.h
1222 StringFindStrContainsCheck.h
1223 TimeComparisonCheck.h
1224 TimeSubtractionCheck.h
1225 UpgradeDurationConversionsCheck.h
1226 %%NAMEBASE%%/include/clang-tidy/altera/
1227 IdDependentBackwardBranchCheck.h
1228 KernelNameRestrictionCheck.h
1229 SingleWorkItemBarrierCheck.h
1230 StructPackAlignCheck.h
1232 %%NAMEBASE%%/include/clang-tidy/android/
1233 CloexecAccept4Check.h
1234 CloexecAcceptCheck.h
1238 CloexecEpollCreate1Check.h
1239 CloexecEpollCreateCheck.h
1241 CloexecInotifyInit1Check.h
1242 CloexecInotifyInitCheck.h
1243 CloexecMemfdCreateCheck.h
1247 CloexecSocketCheck.h
1248 ComparisonInTempFailureRetryCheck.h
1249 %%NAMEBASE%%/include/clang-tidy/boost/UseToStringCheck.h
1250 %%NAMEBASE%%/include/clang-tidy/bugprone/
1251 ArgumentCommentCheck.h
1252 AssertSideEffectCheck.h
1253 BadSignalToKillThreadCheck.h
1254 BoolPointerImplicitConversionCheck.h
1256 CopyConstructorInitCheck.h
1257 DanglingHandleCheck.h
1258 DynamicStaticInitializersCheck.h
1259 EasilySwappableParametersCheck.h
1260 ExceptionEscapeCheck.h
1262 ForwardDeclarationNamespaceCheck.h
1263 ForwardingReferenceOverloadCheck.h
1264 ImplicitWideningOfMultiplicationResultCheck.h
1265 InaccurateEraseCheck.h
1266 IncorrectRoundingsCheck.h
1268 IntegerDivisionCheck.h
1269 LambdaFunctionNameCheck.h
1270 MacroParenthesesCheck.h
1271 MacroRepeatedSideEffectsCheck.h
1272 MisplacedOperatorInStrlenInAllocCheck.h
1273 MisplacedPointerArithmeticInAllocCheck.h
1274 MisplacedWideningCastCheck.h
1275 MoveForwardingReferenceCheck.h
1276 MultipleStatementMacroCheck.h
1278 NotNullTerminatedResultCheck.h
1279 ParentVirtualCallCheck.h
1281 RedundantBranchConditionCheck.h
1282 ReservedIdentifierCheck.h
1283 SignalHandlerCheck.h
1284 SignedCharMisuseCheck.h
1285 SizeofContainerCheck.h
1286 SizeofExpressionCheck.h
1287 SpuriouslyWakeUpFunctionsCheck.h
1288 StringConstructorCheck.h
1289 StringIntegerAssignmentCheck.h
1290 StringLiteralWithEmbeddedNulCheck.h
1291 SuspiciousEnumUsageCheck.h
1292 SuspiciousIncludeCheck.h
1293 SuspiciousMemsetUsageCheck.h
1294 SuspiciousMissingCommaCheck.h
1295 SuspiciousSemicolonCheck.h
1296 SuspiciousStringCompareCheck.h
1297 SwappedArgumentsCheck.h
1298 TerminatingContinueCheck.h
1299 ThrowKeywordMissingCheck.h
1300 TooSmallLoopVariableCheck.h
1301 UndefinedMemoryManipulationCheck.h
1302 UndelegatedConstructorCheck.h
1303 UnhandledExceptionAtNewCheck.h
1304 UnhandledSelfAssignmentCheck.h
1306 UnusedReturnValueCheck.h
1308 VirtualNearMissCheck.h
1309 %%NAMEBASE%%/include/clang-tidy/cert/
1310 CommandProcessorCheck.h
1311 DefaultOperatorNewAlignmentCheck.h
1312 DontModifyStdNamespaceCheck.h
1314 LimitedRandomnessCheck.h
1316 NonTrivialTypesLibcMemoryCallsCheck.h
1317 PostfixOperatorCheck.h
1318 ProperlySeededRandomGeneratorCheck.h
1320 StaticObjectExceptionCheck.h
1322 ThrownExceptionTypeCheck.h
1323 VariadicFunctionDefCheck.h
1324 %%NAMEBASE%%/include/clang-tidy/concurrency/
1326 ThreadCanceltypeAsynchronousCheck.h
1327 %%NAMEBASE%%/include/clang-tidy/cppcoreguidelines/
1329 AvoidNonConstGlobalVariablesCheck.h
1330 InitVariablesCheck.h
1331 InterfacesGlobalInitCheck.h
1333 NarrowingConversionsCheck.h
1336 PreferMemberInitializerCheck.h
1337 ProBoundsArrayToPointerDecayCheck.h
1338 ProBoundsConstantArrayIndexCheck.h
1339 ProBoundsPointerArithmeticCheck.h
1340 ProTypeConstCastCheck.h
1341 ProTypeCstyleCastCheck.h
1342 ProTypeMemberInitCheck.h
1343 ProTypeReinterpretCastCheck.h
1344 ProTypeStaticCastDowncastCheck.h
1345 ProTypeUnionAccessCheck.h
1346 ProTypeVarargCheck.h
1348 SpecialMemberFunctionsCheck.h
1349 %%NAMEBASE%%/include/clang-tidy/darwin/
1350 AvoidSpinlockCheck.h
1351 DispatchOnceNonstaticCheck.h
1352 %%NAMEBASE%%/include/clang-tidy/fuchsia/
1353 DefaultArgumentsCallsCheck.h
1354 DefaultArgumentsDeclarationsCheck.h
1355 MultipleInheritanceCheck.h
1356 OverloadedOperatorCheck.h
1357 StaticallyConstructedObjectsCheck.h
1358 TrailingReturnCheck.h
1359 VirtualInheritanceCheck.h
1360 %%NAMEBASE%%/include/clang-tidy/google/
1361 AvoidCStyleCastsCheck.h
1362 AvoidNSObjectNewCheck.h
1363 AvoidThrowingObjCExceptionCheck.h
1364 AvoidUnderscoreInGoogletestNameCheck.h
1365 DefaultArgumentsCheck.h
1366 ExplicitConstructorCheck.h
1367 ExplicitMakePairCheck.h
1368 FunctionNamingCheck.h
1369 GlobalNamesInHeadersCheck.h
1370 GlobalVariableDeclarationCheck.h
1372 OverloadedUnaryAndCheck.h
1374 UnnamedNamespaceInHeaderCheck.h
1375 UpgradeGoogletestCaseCheck.h
1376 UsingNamespaceDirectiveCheck.h
1377 %%NAMEBASE%%/include/clang-tidy/hicpp/
1378 ExceptionBaseclassCheck.h
1379 MultiwayPathsCoveredCheck.h
1381 SignedBitwiseCheck.h
1382 %%NAMEBASE%%/include/clang-tidy/linuxkernel/MustCheckErrsCheck.h
1383 %%NAMEBASE%%/include/clang-tidy/llvm/
1386 PreferIsaOrDynCastInConditionalsCheck.h
1387 PreferRegisterOverUnsignedCheck.h
1389 %%NAMEBASE%%/include/clang-tidy/llvmlibc/
1390 CalleeNamespaceCheck.h
1391 ImplementationInNamespaceCheck.h
1392 RestrictSystemLibcHeadersCheck.h
1393 %%NAMEBASE%%/include/clang-tidy/misc/
1394 DefinitionsInHeadersCheck.h
1395 MisplacedConstCheck.h
1396 NewDeleteOverloadsCheck.h
1398 NonCopyableObjects.h
1399 NonPrivateMemberVariablesInClassesCheck.h
1400 RedundantExpressionCheck.h
1402 ThrowByValueCatchByReferenceCheck.h
1403 UnconventionalAssignOperatorCheck.h
1404 UniqueptrResetReleaseCheck.h
1405 UnusedAliasDeclsCheck.h
1406 UnusedParametersCheck.h
1407 UnusedUsingDeclsCheck.h
1408 %%NAMEBASE%%/include/clang-tidy/modernize/
1411 ConcatNestedNamespacesCheck.h
1412 DeprecatedHeadersCheck.h
1413 DeprecatedIosBaseAliasesCheck.h
1420 RawStringLiteralCheck.h
1421 RedundantVoidArgCheck.h
1422 ReplaceAutoPtrCheck.h
1423 ReplaceDisallowCopyAndAssignMacroCheck.h
1424 ReplaceRandomShuffleCheck.h
1425 ReturnBracedInitListCheck.h
1427 UnaryStaticAssertCheck.h
1429 UseBoolLiteralsCheck.h
1430 UseDefaultMemberInitCheck.h
1432 UseEqualsDefaultCheck.h
1433 UseEqualsDeleteCheck.h
1438 UseTrailingReturnTypeCheck.h
1439 UseTransparentFunctorsCheck.h
1440 UseUncaughtExceptionsCheck.h
1442 %%NAMEBASE%%/include/clang-tidy/mpi/
1445 %%NAMEBASE%%/include/clang-tidy/objc/
1446 AvoidNSErrorInitCheck.h
1447 DeallocInCategoryCheck.h
1448 ForbiddenSubclassingCheck.h
1450 NSInvocationArgumentLifetimeCheck.h
1451 PropertyDeclarationCheck.h
1453 %%NAMEBASE%%/include/clang-tidy/openmp/
1454 ExceptionEscapeCheck.h
1455 UseDefaultNoneCheck.h
1456 %%NAMEBASE%%/include/clang-tidy/performance/
1457 FasterStringFindCheck.h
1459 ImplicitConversionInLoopCheck.h
1460 InefficientAlgorithmCheck.h
1461 InefficientStringConcatenationCheck.h
1462 InefficientVectorOperationCheck.h
1464 MoveConstructorInitCheck.h
1465 NoAutomaticMoveCheck.h
1467 NoexceptMoveConstructorCheck.h
1468 TriviallyDestructibleCheck.h
1469 TypePromotionInMathFnCheck.h
1470 UnnecessaryCopyInitialization.h
1471 UnnecessaryValueParamCheck.h
1472 %%NAMEBASE%%/include/clang-tidy/portability/
1473 RestrictSystemIncludesCheck.h
1474 SIMDIntrinsicsCheck.h
1475 %%NAMEBASE%%/include/clang-tidy/readability/
1476 AvoidConstParamsInDecls.h
1477 BracesAroundStatementsCheck.h
1478 ConstReturnTypeCheck.h
1479 ContainerSizeEmptyCheck.h
1480 ConvertMemberFunctionsToStatic.h
1481 DeleteNullPointerCheck.h
1482 ElseAfterReturnCheck.h
1483 FunctionCognitiveComplexityCheck.h
1485 IdentifierNamingCheck.h
1486 ImplicitBoolConversionCheck.h
1487 InconsistentDeclarationParameterNameCheck.h
1488 IsolateDeclarationCheck.h
1490 MakeMemberFunctionConstCheck.h
1491 MisleadingIndentationCheck.h
1492 MisplacedArrayIndexCheck.h
1493 NamedParameterCheck.h
1494 NamespaceCommentCheck.h
1495 NonConstParameterCheck.h
1496 QualifiedAutoCheck.h
1497 RedundantAccessSpecifiersCheck.h
1498 RedundantControlFlowCheck.h
1499 RedundantDeclarationCheck.h
1500 RedundantFunctionPtrDereferenceCheck.h
1501 RedundantMemberInitCheck.h
1502 RedundantPreprocessorCheck.h
1503 RedundantSmartptrGetCheck.h
1504 RedundantStringCStrCheck.h
1505 RedundantStringInitCheck.h
1506 SimplifyBooleanExprCheck.h
1507 SimplifySubscriptExprCheck.h
1508 StaticAccessedThroughInstanceCheck.h
1509 StaticDefinitionInAnonymousNamespaceCheck.h
1510 StringCompareCheck.h
1511 SuspiciousCallArgumentCheck.h
1512 UniqueptrDeleteReleaseCheck.h
1513 UppercaseLiteralSuffixCheck.h
1514 UseAnyOfAllOfCheck.h
1515 %%NAMEBASE%%/include/clang-tidy/tool/ClangTidyMain.h
1516 %%NAMEBASE%%/include/clang-tidy/utils/
1522 FileExtensionsUtils.h
1531 RenamerClangTidyCheck.h
1532 TransformerClangTidyCheck.h
1535 %%NAMEBASE%%/include/clang-tidy/zircon/TemporaryObjectsCheck.h
1537 libclangApplyReplacements.a
1538 libclangChangeNamespace.a
1540 libclangIncludeFixer.a
1541 libclangIncludeFixerPlugin.a
1544 libclangReorderFields.a
1546 libclangTidyAbseilModule.a
1547 libclangTidyAlteraModule.a
1548 libclangTidyAndroidModule.a
1549 libclangTidyBoostModule.a
1550 libclangTidyBugproneModule.a
1551 libclangTidyCERTModule.a
1552 libclangTidyConcurrencyModule.a
1553 libclangTidyCppCoreGuidelinesModule.a
1554 libclangTidyDarwinModule.a
1555 libclangTidyFuchsiaModule.a
1556 libclangTidyGoogleModule.a
1557 libclangTidyHICPPModule.a
1558 libclangTidyLLVMLibcModule.a
1559 libclangTidyLLVMModule.a
1560 libclangTidyLinuxKernelModule.a
1561 libclangTidyMPIModule.a
1563 libclangTidyMiscModule.a
1564 libclangTidyModernizeModule.a
1565 libclangTidyObjCModule.a
1566 libclangTidyOpenMPModule.a
1567 libclangTidyPerformanceModule.a
1568 libclangTidyPlugin.a
1569 libclangTidyPortabilityModule.a
1570 libclangTidyReadabilityModule.a
1572 libclangTidyZirconModule.a
1574 %%NAMEBASE%%/lib/libear/
1578 %%NAMEBASE%%/lib/libscanbuild/
1587 %%NAMEBASE%%/lib/libscanbuild/resources/
1591 %%NAMEBASE%%/share/clang/
1592 clang-doc-default-stylesheet.css
1593 clang-include-fixer.el
1594 clang-include-fixer.py
1597 run-find-all-symbols.py
1600 [FILE:138:manifests/plist.dynlibs]
1603 libclang-cpp.so.%%LLVM_MAJOR%%
1605 libclang.so.%%LLVM_MAJOR%%
1606 libclang.so.%%LLVM_RELEASE%%
1609 [FILE:2904:patches/patch-lib_Driver_ToolChains_DragonFly.cpp]
1610 --- lib/Driver/ToolChains/DragonFly.cpp.orig 2022-01-20 21:31:59 UTC
1611 +++ lib/Driver/ToolChains/DragonFly.cpp
1612 @@ -71,7 +71,7 @@ void dragonfly::Linker::ConstructJob(Com
1613 CmdArgs.push_back("-Bshareable");
1615 CmdArgs.push_back("-dynamic-linker");
1616 - CmdArgs.push_back("/usr/libexec/ld-elf.so.2");
1617 + CmdArgs.push_back("/libexec/ld-elf.so.2");
1619 CmdArgs.push_back("--hash-style=gnu");
1620 CmdArgs.push_back("--enable-new-dtags");
1621 @@ -114,19 +114,28 @@ void dragonfly::Linker::ConstructJob(Com
1622 Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o")));
1625 + if (D.isUsingLTO()) {
1626 + assert(!Inputs.empty() && "Must have at least one input.");
1627 + addLTOOptions(getToolChain(), Args, CmdArgs, Output, Inputs[0],
1628 + D.getLTOMode() == LTOK_Thin);
1631 Args.AddAllArgs(CmdArgs,
1632 {options::OPT_L, options::OPT_T_Group, options::OPT_e});
1634 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
1636 - if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
1637 - CmdArgs.push_back("-L/usr/lib/gcc80");
1638 + CmdArgs.push_back("-L@RAVEN_GCC@");
1639 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1641 - if (!Args.hasArg(options::OPT_static)) {
1642 - CmdArgs.push_back("-rpath");
1643 - CmdArgs.push_back("/usr/lib/gcc80");
1645 + if (!Args.hasArg(options::OPT_static)) {
1646 + CmdArgs.push_back("-rpath");
1647 + CmdArgs.push_back("@RAVEN_GCC@");
1648 + CmdArgs.push_back("-rpath");
1649 + CmdArgs.push_back("@LOCALBASE@/lib");
1652 + if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
1654 if (getToolChain().ShouldLinkCXXStdlib(Args))
1655 getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);
1656 @@ -145,16 +154,7 @@ void dragonfly::Linker::ConstructJob(Com
1657 CmdArgs.push_back("-lgcc");
1658 CmdArgs.push_back("-lgcc_eh");
1660 - if (Args.hasArg(options::OPT_shared_libgcc)) {
1661 - CmdArgs.push_back("-lgcc_pic");
1662 - if (!Args.hasArg(options::OPT_shared))
1663 - CmdArgs.push_back("-lgcc");
1665 - CmdArgs.push_back("-lgcc");
1666 - CmdArgs.push_back("--as-needed");
1667 - CmdArgs.push_back("-lgcc_pic");
1668 - CmdArgs.push_back("--no-as-needed");
1670 + CmdArgs.push_back("-lgcc_s");
1674 @@ -189,7 +189,8 @@ DragonFly::DragonFly(const Driver &D, co
1676 getFilePaths().push_back(getDriver().Dir + "/../lib");
1677 getFilePaths().push_back("/usr/lib");
1678 - getFilePaths().push_back("/usr/lib/gcc80");
1679 + getFilePaths().push_back("@RAVEN_GCC@");
1680 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1683 Tool *DragonFly::buildAssembler() const {
1684 @@ -199,3 +200,5 @@ Tool *DragonFly::buildAssembler() const
1685 Tool *DragonFly::buildLinker() const {
1686 return new tools::dragonfly::Linker(*this);
1689 +bool DragonFly::HasNativeLLVMSupport() const { return true; }
1692 [FILE:389:patches/patch-lib_Driver_ToolChains_DragonFly.h]
1693 --- lib/Driver/ToolChains/DragonFly.h.orig 2022-01-20 21:31:59 UTC
1694 +++ lib/Driver/ToolChains/DragonFly.h
1695 @@ -52,6 +52,7 @@ class LLVM_LIBRARY_VISIBILITY DragonFly
1697 DragonFly(const Driver &D, const llvm::Triple &Triple,
1698 const llvm::opt::ArgList &Args);
1699 + bool HasNativeLLVMSupport() const override;
1701 bool IsMathErrnoDefault() const override { return false; }
1705 [FILE:1270:patches/patch-lib_Driver_ToolChains_FreeBSD.cpp]
1706 --- lib/Driver/ToolChains/FreeBSD.cpp.orig 2022-01-20 21:31:59 UTC
1707 +++ lib/Driver/ToolChains/FreeBSD.cpp
1708 @@ -293,6 +293,16 @@ void freebsd::Linker::ConstructJob(Compi
1709 addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs);
1710 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
1712 + CmdArgs.push_back("-L@RAVEN_GCC@");
1713 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1715 + if (!Args.hasArg(options::OPT_static)) {
1716 + CmdArgs.push_back("-rpath");
1717 + CmdArgs.push_back("@RAVEN_GCC@");
1718 + CmdArgs.push_back("-rpath");
1719 + CmdArgs.push_back("@LOCALBASE@/lib");
1722 bool Profiling = Args.hasArg(options::OPT_pg) &&
1723 ToolChain.getTriple().getOSMajorVersion() < 14;
1724 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
1725 @@ -388,11 +398,11 @@ FreeBSD::FreeBSD(const Driver &D, const
1726 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32");
1728 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib");
1729 + getFilePaths().push_back("@RAVEN_GCC@");
1730 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1733 ToolChain::CXXStdlibType FreeBSD::GetDefaultCXXStdlibType() const {
1734 - if (getTriple().getOSMajorVersion() >= 10)
1735 - return ToolChain::CST_Libcxx;
1736 return ToolChain::CST_Libstdcxx;
1741 [FILE:642:patches/patch-lib_Driver_ToolChains_Gnu.cpp]
1742 --- lib/Driver/ToolChains/Gnu.cpp.orig 2022-01-20 21:31:59 UTC
1743 +++ lib/Driver/ToolChains/Gnu.cpp
1744 @@ -484,6 +484,9 @@ void tools::gnutools::Linker::ConstructJ
1748 + CmdArgs.push_back("-rpath");
1749 + CmdArgs.push_back("@RAVEN_GCC@");
1751 if (Args.hasArg(options::OPT_rdynamic))
1752 CmdArgs.push_back("-export-dynamic");
1754 @@ -590,6 +593,8 @@ void tools::gnutools::Linker::ConstructJ
1756 if (!Args.hasArg(options::OPT_nostdlib)) {
1757 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
1758 + CmdArgs.push_back("-L@RAVEN_GCC@");
1760 if (IsStatic || IsStaticPIE)
1761 CmdArgs.push_back("--start-group");
1765 [FILE:1137:patches/patch-lib_Frontend_InitHeaderSearch.cpp]
1766 --- lib/Frontend/InitHeaderSearch.cpp.orig 2022-01-20 21:31:59 UTC
1767 +++ lib/Frontend/InitHeaderSearch.cpp
1768 @@ -226,7 +226,6 @@ void InitHeaderSearch::AddDefaultCInclud
1769 if (HSOpts.UseStandardSystemIncludes) {
1771 case llvm::Triple::CloudABI:
1772 - case llvm::Triple::FreeBSD:
1773 case llvm::Triple::NetBSD:
1774 case llvm::Triple::OpenBSD:
1775 case llvm::Triple::NaCl:
1776 @@ -402,8 +401,15 @@ void InitHeaderSearch::AddDefaultCPlusPl
1780 + case llvm::Triple::FreeBSD:
1781 + AddPath("@RAVEN_GXX_HEADERS_DIR@", CXXSystem, false);
1782 + AddPath("@RAVEN_GXX_HEADERS_DIR@/backward", CXXSystem, false);
1783 + AddPath("@RAVEN_GXX_HEADERS_DIR@/" + triple.getTriple(), CXXSystem, false);
1785 case llvm::Triple::DragonFly:
1786 - AddPath("/usr/include/c++/5.0", CXXSystem, false);
1787 + AddPath("@RAVEN_GXX_HEADERS_DIR@", CXXSystem, false);
1788 + AddPath("@RAVEN_GXX_HEADERS_DIR@/backward", CXXSystem, false);
1789 + AddPath("@RAVEN_GXX_HEADERS_DIR@/" + triple.getTriple(), CXXSystem, false);
1791 case llvm::Triple::Minix:
1792 AddGnuCPlusPlusIncludePaths("/usr/gnu/include/c++/4.4.3",
1795 [FILE:597:patches/patch-lib_Frontend_InitPreprocessor.cpp]
1796 --- lib/Frontend/InitPreprocessor.cpp.orig 2022-01-20 21:31:59 UTC
1797 +++ lib/Frontend/InitPreprocessor.cpp
1798 @@ -661,7 +661,8 @@ static void InitializePredefinedMacros(c
1799 Builder.defineMacro("__GNUC__", Twine(GNUCMajor));
1800 Builder.defineMacro("__GNUC_MINOR__", Twine(GNUCMinor));
1801 Builder.defineMacro("__GNUC_PATCHLEVEL__", Twine(GNUCPatch));
1802 - Builder.defineMacro("__GXX_ABI_VERSION", "1002");
1803 + // match ABI of Ravenports GCC compiler
1804 + Builder.defineMacro("__GXX_ABI_VERSION", "1013");
1806 if (LangOpts.CPlusPlus) {
1807 Builder.defineMacro("__GNUG__", Twine(GNUCMajor));
1810 [FILE:601:patches/patch-lib_Interpreter_IncrementalParser.cpp]
1811 --- lib/Interpreter/IncrementalParser.cpp.orig 2022-01-20 21:31:59 UTC
1812 +++ lib/Interpreter/IncrementalParser.cpp
1813 @@ -53,7 +53,11 @@ public:
1814 switch (CI.getFrontendOpts().ProgramAction) {
1816 Err = llvm::createStringError(
1817 +#if defined __DragonFly__ || defined __NetBSD__
1818 + std::errc::operation_not_supported,
1820 std::errc::state_not_recoverable,
1822 "Driver initialization failed. "
1823 "Incremental mode for action %d is not supported",
1824 CI.getFrontendOpts().ProgramAction);
1827 [FILE:2649:patches/patch-lib_Interpreter_Interpreter.cpp]
1828 --- lib/Interpreter/Interpreter.cpp.orig 2022-01-20 21:31:59 UTC
1829 +++ lib/Interpreter/Interpreter.cpp
1830 @@ -47,14 +47,22 @@ GetCC1Arguments(DiagnosticsEngine *Diagn
1831 // failed. Extract that job from the Compilation.
1832 const driver::JobList &Jobs = Compilation->getJobs();
1833 if (!Jobs.size() || !isa<driver::Command>(*Jobs.begin()))
1834 +#if defined __DragonFly__ || defined __NetBSD__
1835 + return llvm::createStringError(std::errc::operation_not_supported,
1837 return llvm::createStringError(std::errc::state_not_recoverable,
1839 "Driver initialization failed. "
1840 "Unable to create a driver job");
1842 // The one job we find should be to invoke clang again.
1843 const driver::Command *Cmd = cast<driver::Command>(&(*Jobs.begin()));
1844 if (llvm::StringRef(Cmd->getCreator().getName()) != "clang")
1845 +#if defined __DragonFly__ || defined __NetBSD__
1846 + return llvm::createStringError(std::errc::operation_not_supported,
1848 return llvm::createStringError(std::errc::state_not_recoverable,
1850 "Driver initialization failed");
1852 return &Cmd->getArguments();
1853 @@ -89,13 +97,21 @@ CreateCI(const llvm::opt::ArgStringList
1854 // Create the actual diagnostics engine.
1855 Clang->createDiagnostics();
1856 if (!Clang->hasDiagnostics())
1857 +#if defined __DragonFly__ || defined __NetBSD__
1858 + return llvm::createStringError(std::errc::operation_not_supported,
1860 return llvm::createStringError(std::errc::state_not_recoverable,
1862 "Initialization failed. "
1863 "Unable to create diagnostics engine");
1865 DiagsBuffer->FlushDiagnostics(Clang->getDiagnostics());
1867 +#if defined __DragonFly__ || defined __NetBSD__
1868 + return llvm::createStringError(std::errc::operation_not_supported,
1870 return llvm::createStringError(std::errc::state_not_recoverable,
1872 "Initialization failed. "
1873 "Unable to flush diagnostics");
1875 @@ -106,7 +122,11 @@ CreateCI(const llvm::opt::ArgStringList
1876 Clang->setTarget(TargetInfo::CreateTargetInfo(
1877 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
1878 if (!Clang->hasTarget())
1879 +#if defined __DragonFly__ || defined __NetBSD__
1880 + return llvm::createStringError(std::errc::operation_not_supported,
1882 return llvm::createStringError(std::errc::state_not_recoverable,
1884 "Initialization failed. "
1885 "Target is missing");