v8
8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
compiler-specific.h
Go to the documentation of this file.
1
// Copyright 2020 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#
ifndef
INCLUDE_CPPGC_INTERNAL_COMPILER_SPECIFIC_H_
6
#
define
INCLUDE_CPPGC_INTERNAL_COMPILER_SPECIFIC_H_
7
8
namespace
cppgc
{
9
10
#
if
defined
(
__has_cpp_attribute
)
11
#
define
CPPGC_HAS_CPP_ATTRIBUTE
(
FEATURE
)
__has_cpp_attribute
(
FEATURE
)
12
#
else
13
#
define
CPPGC_HAS_CPP_ATTRIBUTE
(
FEATURE
)
0
14
#
endif
15
16
// [[no_unique_address]] comes in C++20 but supported in clang with -std >=
17
// c++11.
18
#
if
CPPGC_HAS_CPP_ATTRIBUTE
(
no_unique_address
)
// NOLINTNEXTLINE
19
#
define
CPPGC_NO_UNIQUE_ADDRESS
[
[
no_unique_address
]
]
20
#
else
21
#
define
CPPGC_NO_UNIQUE_ADDRESS
22
#
endif
23
24
}
// namespace cppgc
25
26
#
endif
// INCLUDE_CPPGC_INTERNAL_COMPILER_SPECIFIC_H_
include
cppgc
internal
compiler-specific.h
Generated on Fri Oct 29 2021 20:07:23 for v8 by
1.9.1