Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
may_alias.hpp
Go to the documentation of this file.
1
// Copyright 2024, Toyota Motor Corporation
2
//
3
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5
#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_ATTRIBUTES_MAY_ALIAS_HPP_
6
#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_ATTRIBUTES_MAY_ALIAS_HPP_
7
8
// IWYU pragma: private, include "arene/base/compiler_support/attributes.hpp"
9
// IWYU pragma: friend "(arene/base(?!/tests)|stdlib/include/stdlib_detail)/.*"
10
11
// NOLINTBEGIN(cppcoreguidelines-macro-usage) Explicitly providing compiler support macro functions
12
// parasoft-begin-suppress AUTOSAR-A16_0_1-d-2 "Conditional defines permitted by A16-0-1 Permit #2"
13
// parasoft-begin-suppress AUTOSAR-A16_0_1-a-2 "Conditional defines permitted by A16-0-1 Permit #2"
14
15
/// @def ARENE_MAY_ALIAS
16
/// @brief An alias for the @c __may_alias__ attribute, or a no-op if the attribute is not supported
17
18
#if defined(__clang__) || defined(__GNUC__)
19
#define ARENE_MAY_ALIAS __attribute__((__may_alias__))
20
#else
21
#define ARENE_MAY_ALIAS
22
#endif
23
24
// NOLINTEND(cppcoreguidelines-macro-usage) Explicitly providing compiler support macro functions
25
// parasoft-end-suppress AUTOSAR-A16_0_1-d-2
26
// parasoft-end-suppress AUTOSAR-A16_0_1-a-2
27
28
#endif
// INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_ATTRIBUTES_MAY_ALIAS_HPP_
arene
base
compiler_support
attributes
may_alias.hpp
Generated by
1.13.2