================
@@ -5508,6 +5508,22 @@
TypeSystemClang::GetNumChildren(lldb::opaque_compiler_type_t type,
}
CompilerType TypeSystemClang::GetBuiltinTypeByName(ConstString name) {
+ StringRef name_ref = name.GetStringRef();
+ // We compile the regex only the type name fulfills certain
+ // necessary conditions. Otherwise we do not bother.
+ if ((!name_ref.empty() && name_ref[0] == '_') ||
+ (name_ref.size() >= 10 && name_ref[9] == '_')) {
----------------
sedymrak wrote:
Yes. Thank you. I've pushed a commit that incorporates your advice. Ultimately,
there is no need to reach for regex machinery.
https://github.com/llvm/llvm-project/pull/165857
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits