clang API Documentation

DependencyOutputOptions.h
Go to the documentation of this file.
00001 //===--- DependencyOutputOptions.h ------------------------------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #ifndef LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
00011 #define LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H
00012 
00013 #include <string>
00014 #include <vector>
00015 
00016 namespace clang {
00017 
00018 /// DependencyOutputOptions - Options for controlling the compiler dependency
00019 /// file generation.
00020 class DependencyOutputOptions {
00021 public:
00022   unsigned IncludeSystemHeaders : 1; ///< Include system header dependencies.
00023   unsigned ShowHeaderIncludes : 1;   ///< Show header inclusions (-H).
00024   unsigned UsePhonyTargets : 1;      ///< Include phony targets for each
00025                                      /// dependency, which can avoid some 'make'
00026                                      /// problems.
00027   unsigned AddMissingHeaderDeps : 1; ///< Add missing headers to dependency list
00028   
00029   /// The file to write dependency output to.
00030   std::string OutputFile;
00031 
00032   /// The file to write header include output to. This is orthogonal to
00033   /// ShowHeaderIncludes (-H) and will include headers mentioned in the
00034   /// predefines buffer. If the output file is "-", output will be sent to
00035   /// stderr.
00036   std::string HeaderIncludeOutputFile;
00037 
00038   /// A list of names to use as the targets in the dependency file; this list
00039   /// must contain at least one entry.
00040   std::vector<std::string> Targets;
00041 
00042   /// \brief The file to write GraphViz-formatted header dependencies to.
00043   std::string DOTOutputFile;
00044   
00045 public:
00046   DependencyOutputOptions() {
00047     IncludeSystemHeaders = 0;
00048     ShowHeaderIncludes = 0;
00049     UsePhonyTargets = 0;
00050     AddMissingHeaderDeps = 0;
00051   }
00052 };
00053 
00054 }  // end namespace clang
00055 
00056 #endif