如何与Visual Studio解决方案一起使用包含什么的工具?

时间:2018-12-07 06:54:23

标签: c++ visual-studio

我有一个标准的Visual Studio解决方案,并使用MSVS编译器。在不使用CMake的情况下,如何使用包含内容?

upd: 我使用sourcetrail从解决方案中制作了compile_database.json。 购买iwyu_tool.py -p =“ json的路径”无效 怎么了?

  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 343, in <module>
    _bootstrap()
  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 339, in _bootstrap
    FORMATTERS[args.output_format], args.jobs, iwyu_args))
  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 276, in main
    return execute(invocations, verbose, formatter, jobs)
  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 239, in execute
    print(formatter(invocation.start(verbose).get_output()))
  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 191, in start
    return Process.start(self)
  File "F:\iwyu\include-what-you-use\iwyu_tool.py", line 151, in start
    stderr=subprocess.STDOUT)
  File "C:\Users\Surkov\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "C:\Users\Surkov\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 929, in _execute_child
    args = list2cmdline(args)
  File "C:\Users\Surkov\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 441, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'NoneType' is not iterable

upd2:我想获取文件日志错误(阅读注释)

1 个答案:

答案 0 :(得分:0)

解决方案: 在命令行中更改代码页 使用命令: chcp 65001