Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在llvm中使用errs()打印固定小数_Llvm_Llvm Clang - Fatal编程技术网

在llvm中使用errs()打印固定小数

在llvm中使用errs()打印固定小数,llvm,llvm-clang,Llvm,Llvm Clang,如何使用llvm的errs()输出流打印定点小数 例如,如果现在正在执行错误(),您可以使用include/llvm/Support/format.h中的format函数来创建类似C-printf的字符串: errs() << format("%.3f\n", 3.3); errs()谢谢!我看了文档,但没找到。

如何使用llvm的errs()输出流打印定点小数


例如,如果现在正在执行错误(),您可以使用
include/llvm/Support/format.h
中的
format
函数来创建类似C-printf的字符串:

errs() << format("%.3f\n", 3.3);

errs()谢谢!我看了文档,但没找到。