clang 8.0.0

Options.h
Go to the documentation of this file.
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 LLVM_CLANG_DRIVER_OPTIONS_H
11 #define LLVM_CLANG_DRIVER_OPTIONS_H
12
13 #include <memory>
14
15 namespace llvm {
16 namespace opt {
17 class OptTable;
18 }
19 }
20
21 namespace clang {
22 namespace driver {
23
24 namespace options {
25 /// Flags specifically for clang options. Must not overlap with
26 /// llvm::opt::DriverFlag.
27 enum ClangFlags {
28 DriverOption = (1 << 4),
29 LinkerInput = (1 << 5),
30 NoArgumentUnused = (1 << 6),
31 Unsupported = (1 << 7),
32 CoreOption = (1 << 8),
33 CLOption = (1 << 9),
34 CC1Option = (1 << 10),
35 CC1AsOption = (1 << 11),
36 NoDriverOption = (1 << 12),
37 Ignored = (1 << 13)
38 };
39
40 enum ID {
41 OPT_INVALID = 0, // This is not an option ID.
42 #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
43 HELPTEXT, METAVAR, VALUES) \
44 OPT_##ID,
45 #include "clang/Driver/Options.inc"
46 LastOption
47 #undef OPTION
48 };
49 }
50
51 std::unique_ptr<llvm::opt::OptTable> createDriverOptTable();
52 }
53 }
54
55 #endif
llvm
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Definition: Dominators.h:30
clang::driver::options::CC1AsOption
Definition: Options.h:35
clang::driver::options::CoreOption
Definition: Options.h:32
clang::driver::options::ClangFlags
ClangFlags
Flags specifically for clang options.
Definition: Options.h:27
clang::driver::createDriverOptTable
std::unique_ptr< llvm::opt::OptTable > createDriverOptTable()
Definition: DriverOptions.cpp:43
clang::driver::options::CLOption
Definition: Options.h:33
clang::driver::options::CC1Option
Definition: Options.h:34
clang::driver::options::LinkerInput
Definition: Options.h:29
clang::driver::options::NoDriverOption
Definition: Options.h:36
clang::driver::options::NoArgumentUnused
Definition: Options.h:30
clang::driver::options::LastOption
Definition: Options.h:46
clang::driver::options::Unsupported
Definition: Options.h:31
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::driver::options::OPT_INVALID
Definition: Options.h:41
clang::driver::options::DriverOption
Definition: Options.h:28
clang::driver::options::ID
ID
Definition: Options.h:40