clang
24.0.0git
lib
Options
DriverOptions.cpp
Go to the documentation of this file.
1
//===--- DriverOptions.cpp - Driver Options Table -------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
clang/Options/Options.h
"
10
#include "llvm/Option/OptTable.h"
11
#include <cassert>
12
13
using namespace
clang::options
;
14
using namespace
llvm::opt
;
15
16
#define OPTTABLE_VALUES_CODE
17
#include "clang/Options/Options.inc"
18
19
#define OPTTABLE_CODE
20
#include "clang/Options/Options.inc"
21
22
namespace
{
23
24
class
DriverOptTable :
public
OptTable {
25
public
:
26
DriverOptTable() : OptTable(optionTables()) {
27
setValuesCodeFn(getOptionValuesCode);
28
}
29
};
30
}
// anonymous namespace
31
32
const
llvm::opt::OptTable &
clang::getDriverOptTable
() {
33
static
const
DriverOptTable Table;
34
return
Table;
35
}
Options.h
clang::options
Definition
Options.h:17
clang::getDriverOptTable
const llvm::opt::OptTable & getDriverOptTable()
Definition
DriverOptions.cpp:32
llvm::opt
Definition
DiagnosticOptions.h:18
Generated on
for clang by
1.14.0