#include "clang/Basic/CommentOptions.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/LangStandard.h"
#include "clang/Basic/ObjCRuntime.h"
#include "clang/Basic/Sanitizers.h"
#include "clang/Basic/TargetCXXABI.h"
#include "clang/Basic/Visibility.h"
#include "llvm/ADT/FloatingPointMode.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include <optional>
#include <string>
#include <vector>
#include "clang/Basic/LangOptions.def"
#include "clang/Basic/FPOptions.def"
Go to the source code of this file.
|
#define | LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits; |
|
#define | ENUM_LANGOPT(Name, Type, Bits, Default, Description) |
|
#define | LANGOPT(Name, Bits, Default, Description) |
|
#define | ENUM_LANGOPT(Name, Type, Bits, Default, Description) unsigned Name : Bits; |
|
#define | LANGOPT(Name, Bits, Default, Description) |
|
#define | ENUM_LANGOPT(Name, Type, Bits, Default, Description) |
|
#define | OPTION(NAME, TYPE, WIDTH, PREVIOUS) |
|
#define | OPTION(NAME, TYPE, WIDTH, PREVIOUS) +WIDTH |
|
#define | OPTION(NAME, TYPE, WIDTH, PREVIOUS) |
|
#define | OPTION(NAME, TYPE, WIDTH, PREVIOUS) |
|
|
enum | clang::MSVtorDispMode { clang::MSVtorDispMode::Never,
clang::MSVtorDispMode::ForVBaseOverride,
clang::MSVtorDispMode::ForVFTable
} |
| In the Microsoft ABI, this controls the placement of virtual displacement members used to implement virtual inheritance. More...
|
|
enum | clang::ShaderStage {
clang::ShaderStage::Pixel = 0,
clang::ShaderStage::Vertex,
clang::ShaderStage::Geometry,
clang::ShaderStage::Hull,
clang::ShaderStage::Domain,
clang::ShaderStage::Compute,
clang::ShaderStage::Library,
clang::ShaderStage::RayGeneration,
clang::ShaderStage::Intersection,
clang::ShaderStage::AnyHit,
clang::ShaderStage::ClosestHit,
clang::ShaderStage::Miss,
clang::ShaderStage::Callable,
clang::ShaderStage::Mesh,
clang::ShaderStage::Amplification,
clang::ShaderStage::Invalid
} |
| Shader programs run in specific pipeline stages. More...
|
|
enum | clang::TranslationUnitKind { clang::TU_Complete,
clang::TU_Prefix,
clang::TU_Module,
clang::TU_Incremental
} |
| Describes the kind of translation unit being processed. More...
|
|
Defines the clang::LangOptions interface.
Definition in file LangOptions.h.
◆ ENUM_LANGOPT [1/3]
#define ENUM_LANGOPT |
( |
|
Name, |
|
|
|
Type, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| |
◆ ENUM_LANGOPT [2/3]
#define ENUM_LANGOPT |
( |
|
Name, |
|
|
|
Type, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| unsigned Name : Bits; |
◆ ENUM_LANGOPT [3/3]
#define ENUM_LANGOPT |
( |
|
Name, |
|
|
|
Type, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| |
◆ LANGOPT [1/3]
#define LANGOPT |
( |
|
Name, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| unsigned Name : Bits; |
◆ LANGOPT [2/3]
#define LANGOPT |
( |
|
Name, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| |
◆ LANGOPT [3/3]
#define LANGOPT |
( |
|
Name, |
|
|
|
Bits, |
|
|
|
Default, |
|
|
|
Description |
|
) |
| |
◆ OPTION [1/4]
#define OPTION |
( |
|
NAME, |
|
|
|
TYPE, |
|
|
|
WIDTH, |
|
|
|
PREVIOUS |
|
) |
| |
Value: static constexpr storage_type NAME##
Shift = \
PREVIOUS##
Shift + PREVIOUS##Width; \
static constexpr storage_type NAME##Width = WIDTH; \
static constexpr storage_type NAME##Mask = ((1 << NAME##Width) - 1) \
Definition at line 889 of file LangOptions.h.
◆ OPTION [2/4]
#define OPTION |
( |
|
NAME, |
|
|
|
TYPE, |
|
|
|
WIDTH, |
|
|
|
PREVIOUS |
|
) |
| +WIDTH |
◆ OPTION [3/4]
#define OPTION |
( |
|
NAME, |
|
|
|
TYPE, |
|
|
|
WIDTH, |
|
|
|
PREVIOUS |
|
) |
| |
Value: TYPE get##NAME()
const { \
} \
Value = (
Value & ~NAME##Mask) | (storage_type(value) << NAME##
Shift); \
}
Definition at line 889 of file LangOptions.h.
◆ OPTION [4/4]
#define OPTION |
( |
|
NAME, |
|
|
|
TYPE, |
|
|
|
WIDTH, |
|
|
|
PREVIOUS |
|
) |
| |
Value: bool has##NAME##Override()
const { \
return OverrideMask & FPOptions::NAME##Mask; \
} \
TYPE get##NAME##Override() const { \
assert(
has##NAME##Override()); \
return Options.get##NAME(); \
} \
void clear##NAME##Override() { \
\
Options.set##NAME(
TYPE(0)); \
OverrideMask &= ~FPOptions::NAME##Mask; \
} \
void
set##NAME##Override(
TYPE value) { \
Options.set##NAME(value); \
OverrideMask |= FPOptions::NAME##Mask; \
}
Definition at line 889 of file LangOptions.h.