clang 20.0.0git
Macros | Functions | Variables
Builtins.cpp File Reference
#include "clang/Basic/Builtins.h"
#include "BuiltinTargetFeatures.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringRef.h"
#include "clang/Basic/BuiltinHeaders.def"
#include "clang/Basic/Builtins.inc"

Go to the source code of this file.

Macros

#define HEADER(ID, NAME)
 
#define BUILTIN(ID, TYPE, ATTRS)    {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
 
#define LANGBUILTIN(ID, TYPE, ATTRS, LANGS)    {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, LANGS},
 
#define LIBBUILTIN(ID, TYPE, ATTRS, HEADER, LANGS)    {#ID, TYPE, ATTRS, nullptr, HeaderDesc::HEADER, LANGS},
 

Functions

static bool builtinIsSupported (const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts)
 Is this builtin supported according to the given language options?
 

Variables

static constexpr Builtin::Info BuiltinInfo []
 

Macro Definition Documentation

◆ BUILTIN

#define BUILTIN (   ID,
  TYPE,
  ATTRS 
)     {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},

◆ HEADER

#define HEADER (   ID,
  NAME 
)
Value:
case ID: \
return NAME;

◆ LANGBUILTIN

#define LANGBUILTIN (   ID,
  TYPE,
  ATTRS,
  LANGS 
)     {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, LANGS},

◆ LIBBUILTIN

#define LIBBUILTIN (   ID,
  TYPE,
  ATTRS,
  HEADER,
  LANGS 
)     {#ID, TYPE, ATTRS, nullptr, HeaderDesc::HEADER, LANGS},

Function Documentation

◆ builtinIsSupported()

static bool builtinIsSupported ( const Builtin::Info BuiltinInfo,
const LangOptions LangOpts 
)
static

Variable Documentation

◆ BuiltinInfo

constexpr Builtin::Info BuiltinInfo[]
staticconstexpr