helpers for matching string literals

This commit is contained in:
Nikita Smith
2025-01-18 17:01:32 -08:00
parent 89ff4d0de2
commit a1d5837ff3
13 changed files with 165 additions and 196 deletions
+4 -4
View File
@@ -458,10 +458,10 @@ internal B32
cv_is_udt_name_anon(String8 name)
{
// corresponds to fUDTAnon from dbi/tm.cpp:817
B32 is_anon = str8_match(str8_lit("<unnamed-tag>"), name, 0) ||
str8_match(str8_lit("__unnamed"), name, 0) ||
str8_match(str8_lit("::<unnamed-tag>"), name, StringMatchFlag_RightSideSloppy) ||
str8_match(str8_lit("::__unnamed"), name, StringMatchFlag_RightSideSloppy);
B32 is_anon = str8_match_lit("<unnamed-tag>", name, 0) ||
str8_match_lit("__unnamed", name, 0) ||
str8_match_lit("::<unnamed-tag>", name, StringMatchFlag_RightSideSloppy) ||
str8_match_lit("::__unnamed", name, StringMatchFlag_RightSideSloppy);
return is_anon;
}