]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/clang/Frontend/DependencyOutputOptions.h
Update clang to r96341.
[FreeBSD/FreeBSD.git] / include / clang / Frontend / DependencyOutputOptions.h
1 //===--- DependencyOutputOptions.h ------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
11 #define LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
12
13 #include <string>
14 #include <vector>
15
16 namespace clang {
17
18 /// DependencyOutputOptions - Options for controlling the compiler dependency
19 /// file generation.
20 class DependencyOutputOptions {
21 public:
22   unsigned IncludeSystemHeaders : 1; ///< Include system header dependencies.
23   unsigned UsePhonyTargets : 1;      ///< Include phony targets for each
24                                      /// dependency, which can avoid some 'make'
25                                      /// problems.
26
27   /// The file to write depencency output to.
28   std::string OutputFile;
29
30   /// A list of names to use as the targets in the dependency file; this list
31   /// must contain at least one entry.
32   std::vector<std::string> Targets;
33
34 public:
35   DependencyOutputOptions() {
36     IncludeSystemHeaders = 0;
37     UsePhonyTargets = 0;
38   }
39 };
40
41 }  // end namespace clang
42
43 #endif