clang 20.0.0git
Macros
LangStandards.cpp File Reference
#include "clang/Basic/LangStandard.h"
#include "clang/Config/config.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/TargetParser/Triple.h"
#include "clang/Basic/LangStandards.def"

Go to the source code of this file.

Macros

#define LANGSTANDARD(id, name, lang, desc, features)    static const LangStandard Lang_##id = {name, desc, features, Language::lang};
 
#define LANGSTANDARD(id, name, lang, desc, features)    case lang_##id: return Lang_##id;
 
#define LANGSTANDARD(id, name, lang, desc, features)   .Case(name, lang_##id)
 
#define LANGSTANDARD_ALIAS(id, alias)   .Case(alias, lang_##id)
 

Macro Definition Documentation

◆ LANGSTANDARD [1/3]

#define LANGSTANDARD (   id,
  name,
  lang,
  desc,
  features 
)     static const LangStandard Lang_##id = {name, desc, features, Language::lang};

Definition at line 51 of file LangStandards.cpp.

◆ LANGSTANDARD [2/3]

#define LANGSTANDARD (   id,
  name,
  lang,
  desc,
  features 
)     case lang_##id: return Lang_##id;

Definition at line 51 of file LangStandards.cpp.

◆ LANGSTANDARD [3/3]

#define LANGSTANDARD (   id,
  name,
  lang,
  desc,
  features 
)    .Case(name, lang_##id)

Definition at line 51 of file LangStandards.cpp.

◆ LANGSTANDARD_ALIAS

#define LANGSTANDARD_ALIAS (   id,
  alias 
)    .Case(alias, lang_##id)