Skip to content

Commit c442292

Browse files
fix: omit <auto> tokens on clang-cl
1 parent 4cbce79 commit c442292

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/mimic++/printing/type/PostProcessing.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ namespace mimicpp::printing::type::detail
302302
static RegexT const omitAccessSpecifiers{R"(\b(?:public|private|protected):\s+)"};
303303
name = std::regex_replace(name, omitAccessSpecifiers, "");
304304

305+
#if MIMICPP_DETAIL_IS_CLANG_CL
306+
static RegexT const omitAutoTokens{R"(<auto>\s*)"};
307+
name = std::regex_replace(name, omitAutoTokens, "");
308+
#endif
309+
305310
static RegexT const omitStaticSpecifier{R"(\bstatic\s+)"};
306311
name = std::regex_replace(name, omitStaticSpecifier, "");
307312

0 commit comments

Comments
 (0)