1*80f9458cSHristo Hristov //===----------------------------------------------------------------------===// 2*80f9458cSHristo Hristov // 3*80f9458cSHristo Hristov // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*80f9458cSHristo Hristov // See https://llvm.org/LICENSE.txt for license information. 5*80f9458cSHristo Hristov // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*80f9458cSHristo Hristov // 7*80f9458cSHristo Hristov //===----------------------------------------------------------------------===// 8*80f9458cSHristo Hristov 9*80f9458cSHristo Hristov #ifndef TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H 10*80f9458cSHristo Hristov #define TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H 11*80f9458cSHristo Hristov 12*80f9458cSHristo Hristov #include "make_string.h" 13*80f9458cSHristo Hristov 14*80f9458cSHristo Hristov #define CS(S) MAKE_CSTRING(CharT, S) 15*80f9458cSHristo Hristov #define ST(S, a) std::basic_string<CharT, TraitsT, AllocT>(MAKE_CSTRING(CharT, S), MKSTR_LEN(CharT, S), a) 16*80f9458cSHristo Hristov #define SV(S) std::basic_string_view<CharT, TraitsT>(MAKE_CSTRING(CharT, S), MKSTR_LEN(CharT, S)) 17*80f9458cSHristo Hristov 18*80f9458cSHristo Hristov #endif // TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H 19