clang
17.0.0git
lib
Basic
Targets
DirectX.cpp
Go to the documentation of this file.
1
//===--- DirectX.cpp - Implement DirectX target feature support -----------===//
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
// This file implements DirectX TargetInfo objects.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
DirectX.h
"
14
#include "
Targets.h
"
15
16
using namespace
clang
;
17
using namespace
clang::targets
;
18
19
void
DirectXTargetInfo::getTargetDefines
(
const
LangOptions
&Opts,
20
MacroBuilder
&Builder)
const
{
21
DefineStd
(Builder,
"DIRECTX"
, Opts);
22
}
DirectX.h
Targets.h
clang::LangOptions
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition:
LangOptions.h:82
clang::MacroBuilder
Definition:
MacroBuilder.h:23
clang::targets::DirectXTargetInfo::getTargetDefines
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition:
DirectX.cpp:19
clang::targets
Definition:
Targets.cpp:51
clang::targets::DefineStd
void DefineStd(MacroBuilder &Builder, StringRef MacroName, const LangOptions &Opts)
DefineStd - Define a macro name and standard variants.
Definition:
Targets.cpp:59
clang
Definition:
CalledOnceCheck.h:17
Generated on Sun Feb 5 2023 09:35:43 for clang by
1.9.6