简体   繁体   English

Xcode项目的Clang静态代码分析器输出格式

[英]Clang Static Code Analyzer Output Format for Xcode project

I am trying to run inbuilt Xcode Clang static analyzer on ObjectiveCProject. 我正在尝试在ObjectiveCProject上运行内置的Xcode Clang静态分析器。 I want to know if it is possible to transform the Obj-C Analyzer output into a another format that sonar plugin can consume. 我想知道是否可以将Obj-C分析仪的输出转换为声纳插件可以使用的另一种格式。 Since there is no Sonar plugin yet for objectiveC that has full features. 由于还没有用于ObjectiveC的具有完整功能的Sonar插件。

This is the command you can use to run clang for the iOS application: 这是您可以用来为iOS应用程序运行clang的命令:

scan-build -o static_analyzer_results xcodebuild -configuration Debug -sdk iphonesimulator

This creates the html reports in static_analyzer directory. 这将在static_analyzer目录中创建html报告。 Check this for reference: 检查此作为参考:

http://clang-analyzer.llvm.org/scan-build.html http://clang-analyzer.llvm.org/scan-build.html

Not sure if you can feed them into Sonar but they are well formatted. 不知道您是否可以将它们输入Sonar,但它们的格式是否正确。

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

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