/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
toolchain/check/cpp/access.h
24 строки
904 B
Chandler Carruth
Don't include expensive Clang headers in widely-included headers (#7319)
07 июн 2026, 19:27
Не верифицирован
07 июн 2026, 19:27
7901fb3
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #ifndef CARBON_TOOLCHAIN_CHECK_CPP_ACCESS_H_ #define CARBON_TOOLCHAIN_CHECK_CPP_ACCESS_H_ #include "clang/AST/DeclAccessPair.h" #include "clang/Basic/Specifiers.h" #include "toolchain/sem_ir/name_scope.h" namespace Carbon::Check { // Calculates the effective access kind from the given (declaration, lookup // access) pair. auto MapCppAccess(clang::DeclAccessPair access_pair) -> SemIR::AccessKind; // Maps a Carbon access kind to a C++ access specifier, suitable for use when // declaring a C++ class member with the same access. Never returns AS_none. auto MapToCppAccess(SemIR::AccessKind access) -> clang::AccessSpecifier; } // namespace Carbon::Check #endif // CARBON_TOOLCHAIN_CHECK_CPP_ACCESS_H_