clang  14.0.0git
Macros
LangStandards.cpp File Reference
#include "clang/Basic/LangStandard.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/Basic/LangStandards.def"
Include dependency graph for LangStandards.cpp:

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 14 of file LangStandards.cpp.

◆ LANGSTANDARD [2/3]

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

Definition at line 14 of file LangStandards.cpp.

◆ LANGSTANDARD [3/3]

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

Definition at line 14 of file LangStandards.cpp.

◆ LANGSTANDARD_ALIAS

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