clang 20.0.0git
Macros
LangOptions.cpp File Reference
#include "clang/Basic/LangOptions.h"
#include "llvm/ADT/SmallString.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, Description)   Name = Default;
 
#define ENUM_LANGOPT(Name, Type, Bits, Default, Description)   set##Name(Default);
 
#define LANGOPT(Name, Bits, Default, Description)
 
#define BENIGN_LANGOPT(Name, Bits, Default, Description)   Name = Default;
 
#define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description)    Name = static_cast<unsigned>(Default);
 
#define OPTION(NAME, TYPE, WIDTH, PREVIOUS)
 
#define OPTION(NAME, TYPE, WIDTH, PREVIOUS)    llvm::errs() << "\n " #NAME " " << get##NAME();
 
#define OPTION(NAME, TYPE, WIDTH, PREVIOUS)
 

Macro Definition Documentation

◆ BENIGN_ENUM_LANGOPT

#define BENIGN_ENUM_LANGOPT (   Name,
  Type,
  Bits,
  Default,
  Description 
)     Name = static_cast<unsigned>(Default);

◆ BENIGN_LANGOPT

#define BENIGN_LANGOPT (   Name,
  Bits,
  Default,
  Description 
)    Name = Default;

◆ ENUM_LANGOPT

#define ENUM_LANGOPT (   Name,
  Type,
  Bits,
  Default,
  Description 
)    set##Name(Default);

◆ LANGOPT [1/2]

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

◆ LANGOPT [2/2]

#define LANGOPT (   Name,
  Bits,
  Default,
  Description 
)

◆ OPTION [1/3]

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

◆ OPTION [2/3]

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

◆ OPTION [3/3]

#define 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.