@@ -542,6 +542,16 @@ class TestTokenizer : public TestFixture {
542542 return " " ;
543543 }
544544
545+ template <size_t size>
546+ std::string tokenizeAndStringify_ (const char * file, int line, const char (&code)[size], const Settings &settings, bool cpp = true) {
547+ // tokenize..
548+ SimpleTokenizer tokenizer (settings, *this , cpp);
549+ ASSERT_LOC (tokenizer.tokenize (code), file, line);
550+ if (!tokenizer.tokens ())
551+ return " " ;
552+ return tokenizer.tokens ()->stringifyList (false , true , false , true , false , nullptr , nullptr );
553+ }
554+
545555#define tokenizeAndStringifyWindows (...) tokenizeAndStringifyWindows_(__FILE__, __LINE__, __VA_ARGS__)
546556 template <size_t size>
547557 std::string tokenizeAndStringifyWindows_ (const char * file, int linenr, const char (&code)[size], Platform::Type platform = Platform::Type::Native) {
@@ -556,16 +566,6 @@ class TestTokenizer : public TestFixture {
556566 return " " ;
557567 }
558568
559- template <size_t size>
560- std::string tokenizeAndStringify_ (const char * file, int line, const char (&code)[size], const Settings &settings, bool cpp = true) {
561- // tokenize..
562- SimpleTokenizer tokenizer (settings, *this , cpp);
563- ASSERT_LOC (tokenizer.tokenize (code), file, line);
564- if (!tokenizer.tokens ())
565- return " " ;
566- return tokenizer.tokens ()->stringifyList (false , true , false , true , false , nullptr , nullptr );
567- }
568-
569569#define tokenizeDebugListing (...) tokenizeDebugListing_(__FILE__, __LINE__, __VA_ARGS__)
570570 template <size_t size>
571571 std::string tokenizeDebugListing_ (const char * file, int line, const char (&code)[size], bool cpp = true) {
0 commit comments