Options.h revision 19caff4f9a38c23bffdc8ff801a36026ab61ebd7
1//===--- Options.h - Option info & table ------------------------*- 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 CLANG_DRIVER_OPTIONS_H
11#define CLANG_DRIVER_OPTIONS_H
12
13namespace llvm {
14namespace opt {
15class OptTable;
16}
17}
18
19namespace clang {
20namespace driver {
21
22namespace options {
23/// Flags specifically for clang options.  Must not overlap with
24/// llvm::opt::DriverFlag.
25enum ClangFlags {
26  DriverOption = (1 << 4),
27  LinkerInput = (1 << 5),
28  NoArgumentUnused = (1 << 6),
29  Unsupported = (1 << 7),
30  CC1Option = (1 << 8),
31  NoDriverOption = (1 << 9)
32};
33
34enum ID {
35    OPT_INVALID = 0, // This is not an option ID.
36#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, FLAGS, PARAM, \
37               HELPTEXT, METAVAR) OPT_##ID,
38#include "clang/Driver/Options.inc"
39    LastOption
40#undef OPTION
41  };
42}
43
44llvm::opt::OptTable *createDriverOptTable();
45}
46}
47
48#endif
49