Skip to content

fix template_string wrong MSVC workaround#1177

Merged
poor-circle merged 3 commits into
alibaba:mainfrom
miyanyan:template_string_msvc
May 11, 2026
Merged

fix template_string wrong MSVC workaround#1177
poor-circle merged 3 commits into
alibaba:mainfrom
miyanyan:template_string_msvc

Conversation

@miyanyan

Copy link
Copy Markdown
Contributor

qicosmos/iguana#344 去掉了template_string的MSVC的前缀,当时没发现,对long double unsigned int 这类的直接通过找空格来裁剪是有问题的,改成了显式的判断前缀。

注意对long long来说还是有问题的:

ERROR: CHECK( type_string<long long>() == "long long" ) is NOT correct!
  values: CHECK( __int64 == long long )

enum enum class enum struct的输出则都是·enum前缀

miyanyan added 2 commits May 10, 2026 16:14
Replace the old logic that stripped any first-word that wasn't const/volatile (which
would incorrectly strip "unsigned", "long", etc.) with a targeted list of MSVC
elaborated type specifiers. The prefix strings include a trailing space to avoid
matching type names that happen to start with a keyword.
@github-actions

Copy link
Copy Markdown

for detail, goto summary download Artifacts base-ylt-cov-report(base commit coverage report) and ylt-cov-report(current pull request coverage report)

@github-actions

Copy link
Copy Markdown

for detail, goto summary download Artifacts base-ylt-cov-report(base commit coverage report) and ylt-cov-report(current pull request coverage report)

@poor-circle

Copy link
Copy Markdown
Collaborator

LGTM

@poor-circle poor-circle merged commit 29f7445 into alibaba:main May 11, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants