【问题标题】:How to use the tool include-what-you-use together with Visual Studio solution?如何将工具 include-what-you-use 与 Visual Studio 解决方案一起使用?
【发布时间】:2018-12-07 06:54:23
【问题描述】:

我有一个标准的 Visual Studio 解决方案并使用 MSVS 编译器。如何在没有 CMake 的情况下使用 include-what-you-use?

更新: 我使用 sourcetrail 从解决方案中生成了 compilation_database.json。 购买 iwyu_tool.py -p="path to 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:我想得到一个文件日志错误(读取 cmets)

【问题讨论】:

    标签: c++ visual-studio iwyu


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2015-09-06
      • 1970-01-01
      • 1970-01-01
      • 2018-10-14
      • 2019-12-12
      • 2010-10-15
      • 2015-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多