-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Expand file tree
/
Copy pathOptions.h
More file actions
54 lines (46 loc) · 1.5 KB
/
Options.h
File metadata and controls
54 lines (46 loc) · 1.5 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//===--- Options.h - Option info & table ------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_OPTION_OPTIONS_H
#define SWIFT_OPTION_OPTIONS_H
#include <memory>
namespace llvm {
namespace opt {
class OptTable;
}
}
namespace swift {
namespace options {
/// Flags specifically for Swift driver options. Must not overlap with
/// llvm::opt::DriverFlag.
enum SwiftFlags {
FrontendOption = (1 << 4),
NoDriverOption = (1 << 5),
NoInteractiveOption = (1 << 6),
NoBatchOption = (1 << 7),
DoesNotAffectIncrementalBuild = (1 << 8),
AutolinkExtractOption = (1 << 9),
ModuleWrapOption = (1 << 10),
SwiftFormatOption = (1 << 11),
};
enum ID {
OPT_INVALID = 0, // This is not an option ID.
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES) \
OPT_##ID,
#include "swift/Option/Options.inc"
LastOption
#undef OPTION
};
} //end namespace options
std::unique_ptr<llvm::opt::OptTable> createSwiftOptTable();
} // end namespace swift
#endif