clang
20.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:499
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:
TargetInfo.h:1876
clang::targets::DefineStd
LLVM_LIBRARY_VISIBILITY void DefineStd(clang::MacroBuilder &Builder, llvm::StringRef MacroName, const clang::LangOptions &Opts)
Define a macro name and standard variants.
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
Generated on Thu Jan 16 2025 20:07:40 for clang by
1.9.6