llvm - 如何在 Clang 3.0 中使用 cfg-dump 选项?

标签 llvm clang

我曾尝试做以下帖子: http://clang-developers.42468.n3.nabble.com/CFG-dump-in-clang-td2076047.html

像这样:
clang -cc1 -analyze -cfg-dump test.cpp

但是,我收到了这个警告:
错误:未知参数:'-cfg-dump'

如何使用 cfg-dump 选项?
Clang 3.0 没有 cfg-dump 选项吗?

最佳答案

这是renamed at Feb 17 15:39:39 CST 2011 ,修订版:125780

'-cfg-dump' is replaced by '-analyzer-checker=debug.DumpCFG'

'-dump-live-variables' is replaced by '-analyzer-checker=debug.DumpLiveVars'

'-cfg-view' is replaced by '-analyzer-checker=debug.ViewCFG'

更新:根据 haruna 在评论中的说法,使用任何分析器检查器都需要“-analyzer”选项。

关于llvm - 如何在 Clang 3.0 中使用 cfg-dump 选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9225325/

相关文章:

linux - 检查 C LLVM Bitcode 编译器是否工作.../xxx/llvm-3.4/Release+Asserts/bin/llvm-dis : Invalid type for value

clang - 在 clang-tidy 中,如何设置接受数字列表的检查选项

objective-c - 为什么这些简单方法的编译方式不同?

c++ - g++ 无法覆盖退出函数

c++ - 创建一个可以在 Windows 环境中的现有 makefile 项目上运行的 clang 工具?

c++ - 我可以让 clang 生成函数指针的绝对地址吗?

c++ - 如何找到类模板成员函数定义的外层模板参数列表的SourceLocation?

c++ - 使用 bazel 和 emscripten 构建 Web 程序集

java - LLVM vmkit java注释

c - 用什么代替 gcc/llvm 的 mudflap(用于检测内存访问错误)?