Skip to content

Commit bd888d9

Browse files
author
Advenam Tacet
committed
Changes based on @ldionne code review
- Macro moved to from `__config` to `string` file. - `_LIBCPP_IF_ASAN` -> `_LIBCPP_STRING_IF_ASAN`. - No more check `#ifndef _LIBCPP_STRING_IF_ASAN` before defining macro.
1 parent 739aa3e commit bd888d9

File tree

2 files changed

+69
-72
lines changed

2 files changed

+69
-72
lines changed

libcxx/include/__config

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,15 +1490,6 @@ __sanitizer_verify_double_ended_contiguous_container(const void*, const void*, c
14901490
# define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
14911491
# endif
14921492

1493-
// ASan related macros
1494-
// _LIBCPP_IF_ASAN is used to removed ASan related code, whenever compiled without ASan.
1495-
#ifndef _LIBCPP_IF_ASAN
1496-
# ifndef _LIBCPP_HAS_NO_ASAN
1497-
# define _LIBCPP_IF_ASAN() if _LIBCPP_CONSTEXPR (true)
1498-
# else
1499-
# define _LIBCPP_IF_ASAN() if _LIBCPP_CONSTEXPR (false)
1500-
# endif
1501-
#endif
15021493

15031494
#endif // __cplusplus
15041495

0 commit comments

Comments
 (0)