xref: /freebsd/lib/clang/libclang/Makefile (revision 1de7b4b805ddbf2429da511c053686ac4591ed89)
1# $FreeBSD$
2
3.include <src.opts.mk>
4.include "../clang.pre.mk"
5
6LIB=		clang
7
8CFLAGS+=	-I${.OBJDIR}
9CFLAGS+=	-I${OBJTOP}/lib/clang/libllvm
10CFLAGS+=	-I${CLANG_SRCS}/lib/Driver
11
12# Ensure FREEBSD_CC_VERSION is defined for Basic/Targets.cpp
13CFLAGS.Targets.cpp+= -include ../freebsd_cc_version.h
14
15# Work around GCC bug 67888
16.if ${COMPILER_TYPE} == "gcc"
17CXXFLAGS.Module.cpp+= -fpermissive
18.endif
19
20SRCDIR=		tools/clang/lib
21
22SRCS_FUL+=	ARCMigrate/ARCMT.cpp
23SRCS_FUL+=	ARCMigrate/ARCMTActions.cpp
24SRCS_FUL+=	ARCMigrate/FileRemapper.cpp
25SRCS_FUL+=	ARCMigrate/ObjCMT.cpp
26SRCS_FUL+=	ARCMigrate/PlistReporter.cpp
27SRCS_FUL+=	ARCMigrate/TransAPIUses.cpp
28SRCS_FUL+=	ARCMigrate/TransARCAssign.cpp
29SRCS_FUL+=	ARCMigrate/TransAutoreleasePool.cpp
30SRCS_FUL+=	ARCMigrate/TransBlockObjCVariable.cpp
31SRCS_FUL+=	ARCMigrate/TransEmptyStatementsAndDealloc.cpp
32SRCS_FUL+=	ARCMigrate/TransGCAttrs.cpp
33SRCS_FUL+=	ARCMigrate/TransGCCalls.cpp
34SRCS_FUL+=	ARCMigrate/TransProperties.cpp
35SRCS_FUL+=	ARCMigrate/TransProtectedScope.cpp
36SRCS_FUL+=	ARCMigrate/TransRetainReleaseDealloc.cpp
37SRCS_FUL+=	ARCMigrate/TransUnbridgedCasts.cpp
38SRCS_FUL+=	ARCMigrate/TransUnusedInitDelegate.cpp
39SRCS_FUL+=	ARCMigrate/TransZeroOutPropsInDealloc.cpp
40SRCS_FUL+=	ARCMigrate/TransformActions.cpp
41SRCS_FUL+=	ARCMigrate/Transforms.cpp
42SRCS_MIN+=	AST/APValue.cpp
43SRCS_MIN+=	AST/ASTConsumer.cpp
44SRCS_MIN+=	AST/ASTContext.cpp
45SRCS_MIN+=	AST/ASTDiagnostic.cpp
46SRCS_MIN+=	AST/ASTDumper.cpp
47SRCS_MIN+=	AST/ASTImporter.cpp
48SRCS_MIN+=	AST/ASTStructuralEquivalence.cpp
49SRCS_MIN+=	AST/ASTTypeTraits.cpp
50SRCS_MIN+=	AST/AttrImpl.cpp
51SRCS_MIN+=	AST/CXXInheritance.cpp
52SRCS_MIN+=	AST/Comment.cpp
53SRCS_MIN+=	AST/CommentBriefParser.cpp
54SRCS_MIN+=	AST/CommentCommandTraits.cpp
55SRCS_MIN+=	AST/CommentLexer.cpp
56SRCS_MIN+=	AST/CommentParser.cpp
57SRCS_MIN+=	AST/CommentSema.cpp
58SRCS_MIN+=	AST/Decl.cpp
59SRCS_MIN+=	AST/DeclBase.cpp
60SRCS_MIN+=	AST/DeclCXX.cpp
61SRCS_MIN+=	AST/DeclFriend.cpp
62SRCS_MIN+=	AST/DeclGroup.cpp
63SRCS_MIN+=	AST/DeclObjC.cpp
64SRCS_MIN+=	AST/DeclOpenMP.cpp
65SRCS_MIN+=	AST/DeclPrinter.cpp
66SRCS_MIN+=	AST/DeclTemplate.cpp
67SRCS_MIN+=	AST/DeclarationName.cpp
68SRCS_MIN+=	AST/Expr.cpp
69SRCS_MIN+=	AST/ExprCXX.cpp
70SRCS_MIN+=	AST/ExprClassification.cpp
71SRCS_MIN+=	AST/ExprConstant.cpp
72SRCS_MIN+=	AST/ExprObjC.cpp
73SRCS_MIN+=	AST/ExternalASTSource.cpp
74SRCS_MIN+=	AST/InheritViz.cpp
75SRCS_MIN+=	AST/ItaniumCXXABI.cpp
76SRCS_MIN+=	AST/ItaniumMangle.cpp
77SRCS_MIN+=	AST/Mangle.cpp
78SRCS_MIN+=	AST/MicrosoftCXXABI.cpp
79SRCS_MIN+=	AST/MicrosoftMangle.cpp
80SRCS_MIN+=	AST/NSAPI.cpp
81SRCS_MIN+=	AST/NestedNameSpecifier.cpp
82SRCS_MIN+=	AST/ODRHash.cpp
83SRCS_MIN+=	AST/OpenMPClause.cpp
84SRCS_MIN+=	AST/ParentMap.cpp
85SRCS_MIN+=	AST/RawCommentList.cpp
86SRCS_MIN+=	AST/RecordLayout.cpp
87SRCS_MIN+=	AST/RecordLayoutBuilder.cpp
88SRCS_MIN+=	AST/SelectorLocationsKind.cpp
89SRCS_MIN+=	AST/Stmt.cpp
90SRCS_MIN+=	AST/StmtCXX.cpp
91SRCS_MIN+=	AST/StmtIterator.cpp
92SRCS_MIN+=	AST/StmtObjC.cpp
93SRCS_MIN+=	AST/StmtOpenMP.cpp
94SRCS_MIN+=	AST/StmtPrinter.cpp
95SRCS_MIN+=	AST/StmtProfile.cpp
96SRCS_MIN+=	AST/StmtViz.cpp
97SRCS_MIN+=	AST/TemplateBase.cpp
98SRCS_MIN+=	AST/TemplateName.cpp
99SRCS_MIN+=	AST/Type.cpp
100SRCS_MIN+=	AST/TypeLoc.cpp
101SRCS_MIN+=	AST/TypePrinter.cpp
102SRCS_MIN+=	AST/VTTBuilder.cpp
103SRCS_MIN+=	AST/VTableBuilder.cpp
104SRCS_MIN+=	ASTMatchers/ASTMatchFinder.cpp
105SRCS_MIN+=	ASTMatchers/ASTMatchersInternal.cpp
106SRCS_MIN+=	ASTMatchers/Dynamic/Diagnostics.cpp
107SRCS_MIN+=	ASTMatchers/Dynamic/Parser.cpp
108SRCS_MIN+=	ASTMatchers/Dynamic/Registry.cpp
109SRCS_MIN+=	ASTMatchers/Dynamic/VariantValue.cpp
110SRCS_MIN+=	Analysis/AnalysisDeclContext.cpp
111SRCS_MIN+=	Analysis/BodyFarm.cpp
112SRCS_MIN+=	Analysis/CFG.cpp
113SRCS_MIN+=	Analysis/CFGReachabilityAnalysis.cpp
114SRCS_MIN+=	Analysis/CFGStmtMap.cpp
115SRCS_FUL+=	Analysis/CallGraph.cpp
116SRCS_MIN+=	Analysis/CloneDetection.cpp
117SRCS_MIN+=	Analysis/CocoaConventions.cpp
118SRCS_FUL+=	Analysis/CodeInjector.cpp
119SRCS_MIN+=	Analysis/Consumed.cpp
120SRCS_FUL+=	Analysis/Dominators.cpp
121SRCS_MIN+=	Analysis/FormatString.cpp
122SRCS_MIN+=	Analysis/LiveVariables.cpp
123SRCS_MIN+=	Analysis/OSLog.cpp
124SRCS_MIN+=	Analysis/ObjCNoReturn.cpp
125SRCS_MIN+=	Analysis/PostOrderCFGView.cpp
126SRCS_MIN+=	Analysis/PrintfFormatString.cpp
127SRCS_FUL+=	Analysis/ProgramPoint.cpp
128SRCS_MIN+=	Analysis/PseudoConstantAnalysis.cpp
129SRCS_MIN+=	Analysis/ReachableCode.cpp
130SRCS_MIN+=	Analysis/ScanfFormatString.cpp
131SRCS_MIN+=	Analysis/ThreadSafety.cpp
132SRCS_MIN+=	Analysis/ThreadSafetyCommon.cpp
133SRCS_MIN+=	Analysis/ThreadSafetyLogical.cpp
134SRCS_MIN+=	Analysis/ThreadSafetyTIL.cpp
135SRCS_MIN+=	Analysis/UninitializedValues.cpp
136SRCS_MIN+=	Basic/Attributes.cpp
137SRCS_MIN+=	Basic/Builtins.cpp
138SRCS_MIN+=	Basic/CharInfo.cpp
139SRCS_MIN+=	Basic/Cuda.cpp
140SRCS_MIN+=	Basic/Diagnostic.cpp
141SRCS_MIN+=	Basic/DiagnosticIDs.cpp
142SRCS_MIN+=	Basic/DiagnosticOptions.cpp
143SRCS_MIN+=	Basic/FileManager.cpp
144SRCS_MIN+=	Basic/FileSystemStatCache.cpp
145SRCS_MIN+=	Basic/IdentifierTable.cpp
146SRCS_MIN+=	Basic/LangOptions.cpp
147SRCS_MIN+=	Basic/MemoryBufferCache.cpp
148SRCS_MIN+=	Basic/Module.cpp
149SRCS_MIN+=	Basic/ObjCRuntime.cpp
150SRCS_MIN+=	Basic/OpenMPKinds.cpp
151SRCS_MIN+=	Basic/OperatorPrecedence.cpp
152SRCS_MIN+=	Basic/SanitizerBlacklist.cpp
153SRCS_MIN+=	Basic/Sanitizers.cpp
154SRCS_MIN+=	Basic/SourceLocation.cpp
155SRCS_MIN+=	Basic/SourceManager.cpp
156SRCS_MIN+=	Basic/TargetInfo.cpp
157SRCS_MIN+=	Basic/Targets.cpp
158SRCS_MIN+=	Basic/TokenKinds.cpp
159SRCS_MIN+=	Basic/Version.cpp
160SRCS_MIN+=	Basic/VersionTuple.cpp
161SRCS_MIN+=	Basic/VirtualFileSystem.cpp
162SRCS_MIN+=	Basic/Warnings.cpp
163SRCS_MIN+=	Basic/XRayLists.cpp
164SRCS_MIN+=	CodeGen/BackendUtil.cpp
165SRCS_MIN+=	CodeGen/CGAtomic.cpp
166SRCS_MIN+=	CodeGen/CGBlocks.cpp
167SRCS_MIN+=	CodeGen/CGBuiltin.cpp
168SRCS_MIN+=	CodeGen/CGCUDANV.cpp
169SRCS_MIN+=	CodeGen/CGCUDARuntime.cpp
170SRCS_MIN+=	CodeGen/CGCXX.cpp
171SRCS_MIN+=	CodeGen/CGCXXABI.cpp
172SRCS_MIN+=	CodeGen/CGCall.cpp
173SRCS_MIN+=	CodeGen/CGClass.cpp
174SRCS_MIN+=	CodeGen/CGCleanup.cpp
175SRCS_MIN+=	CodeGen/CGCoroutine.cpp
176SRCS_MIN+=	CodeGen/CGDebugInfo.cpp
177SRCS_MIN+=	CodeGen/CGDecl.cpp
178SRCS_MIN+=	CodeGen/CGDeclCXX.cpp
179SRCS_MIN+=	CodeGen/CGException.cpp
180SRCS_MIN+=	CodeGen/CGExpr.cpp
181SRCS_MIN+=	CodeGen/CGExprAgg.cpp
182SRCS_MIN+=	CodeGen/CGExprCXX.cpp
183SRCS_MIN+=	CodeGen/CGExprComplex.cpp
184SRCS_MIN+=	CodeGen/CGExprConstant.cpp
185SRCS_MIN+=	CodeGen/CGExprScalar.cpp
186SRCS_MIN+=	CodeGen/CGGPUBuiltin.cpp
187SRCS_MIN+=	CodeGen/CGLoopInfo.cpp
188SRCS_MIN+=	CodeGen/CGObjC.cpp
189SRCS_MIN+=	CodeGen/CGObjCGNU.cpp
190SRCS_MIN+=	CodeGen/CGObjCMac.cpp
191SRCS_MIN+=	CodeGen/CGObjCRuntime.cpp
192SRCS_MIN+=	CodeGen/CGOpenCLRuntime.cpp
193SRCS_MIN+=	CodeGen/CGOpenMPRuntime.cpp
194SRCS_MIN+=	CodeGen/CGOpenMPRuntimeNVPTX.cpp
195SRCS_MIN+=	CodeGen/CGRecordLayoutBuilder.cpp
196SRCS_MIN+=	CodeGen/CGStmt.cpp
197SRCS_MIN+=	CodeGen/CGStmtOpenMP.cpp
198SRCS_MIN+=	CodeGen/CGVTT.cpp
199SRCS_MIN+=	CodeGen/CGVTables.cpp
200SRCS_MIN+=	CodeGen/CodeGenABITypes.cpp
201SRCS_MIN+=	CodeGen/CodeGenAction.cpp
202SRCS_MIN+=	CodeGen/CodeGenFunction.cpp
203SRCS_MIN+=	CodeGen/CodeGenModule.cpp
204SRCS_MIN+=	CodeGen/CodeGenPGO.cpp
205SRCS_MIN+=	CodeGen/CodeGenTBAA.cpp
206SRCS_MIN+=	CodeGen/CodeGenTypes.cpp
207SRCS_MIN+=	CodeGen/ConstantInitBuilder.cpp
208SRCS_MIN+=	CodeGen/CoverageMappingGen.cpp
209SRCS_MIN+=	CodeGen/ItaniumCXXABI.cpp
210SRCS_MIN+=	CodeGen/MacroPPCallbacks.cpp
211SRCS_MIN+=	CodeGen/MicrosoftCXXABI.cpp
212SRCS_MIN+=	CodeGen/ModuleBuilder.cpp
213SRCS_MIN+=	CodeGen/ObjectFilePCHContainerOperations.cpp
214SRCS_MIN+=	CodeGen/SanitizerMetadata.cpp
215SRCS_MIN+=	CodeGen/SwiftCallingConv.cpp
216SRCS_MIN+=	CodeGen/TargetInfo.cpp
217SRCS_MIN+=	CodeGen/VarBypassDetector.cpp
218SRCS_MIN+=	Driver/Action.cpp
219SRCS_MIN+=	Driver/Compilation.cpp
220SRCS_MIN+=	Driver/Distro.cpp
221SRCS_MIN+=	Driver/Driver.cpp
222SRCS_MIN+=	Driver/DriverOptions.cpp
223SRCS_MIN+=	Driver/Job.cpp
224SRCS_MIN+=	Driver/Multilib.cpp
225SRCS_MIN+=	Driver/Phases.cpp
226SRCS_MIN+=	Driver/SanitizerArgs.cpp
227SRCS_MIN+=	Driver/Tool.cpp
228SRCS_MIN+=	Driver/ToolChain.cpp
229SRCS_MIN+=	Driver/ToolChains/AMDGPU.cpp
230SRCS_MIN+=	Driver/ToolChains/AVR.cpp
231SRCS_MIN+=	Driver/ToolChains/Ananas.cpp
232SRCS_MIN+=	Driver/ToolChains/Arch/AArch64.cpp
233SRCS_MIN+=	Driver/ToolChains/Arch/ARM.cpp
234SRCS_MIN+=	Driver/ToolChains/Arch/Mips.cpp
235SRCS_MIN+=	Driver/ToolChains/Arch/PPC.cpp
236SRCS_MIN+=	Driver/ToolChains/Arch/Sparc.cpp
237SRCS_MIN+=	Driver/ToolChains/Arch/SystemZ.cpp
238SRCS_MIN+=	Driver/ToolChains/Arch/X86.cpp
239SRCS_MIN+=	Driver/ToolChains/BareMetal.cpp
240SRCS_MIN+=	Driver/ToolChains/Bitrig.cpp
241SRCS_MIN+=	Driver/ToolChains/Clang.cpp
242SRCS_MIN+=	Driver/ToolChains/CloudABI.cpp
243SRCS_MIN+=	Driver/ToolChains/CommonArgs.cpp
244SRCS_MIN+=	Driver/ToolChains/Contiki.cpp
245SRCS_MIN+=	Driver/ToolChains/CrossWindows.cpp
246SRCS_MIN+=	Driver/ToolChains/Cuda.cpp
247SRCS_MIN+=	Driver/ToolChains/Darwin.cpp
248SRCS_MIN+=	Driver/ToolChains/DragonFly.cpp
249SRCS_MIN+=	Driver/ToolChains/FreeBSD.cpp
250SRCS_MIN+=	Driver/ToolChains/Fuchsia.cpp
251SRCS_MIN+=	Driver/ToolChains/Gnu.cpp
252SRCS_MIN+=	Driver/ToolChains/Haiku.cpp
253SRCS_MIN+=	Driver/ToolChains/Hexagon.cpp
254SRCS_MIN+=	Driver/ToolChains/Linux.cpp
255SRCS_MIN+=	Driver/ToolChains/MSVC.cpp
256SRCS_MIN+=	Driver/ToolChains/MinGW.cpp
257SRCS_MIN+=	Driver/ToolChains/Minix.cpp
258SRCS_MIN+=	Driver/ToolChains/MipsLinux.cpp
259SRCS_MIN+=	Driver/ToolChains/Myriad.cpp
260SRCS_MIN+=	Driver/ToolChains/NaCl.cpp
261SRCS_MIN+=	Driver/ToolChains/NetBSD.cpp
262SRCS_MIN+=	Driver/ToolChains/OpenBSD.cpp
263SRCS_MIN+=	Driver/ToolChains/PS4CPU.cpp
264SRCS_MIN+=	Driver/ToolChains/Solaris.cpp
265SRCS_MIN+=	Driver/ToolChains/TCE.cpp
266SRCS_MIN+=	Driver/ToolChains/WebAssembly.cpp
267SRCS_MIN+=	Driver/ToolChains/XCore.cpp
268SRCS_MIN+=	Driver/Types.cpp
269SRCS_MIN+=	Driver/XRayArgs.cpp
270SRCS_MIN+=	Edit/Commit.cpp
271SRCS_MIN+=	Edit/EditedSource.cpp
272SRCS_MIN+=	Edit/RewriteObjCFoundationAPI.cpp
273SRCS_EXT+=	Format/AffectedRangeManager.cpp
274SRCS_EXT+=	Format/BreakableToken.cpp
275SRCS_EXT+=	Format/ContinuationIndenter.cpp
276SRCS_EXT+=	Format/Format.cpp
277SRCS_EXT+=	Format/FormatToken.cpp
278SRCS_EXT+=	Format/FormatTokenLexer.cpp
279SRCS_EXT+=	Format/NamespaceEndCommentsFixer.cpp
280SRCS_EXT+=	Format/SortJavaScriptImports.cpp
281SRCS_EXT+=	Format/TokenAnalyzer.cpp
282SRCS_EXT+=	Format/TokenAnnotator.cpp
283SRCS_EXT+=	Format/UnwrappedLineFormatter.cpp
284SRCS_EXT+=	Format/UnwrappedLineParser.cpp
285SRCS_EXT+=	Format/UsingDeclarationsSorter.cpp
286SRCS_EXT+=	Format/WhitespaceManager.cpp
287SRCS_MIN+=	Frontend/ASTConsumers.cpp
288SRCS_MIN+=	Frontend/ASTMerge.cpp
289SRCS_MIN+=	Frontend/ASTUnit.cpp
290SRCS_MIN+=	Frontend/CacheTokens.cpp
291SRCS_MIN+=	Frontend/ChainedDiagnosticConsumer.cpp
292SRCS_MIN+=	Frontend/ChainedIncludesSource.cpp
293SRCS_MIN+=	Frontend/CodeGenOptions.cpp
294SRCS_MIN+=	Frontend/CompilerInstance.cpp
295SRCS_MIN+=	Frontend/CompilerInvocation.cpp
296SRCS_MIN+=	Frontend/CreateInvocationFromCommandLine.cpp
297SRCS_MIN+=	Frontend/DependencyFile.cpp
298SRCS_MIN+=	Frontend/DependencyGraph.cpp
299SRCS_MIN+=	Frontend/DiagnosticRenderer.cpp
300SRCS_MIN+=	Frontend/FrontendAction.cpp
301SRCS_MIN+=	Frontend/FrontendActions.cpp
302SRCS_MIN+=	Frontend/FrontendOptions.cpp
303SRCS_MIN+=	Frontend/HeaderIncludeGen.cpp
304SRCS_MIN+=	Frontend/InitHeaderSearch.cpp
305SRCS_MIN+=	Frontend/InitPreprocessor.cpp
306SRCS_MIN+=	Frontend/LangStandards.cpp
307SRCS_MIN+=	Frontend/LayoutOverrideSource.cpp
308SRCS_MIN+=	Frontend/LogDiagnosticPrinter.cpp
309SRCS_MIN+=	Frontend/ModuleDependencyCollector.cpp
310SRCS_MIN+=	Frontend/MultiplexConsumer.cpp
311SRCS_MIN+=	Frontend/PCHContainerOperations.cpp
312SRCS_MIN+=	Frontend/PrecompiledPreamble.cpp
313SRCS_MIN+=	Frontend/PrintPreprocessedOutput.cpp
314SRCS_MIN+=	Frontend/Rewrite/FixItRewriter.cpp
315SRCS_MIN+=	Frontend/Rewrite/FrontendActions.cpp
316SRCS_MIN+=	Frontend/Rewrite/HTMLPrint.cpp
317SRCS_MIN+=	Frontend/Rewrite/InclusionRewriter.cpp
318SRCS_MIN+=	Frontend/Rewrite/RewriteMacros.cpp
319SRCS_MIN+=	Frontend/Rewrite/RewriteModernObjC.cpp
320SRCS_MIN+=	Frontend/Rewrite/RewriteObjC.cpp
321SRCS_MIN+=	Frontend/Rewrite/RewriteTest.cpp
322SRCS_MIN+=	Frontend/SerializedDiagnosticPrinter.cpp
323SRCS_MIN+=	Frontend/SerializedDiagnosticReader.cpp
324SRCS_MIN+=	Frontend/TestModuleFileExtension.cpp
325SRCS_MIN+=	Frontend/TextDiagnostic.cpp
326SRCS_MIN+=	Frontend/TextDiagnosticBuffer.cpp
327SRCS_MIN+=	Frontend/TextDiagnosticPrinter.cpp
328SRCS_MIN+=	Frontend/VerifyDiagnosticConsumer.cpp
329SRCS_MIN+=	FrontendTool/ExecuteCompilerInvocation.cpp
330SRCS_MIN+=	Index/CodegenNameGenerator.cpp
331SRCS_MIN+=	Index/CommentToXML.cpp
332SRCS_MIN+=	Index/IndexBody.cpp
333SRCS_MIN+=	Index/IndexDecl.cpp
334SRCS_MIN+=	Index/IndexSymbol.cpp
335SRCS_MIN+=	Index/IndexTypeSourceInfo.cpp
336SRCS_MIN+=	Index/IndexingAction.cpp
337SRCS_MIN+=	Index/IndexingContext.cpp
338SRCS_MIN+=	Index/USRGeneration.cpp
339SRCS_MIN+=	Lex/HeaderMap.cpp
340SRCS_MIN+=	Lex/HeaderSearch.cpp
341SRCS_MIN+=	Lex/Lexer.cpp
342SRCS_MIN+=	Lex/LiteralSupport.cpp
343SRCS_MIN+=	Lex/MacroArgs.cpp
344SRCS_MIN+=	Lex/MacroInfo.cpp
345SRCS_MIN+=	Lex/ModuleMap.cpp
346SRCS_MIN+=	Lex/PPCaching.cpp
347SRCS_MIN+=	Lex/PPCallbacks.cpp
348SRCS_MIN+=	Lex/PPConditionalDirectiveRecord.cpp
349SRCS_MIN+=	Lex/PPDirectives.cpp
350SRCS_MIN+=	Lex/PPExpressions.cpp
351SRCS_MIN+=	Lex/PPLexerChange.cpp
352SRCS_MIN+=	Lex/PPMacroExpansion.cpp
353SRCS_MIN+=	Lex/PTHLexer.cpp
354SRCS_MIN+=	Lex/Pragma.cpp
355SRCS_MIN+=	Lex/PreprocessingRecord.cpp
356SRCS_MIN+=	Lex/Preprocessor.cpp
357SRCS_MIN+=	Lex/PreprocessorLexer.cpp
358SRCS_MIN+=	Lex/ScratchBuffer.cpp
359SRCS_MIN+=	Lex/TokenConcatenation.cpp
360SRCS_MIN+=	Lex/TokenLexer.cpp
361SRCS_MIN+=	Parse/ParseAST.cpp
362SRCS_MIN+=	Parse/ParseCXXInlineMethods.cpp
363SRCS_MIN+=	Parse/ParseDecl.cpp
364SRCS_MIN+=	Parse/ParseDeclCXX.cpp
365SRCS_MIN+=	Parse/ParseExpr.cpp
366SRCS_MIN+=	Parse/ParseExprCXX.cpp
367SRCS_MIN+=	Parse/ParseInit.cpp
368SRCS_MIN+=	Parse/ParseObjc.cpp
369SRCS_MIN+=	Parse/ParseOpenMP.cpp
370SRCS_MIN+=	Parse/ParsePragma.cpp
371SRCS_MIN+=	Parse/ParseStmt.cpp
372SRCS_MIN+=	Parse/ParseStmtAsm.cpp
373SRCS_MIN+=	Parse/ParseTemplate.cpp
374SRCS_MIN+=	Parse/ParseTentative.cpp
375SRCS_MIN+=	Parse/Parser.cpp
376SRCS_MIN+=	Rewrite/DeltaTree.cpp
377SRCS_MIN+=	Rewrite/HTMLRewrite.cpp
378SRCS_MIN+=	Rewrite/RewriteRope.cpp
379SRCS_MIN+=	Rewrite/Rewriter.cpp
380SRCS_MIN+=	Rewrite/TokenRewriter.cpp
381SRCS_MIN+=	Sema/AnalysisBasedWarnings.cpp
382SRCS_MIN+=	Sema/AttributeList.cpp
383SRCS_MIN+=	Sema/CodeCompleteConsumer.cpp
384SRCS_MIN+=	Sema/DeclSpec.cpp
385SRCS_MIN+=	Sema/DelayedDiagnostic.cpp
386SRCS_MIN+=	Sema/IdentifierResolver.cpp
387SRCS_MIN+=	Sema/JumpDiagnostics.cpp
388SRCS_MIN+=	Sema/MultiplexExternalSemaSource.cpp
389SRCS_MIN+=	Sema/Scope.cpp
390SRCS_MIN+=	Sema/ScopeInfo.cpp
391SRCS_MIN+=	Sema/Sema.cpp
392SRCS_MIN+=	Sema/SemaAccess.cpp
393SRCS_MIN+=	Sema/SemaAttr.cpp
394SRCS_MIN+=	Sema/SemaCUDA.cpp
395SRCS_MIN+=	Sema/SemaCXXScopeSpec.cpp
396SRCS_MIN+=	Sema/SemaCast.cpp
397SRCS_MIN+=	Sema/SemaChecking.cpp
398SRCS_MIN+=	Sema/SemaCodeComplete.cpp
399SRCS_MIN+=	Sema/SemaConsumer.cpp
400SRCS_MIN+=	Sema/SemaCoroutine.cpp
401SRCS_MIN+=	Sema/SemaDecl.cpp
402SRCS_MIN+=	Sema/SemaDeclAttr.cpp
403SRCS_MIN+=	Sema/SemaDeclCXX.cpp
404SRCS_MIN+=	Sema/SemaDeclObjC.cpp
405SRCS_MIN+=	Sema/SemaExceptionSpec.cpp
406SRCS_MIN+=	Sema/SemaExpr.cpp
407SRCS_MIN+=	Sema/SemaExprCXX.cpp
408SRCS_MIN+=	Sema/SemaExprMember.cpp
409SRCS_MIN+=	Sema/SemaExprObjC.cpp
410SRCS_MIN+=	Sema/SemaFixItUtils.cpp
411SRCS_MIN+=	Sema/SemaInit.cpp
412SRCS_MIN+=	Sema/SemaLambda.cpp
413SRCS_MIN+=	Sema/SemaLookup.cpp
414SRCS_MIN+=	Sema/SemaObjCProperty.cpp
415SRCS_MIN+=	Sema/SemaOpenMP.cpp
416SRCS_MIN+=	Sema/SemaOverload.cpp
417SRCS_MIN+=	Sema/SemaPseudoObject.cpp
418SRCS_MIN+=	Sema/SemaStmt.cpp
419SRCS_MIN+=	Sema/SemaStmtAsm.cpp
420SRCS_MIN+=	Sema/SemaStmtAttr.cpp
421SRCS_MIN+=	Sema/SemaTemplate.cpp
422SRCS_MIN+=	Sema/SemaTemplateDeduction.cpp
423SRCS_MIN+=	Sema/SemaTemplateInstantiate.cpp
424SRCS_MIN+=	Sema/SemaTemplateInstantiateDecl.cpp
425SRCS_MIN+=	Sema/SemaTemplateVariadic.cpp
426SRCS_MIN+=	Sema/SemaType.cpp
427SRCS_MIN+=	Sema/TypeLocBuilder.cpp
428SRCS_MIN+=	Serialization/ASTCommon.cpp
429SRCS_MIN+=	Serialization/ASTReader.cpp
430SRCS_MIN+=	Serialization/ASTReaderDecl.cpp
431SRCS_MIN+=	Serialization/ASTReaderStmt.cpp
432SRCS_MIN+=	Serialization/ASTWriter.cpp
433SRCS_MIN+=	Serialization/ASTWriterDecl.cpp
434SRCS_MIN+=	Serialization/ASTWriterStmt.cpp
435SRCS_MIN+=	Serialization/GeneratePCH.cpp
436SRCS_MIN+=	Serialization/GlobalModuleIndex.cpp
437SRCS_MIN+=	Serialization/Module.cpp
438SRCS_MIN+=	Serialization/ModuleFileExtension.cpp
439SRCS_MIN+=	Serialization/ModuleManager.cpp
440SRCS_FUL+=	StaticAnalyzer/Checkers/AllocationDiagnostics.cpp
441SRCS_FUL+=	StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
442SRCS_FUL+=	StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
443SRCS_FUL+=	StaticAnalyzer/Checkers/ArrayBoundChecker.cpp
444SRCS_FUL+=	StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
445SRCS_FUL+=	StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
446SRCS_FUL+=	StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
447SRCS_FUL+=	StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp
448SRCS_FUL+=	StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
449SRCS_FUL+=	StaticAnalyzer/Checkers/CStringChecker.cpp
450SRCS_FUL+=	StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
451SRCS_FUL+=	StaticAnalyzer/Checkers/CXXSelfAssignmentChecker.cpp
452SRCS_FUL+=	StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
453SRCS_FUL+=	StaticAnalyzer/Checkers/CastSizeChecker.cpp
454SRCS_FUL+=	StaticAnalyzer/Checkers/CastToStructChecker.cpp
455SRCS_FUL+=	StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
456SRCS_FUL+=	StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp
457SRCS_FUL+=	StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
458SRCS_FUL+=	StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
459SRCS_FUL+=	StaticAnalyzer/Checkers/ChrootChecker.cpp
460SRCS_FUL+=	StaticAnalyzer/Checkers/ClangCheckers.cpp
461SRCS_FUL+=	StaticAnalyzer/Checkers/CloneChecker.cpp
462SRCS_FUL+=	StaticAnalyzer/Checkers/ConversionChecker.cpp
463SRCS_FUL+=	StaticAnalyzer/Checkers/DeadStoresChecker.cpp
464SRCS_FUL+=	StaticAnalyzer/Checkers/DebugCheckers.cpp
465SRCS_FUL+=	StaticAnalyzer/Checkers/DereferenceChecker.cpp
466SRCS_FUL+=	StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
467SRCS_FUL+=	StaticAnalyzer/Checkers/DivZeroChecker.cpp
468SRCS_FUL+=	StaticAnalyzer/Checkers/DynamicTypeChecker.cpp
469SRCS_FUL+=	StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
470SRCS_FUL+=	StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
471SRCS_FUL+=	StaticAnalyzer/Checkers/FixedAddressChecker.cpp
472SRCS_FUL+=	StaticAnalyzer/Checkers/GTestChecker.cpp
473SRCS_FUL+=	StaticAnalyzer/Checkers/GenericTaintChecker.cpp
474SRCS_FUL+=	StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
475SRCS_FUL+=	StaticAnalyzer/Checkers/IteratorChecker.cpp
476SRCS_FUL+=	StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
477SRCS_FUL+=	StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
478SRCS_FUL+=	StaticAnalyzer/Checkers/LocalizationChecker.cpp
479SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.cpp
480SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp
481SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.cpp
482SRCS_FUL+=	StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
483SRCS_FUL+=	StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
484SRCS_FUL+=	StaticAnalyzer/Checkers/MallocChecker.cpp
485SRCS_FUL+=	StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
486SRCS_FUL+=	StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
487SRCS_FUL+=	StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp
488SRCS_FUL+=	StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp
489SRCS_FUL+=	StaticAnalyzer/Checkers/NSErrorChecker.cpp
490SRCS_FUL+=	StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
491SRCS_FUL+=	StaticAnalyzer/Checkers/NonNullParamChecker.cpp
492SRCS_FUL+=	StaticAnalyzer/Checkers/NullabilityChecker.cpp
493SRCS_FUL+=	StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
494SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp
495SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp
496SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCContainersChecker.cpp
497SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp
498SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCPropertyChecker.cpp
499SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
500SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
501SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp
502SRCS_FUL+=	StaticAnalyzer/Checkers/PaddingChecker.cpp
503SRCS_FUL+=	StaticAnalyzer/Checkers/PointerArithChecker.cpp
504SRCS_FUL+=	StaticAnalyzer/Checkers/PointerSubChecker.cpp
505SRCS_FUL+=	StaticAnalyzer/Checkers/PthreadLockChecker.cpp
506SRCS_FUL+=	StaticAnalyzer/Checkers/RetainCountChecker.cpp
507SRCS_FUL+=	StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp
508SRCS_FUL+=	StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
509SRCS_FUL+=	StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
510SRCS_FUL+=	StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
511SRCS_FUL+=	StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
512SRCS_FUL+=	StaticAnalyzer/Checkers/StreamChecker.cpp
513SRCS_FUL+=	StaticAnalyzer/Checkers/TaintTesterChecker.cpp
514SRCS_FUL+=	StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
515SRCS_FUL+=	StaticAnalyzer/Checkers/TraversalChecker.cpp
516SRCS_FUL+=	StaticAnalyzer/Checkers/UndefBranchChecker.cpp
517SRCS_FUL+=	StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp
518SRCS_FUL+=	StaticAnalyzer/Checkers/UndefResultChecker.cpp
519SRCS_FUL+=	StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
520SRCS_FUL+=	StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
521SRCS_FUL+=	StaticAnalyzer/Checkers/UnixAPIChecker.cpp
522SRCS_FUL+=	StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
523SRCS_FUL+=	StaticAnalyzer/Checkers/VLASizeChecker.cpp
524SRCS_FUL+=	StaticAnalyzer/Checkers/ValistChecker.cpp
525SRCS_FUL+=	StaticAnalyzer/Checkers/VforkChecker.cpp
526SRCS_FUL+=	StaticAnalyzer/Checkers/VirtualCallChecker.cpp
527SRCS_FUL+=	StaticAnalyzer/Core/APSIntType.cpp
528SRCS_FUL+=	StaticAnalyzer/Core/AnalysisManager.cpp
529SRCS_FUL+=	StaticAnalyzer/Core/AnalyzerOptions.cpp
530SRCS_FUL+=	StaticAnalyzer/Core/BasicValueFactory.cpp
531SRCS_FUL+=	StaticAnalyzer/Core/BlockCounter.cpp
532SRCS_FUL+=	StaticAnalyzer/Core/BugReporter.cpp
533SRCS_FUL+=	StaticAnalyzer/Core/BugReporterVisitors.cpp
534SRCS_FUL+=	StaticAnalyzer/Core/CallEvent.cpp
535SRCS_FUL+=	StaticAnalyzer/Core/Checker.cpp
536SRCS_FUL+=	StaticAnalyzer/Core/CheckerContext.cpp
537SRCS_FUL+=	StaticAnalyzer/Core/CheckerHelpers.cpp
538SRCS_FUL+=	StaticAnalyzer/Core/CheckerManager.cpp
539SRCS_FUL+=	StaticAnalyzer/Core/CheckerRegistry.cpp
540SRCS_FUL+=	StaticAnalyzer/Core/CommonBugCategories.cpp
541SRCS_FUL+=	StaticAnalyzer/Core/ConstraintManager.cpp
542SRCS_FUL+=	StaticAnalyzer/Core/CoreEngine.cpp
543SRCS_FUL+=	StaticAnalyzer/Core/DynamicTypeMap.cpp
544SRCS_FUL+=	StaticAnalyzer/Core/Environment.cpp
545SRCS_FUL+=	StaticAnalyzer/Core/ExplodedGraph.cpp
546SRCS_FUL+=	StaticAnalyzer/Core/ExprEngine.cpp
547SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineC.cpp
548SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineCXX.cpp
549SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
550SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineObjC.cpp
551SRCS_FUL+=	StaticAnalyzer/Core/FunctionSummary.cpp
552SRCS_FUL+=	StaticAnalyzer/Core/HTMLDiagnostics.cpp
553SRCS_FUL+=	StaticAnalyzer/Core/IssueHash.cpp
554SRCS_FUL+=	StaticAnalyzer/Core/LoopWidening.cpp
555SRCS_FUL+=	StaticAnalyzer/Core/MemRegion.cpp
556SRCS_FUL+=	StaticAnalyzer/Core/PathDiagnostic.cpp
557SRCS_FUL+=	StaticAnalyzer/Core/PlistDiagnostics.cpp
558SRCS_FUL+=	StaticAnalyzer/Core/ProgramState.cpp
559SRCS_FUL+=	StaticAnalyzer/Core/RangeConstraintManager.cpp
560SRCS_FUL+=	StaticAnalyzer/Core/RangedConstraintManager.cpp
561SRCS_FUL+=	StaticAnalyzer/Core/RegionStore.cpp
562SRCS_FUL+=	StaticAnalyzer/Core/SValBuilder.cpp
563SRCS_FUL+=	StaticAnalyzer/Core/SVals.cpp
564SRCS_FUL+=	StaticAnalyzer/Core/SimpleConstraintManager.cpp
565SRCS_FUL+=	StaticAnalyzer/Core/SimpleSValBuilder.cpp
566SRCS_FUL+=	StaticAnalyzer/Core/Store.cpp
567SRCS_FUL+=	StaticAnalyzer/Core/SubEngine.cpp
568SRCS_FUL+=	StaticAnalyzer/Core/SymbolManager.cpp
569SRCS_FUL+=	StaticAnalyzer/Core/Z3ConstraintManager.cpp
570SRCS_FUL+=	StaticAnalyzer/Frontend/AnalysisConsumer.cpp
571SRCS_FUL+=	StaticAnalyzer/Frontend/CheckerRegistration.cpp
572SRCS_FUL+=	StaticAnalyzer/Frontend/FrontendActions.cpp
573SRCS_FUL+=	StaticAnalyzer/Frontend/ModelConsumer.cpp
574SRCS_FUL+=	StaticAnalyzer/Frontend/ModelInjector.cpp
575SRCS_MIN+=	Tooling/ArgumentsAdjusters.cpp
576SRCS_MIN+=	Tooling/CommonOptionsParser.cpp
577SRCS_MIN+=	Tooling/CompilationDatabase.cpp
578SRCS_MIN+=	Tooling/Core/Lookup.cpp
579SRCS_EXT+=	Tooling/Core/QualTypeNames.cpp
580SRCS_EXT+=	Tooling/Core/Replacement.cpp
581SRCS_MIN+=	Tooling/FileMatchTrie.cpp
582SRCS_MIN+=	Tooling/FixIt.cpp
583SRCS_MIN+=	Tooling/JSONCompilationDatabase.cpp
584SRCS_MIN+=	Tooling/Refactoring.cpp
585SRCS_MIN+=	Tooling/RefactoringCallbacks.cpp
586SRCS_MIN+=	Tooling/Tooling.cpp
587
588SRCS_ALL+=	${SRCS_MIN}
589.if ${MK_CLANG_EXTRAS} != "no"
590SRCS_ALL+=	${SRCS_EXT}
591.endif
592.if ${MK_CLANG_FULL} != "no"
593SRCS_ALL+=	${SRCS_FUL}
594.endif
595SRCS+=		${SRCS_ALL:O}
596
597clang/AST/AttrDump.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
598	${CLANG_TBLGEN} -gen-clang-attr-dump \
599	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
600	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
601TGHDRS+=	clang/AST/AttrDump.inc
602
603clang/AST/AttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
604	${CLANG_TBLGEN} -gen-clang-attr-impl \
605	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
606	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
607TGHDRS+=	clang/AST/AttrImpl.inc
608
609clang/AST/AttrVisitor.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
610	${CLANG_TBLGEN} -gen-clang-attr-ast-visitor \
611	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
612	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
613TGHDRS+=	clang/AST/AttrVisitor.inc
614
615clang/AST/Attrs.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
616	${CLANG_TBLGEN} -gen-clang-attr-classes \
617	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
618	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
619TGHDRS+=	clang/AST/Attrs.inc
620
621clang/AST/CommentCommandInfo.inc: \
622	${CLANG_SRCS}/include/clang/AST/CommentCommands.td
623	${CLANG_TBLGEN} -gen-clang-comment-command-info \
624	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
625	    ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
626TGHDRS+=	clang/AST/CommentCommandInfo.inc
627
628clang/AST/CommentCommandList.inc: \
629	${CLANG_SRCS}/include/clang/AST/CommentCommands.td
630	${CLANG_TBLGEN} -gen-clang-comment-command-list \
631	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
632	    ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
633TGHDRS+=	clang/AST/CommentCommandList.inc
634
635clang/AST/CommentHTMLNamedCharacterReferences.inc: \
636	${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td
637	${CLANG_TBLGEN} -gen-clang-comment-html-named-character-references \
638	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
639	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td
640TGHDRS+=	clang/AST/CommentHTMLNamedCharacterReferences.inc
641
642clang/AST/CommentHTMLTags.inc: \
643	${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
644	${CLANG_TBLGEN} -gen-clang-comment-html-tags \
645	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
646	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
647TGHDRS+=	clang/AST/CommentHTMLTags.inc
648
649clang/AST/CommentHTMLTagsProperties.inc: \
650	${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
651	${CLANG_TBLGEN} -gen-clang-comment-html-tags-properties \
652	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
653	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
654TGHDRS+=	clang/AST/CommentHTMLTagsProperties.inc
655
656clang/AST/CommentNodes.inc: ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
657	${CLANG_TBLGEN} -gen-clang-comment-nodes \
658	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
659	    ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
660TGHDRS+=	clang/AST/CommentNodes.inc
661
662clang/AST/DeclNodes.inc: ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
663	${CLANG_TBLGEN} -gen-clang-decl-nodes \
664	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
665	    ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
666TGHDRS+=	clang/AST/DeclNodes.inc
667
668clang/AST/StmtNodes.inc: ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
669	${CLANG_TBLGEN} -gen-clang-stmt-nodes \
670	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
671	    ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
672TGHDRS+=	clang/AST/StmtNodes.inc
673
674clang/Basic/AttrHasAttributeImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
675	${CLANG_TBLGEN} -gen-clang-attr-has-attribute-impl \
676	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
677	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
678TGHDRS+=	clang/Basic/AttrHasAttributeImpl.inc
679
680clang/Basic/AttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
681	${CLANG_TBLGEN} -gen-clang-attr-list \
682	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
683	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
684TGHDRS+=	clang/Basic/AttrList.inc
685
686clang/Basic/AttrSubMatchRulesList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
687	${CLANG_TBLGEN} -gen-clang-attr-subject-match-rule-list \
688	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
689	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
690TGHDRS+=	clang/Basic/AttrSubMatchRulesList.inc
691
692.for hdr in \
693	AST Analysis Comment Common Driver Frontend Lex Parse Sema Serialization
694clang/Basic/Diagnostic${hdr}Kinds.inc: \
695	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
696	${CLANG_TBLGEN} -gen-clang-diags-defs -clang-component=${hdr} \
697	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
698	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
699TGHDRS+=	clang/Basic/Diagnostic${hdr}Kinds.inc
700.endfor
701
702clang/Basic/DiagnosticGroups.inc: \
703	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
704	${CLANG_TBLGEN} -gen-clang-diag-groups \
705	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
706	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
707TGHDRS+=	clang/Basic/DiagnosticGroups.inc
708
709clang/Basic/DiagnosticIndexName.inc: \
710	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
711	${CLANG_TBLGEN} -gen-clang-diags-index-name \
712	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
713	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
714TGHDRS+=	clang/Basic/DiagnosticIndexName.inc
715
716clang/Basic/arm_neon.inc: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
717	${CLANG_TBLGEN} -gen-arm-neon-sema \
718	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
719	    ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
720TGHDRS+=	clang/Basic/arm_neon.inc
721
722clang/Driver/Options.inc: ${CLANG_SRCS}/include/clang/Driver/Options.td
723	${LLVM_TBLGEN} -gen-opt-parser-defs \
724	    -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \
725	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
726	    ${CLANG_SRCS}/include/clang/Driver/Options.td
727TGHDRS+=	clang/Driver/Options.inc
728
729clang/Parse/AttrParserStringSwitches.inc: \
730	${CLANG_SRCS}/include/clang/Basic/Attr.td
731	${CLANG_TBLGEN} -gen-clang-attr-parser-string-switches \
732	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
733	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
734TGHDRS+=	clang/Parse/AttrParserStringSwitches.inc
735
736clang/Parse/AttrSubMatchRulesParserStringSwitches.inc: \
737	${CLANG_SRCS}/include/clang/Basic/Attr.td
738	${CLANG_TBLGEN} -gen-clang-attr-subject-match-rules-parser-string-switches \
739	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
740	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
741TGHDRS+=	clang/Parse/AttrSubMatchRulesParserStringSwitches.inc
742
743clang/Sema/AttrParsedAttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
744	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-impl \
745	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
746	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
747TGHDRS+=	clang/Sema/AttrParsedAttrImpl.inc
748
749clang/Sema/AttrParsedAttrKinds.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
750	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-kinds \
751	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
752	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
753TGHDRS+=	clang/Sema/AttrParsedAttrKinds.inc
754
755clang/Sema/AttrParsedAttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
756	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-list \
757	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
758	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
759TGHDRS+=	clang/Sema/AttrParsedAttrList.inc
760
761clang/Sema/AttrSpellingListIndex.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
762	${CLANG_TBLGEN} -gen-clang-attr-spelling-index \
763	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
764	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
765TGHDRS+=	clang/Sema/AttrSpellingListIndex.inc
766
767clang/Sema/AttrTemplateInstantiate.inc: \
768	${CLANG_SRCS}/include/clang/Basic/Attr.td
769	${CLANG_TBLGEN} -gen-clang-attr-template-instantiate \
770	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
771	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
772TGHDRS+=	clang/Sema/AttrTemplateInstantiate.inc
773
774clang/Serialization/AttrPCHRead.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
775	${CLANG_TBLGEN} -gen-clang-attr-pch-read \
776	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
777	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
778TGHDRS+=	clang/Serialization/AttrPCHRead.inc
779
780clang/Serialization/AttrPCHWrite.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
781	${CLANG_TBLGEN} -gen-clang-attr-pch-write \
782	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
783	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
784TGHDRS+=	clang/Serialization/AttrPCHWrite.inc
785
786clang/StaticAnalyzer/Checkers/Checkers.inc: \
787	${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
788	${CLANG_TBLGEN} -gen-clang-sa-checkers \
789	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
790	    ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
791TGHDRS+=	clang/StaticAnalyzer/Checkers/Checkers.inc
792
793DEPENDFILES+=	${TGHDRS:C/$/.d/}
794DPSRCS+=	${TGHDRS}
795CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
796
797.include "../clang.build.mk"
798
799INTERNALLIB=
800
801.include <bsd.lib.mk>
802