简体   繁体   English

了解COM的静态分析工具?

[英]Static analysis tool that understands COM?

I've looked at a couple of (expensive) Static Analysis tools for C/C++ that check STL, but they do not understand Microsoft COM. 我看过一些用于C / C ++的(昂贵的)静态分析工具,它们可以检查STL,但它们不了解Microsoft COM。 One at least can generate false error messages due to COM reference counting. 由于COM引用计数,至少有一个会生成错误消息。 I found a mono project that does static analysis on code with .NET assemblies (//www.mono-project.com/Gendarme). 我找到了一个Mono项目,该项目使用.NET程序集(//www.mono-project.com/Gendarme)对代码进行静态分析。 But what I didn't find was anything that does static analysis and understands COM. 但是我没有找到做静态分析并理解COM的任何东西。 What I really want is a tool that can diagnose COM threading related potential deadlocks, that works with Visual Studio 2008 C++ code. 我真正想要的是一种可以诊断与COM线程相关的潜在死锁的工具,该工具可与Visual Studio 2008 C ++代码一起使用。 Does anyone know of anything like that? 有人知道吗?

I would say that if you are looking for detected of threading issues static analysis is not the best way to do it. 我想说的是,如果您正在寻找检测到的线程问题,那么静态分析并不是最好的方法。 This is the realm of dynamic analysis tools. 这是动态分析工具的领域。 In particular, Intel Parallel Studio has such dynamic analysis capabilities 特别是,英特尔Parallel Studio具有这种动态分析功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM