summaryrefslogtreecommitdiffstats
path: root/include/clang/Driver/Tool.h
blob: 28db0642585a0d69610af4f3bdc4fb2d7d5d1148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===--- Tool.h - Compilation Tools -----------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef CLANG_DRIVER_TOOL_H_
#define CLANG_DRIVER_TOOL_H_

namespace clang {
namespace driver {
  class ToolChain;
  
/// Tool - Information on a specific compilation tool.
class Tool {
  const ToolChain &TheToolChain;

public:
  Tool(const ToolChain &TC);

public:
  virtual ~Tool();

  const ToolChain &getToolChain() const { return TheToolChain; }

  virtual bool acceptsPipedInput() const = 0;
  virtual bool canPipeOutput() const = 0;
  virtual bool hasIntegratedCPP() const = 0;
};

} // end namespace driver
} // end namespace clang

#endif