clang 22.0.0git
LangOptions.cpp File Reference
#include "clang/Basic/LangOptions.h"
#include "llvm/Support/Path.h"
#include "clang/Basic/LangOptions.def"
#include "clang/Basic/FPOptions.def"

Go to the source code of this file.

Macros

#define LANGOPT(Name, Bits, Default, Compatibility, Description)
#define ENUM_LANGOPT(Name, Type, Bits, Default, Compatibility, Description)
#define LANGOPT(Name, Bits, Default, Compatibility, Description)
#define ENUM_LANGOPT(Name, Type, Bits, Default, Compatibility, Description)
#define FP_OPTION(NAME, TYPE, WIDTH, PREVIOUS)
#define FP_OPTION(NAME, TYPE, WIDTH, PREVIOUS)
#define FP_OPTION(NAME, TYPE, WIDTH, PREVIOUS)

Macro Definition Documentation

◆ ENUM_LANGOPT [1/2]

#define ENUM_LANGOPT ( Name,
Type,
Bits,
Default,
Compatibility,
Description )

◆ ENUM_LANGOPT [2/2]

#define ENUM_LANGOPT ( Name,
Type,
Bits,
Default,
Compatibility,
Description )
Value:
if constexpr (CompatibilityKind::Compatibility == CompatibilityKind::Benign) \
Name = static_cast<unsigned>(Default);

◆ FP_OPTION [1/3]

#define FP_OPTION ( NAME,
TYPE,
WIDTH,
PREVIOUS )
Value:
if (get##NAME() != Base.get##NAME()) \
OverrideMask |= NAME##Mask;

◆ FP_OPTION [2/3]

#define FP_OPTION ( NAME,
TYPE,
WIDTH,
PREVIOUS )
Value:
llvm::errs() << "\n " #NAME " " << get##NAME();

◆ FP_OPTION [3/3]

#define FP_OPTION ( NAME,
TYPE,
WIDTH,
PREVIOUS )
Value:
if (has##NAME##Override()) \
llvm::errs() << "\n " #NAME " Override is " << get##NAME##Override();
const internal::ArgumentAdaptingMatcherFunc< internal::HasMatcher > has
Matches AST nodes that have child AST nodes that match the provided matcher.
@ Override
Merge availability attributes for an override, which requires an exact match or a weakening of constr...
Definition Sema.h:634

◆ LANGOPT [1/2]

#define LANGOPT ( Name,
Bits,
Default,
Compatibility,
Description )
Value:
Name = Default;

◆ LANGOPT [2/2]

#define LANGOPT ( Name,
Bits,
Default,
Compatibility,
Description )
Value:
if constexpr (CompatibilityKind::Compatibility == CompatibilityKind::Benign) \
Name = Default;