由于项目使用代码审查工具,会扫描到Wwise\Deployment\API\Generated目录下的多个文件使用了foreach。例如
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1158): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1169): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1196): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1207): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1250): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1261): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1288): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Android\AkSoundEngine_Android.cs(1299): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1158): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1169): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1196): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1207): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1250): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1261): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1288): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\iOS\AkSoundEngine_iOS.cs(1299): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1158): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1169): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1196): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1207): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1250): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1261): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1288): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Mac\AkSoundEngine_Mac.cs(1299): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1158): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1169): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1196): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1207): foreach(string s in in_ppszString)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1250): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1261): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1288): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Generated\Windows\AkSoundEngine_Windows.cs(1299): foreach(string s in in_ppszGameSyncName)
Wwise\Deployment\API\Handwritten\AkCallbackManager.cs(78): foreach (KeyValuePair<int, EventCallbackPackage> pair in m_mapEventCallbacks)
Wwise\Deployment\API\Handwritten\AkCallbackManager.cs(99): foreach (KeyValuePair<int, EventCallbackPackage> pair in m_mapEventCallbacks)
Wwise\Deployment\API\Handwritten\AkCallbackManager.cs(119): foreach (KeyValuePair<int, BankCallbackPackage> pair in m_mapBankCallbacks)
Wwise\Deployment\API\Handwritten\AkUtilities.cs(313): foreach (string reference in referencePlatforms)
Wwise\Deployment\API\Handwritten\AkUtilities.cs(394): foreach (XPathNavigator node in itpf)
Wwise\Deployment\API\Handwritten\AkUtilities.cs(409): foreach (XPathNavigator node in it)
Wwise\Deployment\API\Handwritten\AkUtilities.cs(628): foreach (FileInfo file in files)
Wwise\Deployment\API\Handwritten\AkUtilities.cs(637): foreach (DirectoryInfo subdir in dirs)
Wwise\Deployment\Components\AkGameObj.cs(146): foreach (AkUnityEventHandler handler in eventHandlers)
Wwise\Deployment\Components\AkGameObj.cs(309): foreach (var listener in listenerObjects)
Wwise\Deployment\Components\AkGameObj.cs(367): foreach (var listener in listeners[ii])
Wwise\Deployment\Components\AkTriggerBase.cs(35): foreach(TypeInfo typeInfo in typeInfos)
Wwise\Deployment\Components\AkUnityEventHandler.cs(76): foreach(uint triggerID in in_triggerList)
Wwise\Deployment\Components\AkUnityEventHandler.cs(101): foreach(uint triggerID in in_triggerList)
被代码检查工具报Warning,建议在此后的版本统一修改为for