Android-cuttlefish cvd tool
fruit-config-base.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 Google Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// Copied from https://cs.android.com/android/platform/superproject/main/+/main:external/google-fruit/configuration/android/fruit/impl/fruit-config-base.h;drc=5289ec110eaca1768c167e1b5fbe1a4602c3b49e
18
19#ifndef FRUIT_CONFIG_BASE_H
20#define FRUIT_CONFIG_BASE_H
21
22// Needed for all Clang versions (as of January 2016), not needed for GCC.
23// This can also be defined for GCC, but it slightly slows down compile time of code using Fruit.
24#define FRUIT_HAS_CLANG_ARBITRARY_OVERLOAD_RESOLUTION_BUG 1
25
26// Whether the compiler defines std::max_align_t.
27#define FRUIT_HAS_STD_MAX_ALIGN_T 1
28
29// Whether the compiler defines ::max_align_t.
30// Ignored if FRUIT_HAS_STD_MAX_ALIGN_T is set.
31#define FRUIT_HAS_MAX_ALIGN_T 1
32
33// Whether the compiler defines std::is_trivially_copyable.
34#define FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE 1
35
36// Whether the compiler defines __has_trivial_copy.
37// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set.
38#define FRUIT_HAS_HAS_TRIVIAL_COPY 1
39
40// Whether the compiler defines __is_trivially_copyable.
41// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set.
42#define FRUIT_HAS_IS_TRIVIALLY_COPYABLE 1
43
44// Whether the compiler defines std::is_trivially_copy_constructible.
45#define FRUIT_HAS_STD_IS_TRIVIALLY_COPY_CONSTRUCTIBLE 1
46
47// Whether typeid() is available. Typically, it is unless RTTI is disabled.
48// Android-changed: Android does not use RTTI by default.
49// #define FRUIT_HAS_TYPEID 1
50
51// Whether typeid() is constexpr. Typically, it is except in MSVC.
52#define FRUIT_HAS_CONSTEXPR_TYPEID 1
53
54// Whether abi::__cxa_demangle() is available after including cxxabi.h.
55#define FRUIT_HAS_CXA_DEMANGLE 1
56
57// Android-changed: Android does not have boost library.
58#define FRUIT_USES_BOOST 0
59
60#define FRUIT_HAS_ALWAYS_INLINE_ATTRIBUTE 1
61
62#define FRUIT_HAS_FORCEINLINE 0
63
64#define FRUIT_HAS_ATTRIBUTE_DEPRECATED 0
65
66#define FRUIT_HAS_GCC_ATTRIBUTE_DEPRECATED 1
67
68#define FRUIT_HAS_DECLSPEC_DEPRECATED 0
69
70#define FRUIT_HAS_MSVC_ASSUME 0
71
72#define FRUIT_HAS_BUILTIN_UNREACHABLE 1
73
74#endif // FRUIT_CONFIG_BASE_H