aboutsummaryrefslogtreecommitdiff
path: root/configuration/bazel/fruit/impl/fruit-config-base.h
blob: 8e7af1d4fa43a3620d68109ece60f45c3450a412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FRUIT_CONFIG_BASE_H
#define FRUIT_CONFIG_BASE_H

// Needed for all Clang versions (as of January 2016), not needed for GCC.
// This can also be defined for GCC, but it slightly slows down compile time of code using Fruit.
#define FRUIT_HAS_CLANG_ARBITRARY_OVERLOAD_RESOLUTION_BUG 1

// Whether the compiler defines std::max_align_t.
#define FRUIT_HAS_STD_MAX_ALIGN_T 1

// Whether the compiler defines ::max_align_t.
// Ignored if FRUIT_HAS_STD_MAX_ALIGN_T is set.
#define FRUIT_HAS_MAX_ALIGN_T 1

// Whether the compiler defines std::is_trivially_copyable.
#define FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE 1

// Whether the compiler defines __has_trivial_copy.
// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set.
#define FRUIT_HAS_HAS_TRIVIAL_COPY 1

// Whether the compiler defines __is_trivially_copyable.
// Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set.
#define FRUIT_HAS_IS_TRIVIALLY_COPYABLE 1

// Whether the compiler defines std::is_trivially_copy_constructible.
#define FRUIT_HAS_STD_IS_TRIVIALLY_COPY_CONSTRUCTIBLE 1

// Whether typeid() is available. Typically, it is unless RTTI is disabled.
#define FRUIT_HAS_TYPEID 1

// Whether typeid() is constexpr. Typically, it is except in MSVC.
#define FRUIT_HAS_CONSTEXPR_TYPEID 1

// Whether abi::__cxa_demangle() is available after including cxxabi.h.
#define FRUIT_HAS_CXA_DEMANGLE 1

#define FRUIT_USES_BOOST 1

#define FRUIT_HAS_ALWAYS_INLINE_ATTRIBUTE 1

#define FRUIT_HAS_FORCEINLINE 0

#define FRUIT_HAS_ATTRIBUTE_DEPRECATED 0

#define FRUIT_HAS_GCC_ATTRIBUTE_DEPRECATED 1

#define FRUIT_HAS_DECLSPEC_DEPRECATED 0

#define FRUIT_HAS_MSVC_ASSUME 0

#define FRUIT_HAS_BUILTIN_UNREACHABLE 1

#endif // FRUIT_CONFIG_BASE_H