可用的回归测试通过的标准版本
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from __future__ import annotations
|
||||
from typing import TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, Dict, Tuple
|
||||
if TYPE_CHECKING:
|
||||
from lib.core.translator import Translator
|
||||
from lib.constants import config as _config
|
||||
@@ -950,7 +950,7 @@ class CTypeInfo:
|
||||
if ModulePath:
|
||||
resolved = False
|
||||
if hasattr(SymbolTable, 'translator'):
|
||||
import_aliases = getattr(SymbolTable.translator, '_import_aliases', {})
|
||||
import_aliases = getattr(SymbolTable.translator, '_ImportAliases', {})
|
||||
if ModulePath in import_aliases:
|
||||
ModulePath = import_aliases[ModulePath]
|
||||
resolved = True
|
||||
@@ -1056,10 +1056,10 @@ class CTypeInfo:
|
||||
if OriginalType and 'typedef' in OriginalType:
|
||||
parts = OriginalType.split()
|
||||
if len(parts) >= 2:
|
||||
base_type_name = parts[1]
|
||||
if not base_type_name.startswith('C'):
|
||||
base_type_name = 'C' + base_type_name
|
||||
CNAME = CTypeHelper.GetCName(base_type_name)
|
||||
BaseType_name = parts[1]
|
||||
if not BaseType_name.startswith('C'):
|
||||
BaseType_name = 'C' + BaseType_name
|
||||
CNAME = CTypeHelper.GetCName(BaseType_name)
|
||||
if CNAME:
|
||||
return cls.FromTypeName(CNAME)
|
||||
Result = cls()
|
||||
|
||||
Reference in New Issue
Block a user