15#ifndef LLVM_CLANG_BASIC_ADDRESSSPACES_H
16#define LLVM_CLANG_BASIC_ADDRESSSPACES_H
20#include <initializer_list>
89 std::initializer_list<std::pair<LangAS, unsigned>> Mappings) {
90 for (
auto [LanguageAS, TargetAS] : Mappings)
91 Map[(
unsigned)LanguageAS] = TargetAS;
109 return static_cast<LangAS>((TargetAS) +
constexpr unsigned operator[](LangAS AS) const
constexpr LangASMap(std::initializer_list< std::pair< LangAS, unsigned > > Mappings)
constexpr LangASMap()=default
The JSON file list parser is used to communicate input to InstallAPI.
bool isTargetAddressSpace(LangAS AS)
unsigned toTargetAddressSpace(LangAS AS)
@ Default
Set to the current date and time.
LangAS
Defines the address space values used by the address space qualifier of QualType.
@ FirstTargetAddressSpace
bool isPtrSizeAddressSpace(LangAS AS)
LangAS getLangASFromTargetAS(unsigned TargetAS)