Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Cil_types 在 frama-c 中开发一个插件。该插件默认将 C 程序的 AST 作为输入(Cil_types.file)。我想得到这个文件的名字,但使用 Cil_types 我不能。我可以通过其他方式获得这些信息吗?
Kernel.Files.get()
Globals.FileIndex.get_files ()
#include
此外,您还可能对location存在于许多 AST 元素中的字段感兴趣。它的类型是Cil_types.location并且包括文件名和行号。
location
Cil_types.location