Skip to content

Commit 3919ba2

Browse files
Fix lint
1 parent 47ce759 commit 3919ba2

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

include/beman/any_view/detail/unique_address.hpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
#ifndef BEMAN_ANY_VIEW_DETAIL_UNIQUE_ADDRESS_HPP
44
#define BEMAN_ANY_VIEW_DETAIL_UNIQUE_ADDRESS_HPP
55

6-
#if !defined(__has_include)
7-
# if __has_include(<beman/any_view/config.hpp>)
8-
# include <beman/any_view/config.hpp>
9-
# endif
10-
#else
6+
#ifdef __has_include
7+
#if __has_include(<beman/any_view/config.hpp>)
8+
#include <beman/any_view/config.hpp>
9+
#endif // __has_include(<beman/any_view/config.hpp>)
10+
#endif // __has_include
11+
1112
// if the config.hpp file does not exist because this is in godbolt
1213
// or another context where cmake is not run, default to the correct
1314
// answer.
14-
# if (_MSC_VER)
15-
# define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[msvc::no_unique_address]]
16-
# else
17-
# define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[no_unique_address]]
18-
# endif
19-
#endif
15+
#ifndef BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS
16+
#if _MSC_VER
17+
#define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[msvc::no_unique_address]]
18+
#else
19+
#define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[no_unique_address]]
20+
#endif // _MSC_VER
21+
#endif // BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS
2022

21-
#endif
23+
#endif // BEMAN_ANY_VIEW_DETAIL_UNIQUE_ADDRESS_HPP

0 commit comments

Comments
 (0)