1 //===--- DependencyOutputOptions.h ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
11 #define LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
18 /// DependencyOutputOptions - Options for controlling the compiler dependency
20 class DependencyOutputOptions {
22 unsigned IncludeSystemHeaders : 1; ///< Include system header dependencies.
23 unsigned ShowHeaderIncludes : 1; ///< Show header inclusions (-H).
24 unsigned UsePhonyTargets : 1; ///< Include phony targets for each
25 /// dependency, which can avoid some 'make'
27 unsigned AddMissingHeaderDeps : 1; ///< Add missing headers to dependency list
28 unsigned PrintShowIncludes : 1; ///< Print cl.exe style /showIncludes info.
30 /// The file to write dependency output to.
31 std::string OutputFile;
33 /// The file to write header include output to. This is orthogonal to
34 /// ShowHeaderIncludes (-H) and will include headers mentioned in the
35 /// predefines buffer. If the output file is "-", output will be sent to
37 std::string HeaderIncludeOutputFile;
39 /// A list of names to use as the targets in the dependency file; this list
40 /// must contain at least one entry.
41 std::vector<std::string> Targets;
43 /// \brief The file to write GraphViz-formatted header dependencies to.
44 std::string DOTOutputFile;
47 DependencyOutputOptions() {
48 IncludeSystemHeaders = 0;
49 ShowHeaderIncludes = 0;
51 AddMissingHeaderDeps = 0;
52 PrintShowIncludes = 0;
56 } // end namespace clang