我正在运行oclint的windows二进制分发版。使用cmake和CMAKE_EXPORT_COMPILE_COMMANDS = ON我创建了一个compile_commands.json。以下是前两个条目:
[
{
"directory": "C:/QtCassandra/src",
"command": "c:/MinGW/bin/c++.c++.exe -Ic:/QtCassandra/include -Ic:/Users/mwest/src/libQtCassandra-0.3.2/include -DQtCassandra_EXPORTS @CMakeFiles/QtCassandra.dir/includes_CXX.rsp -o CMakeFiles/QtCassandra.dir/QCassandra.cpp.obj -c C:/Users/mwest/src/libQtCassandra-0.3.2/src/QCassandra.cpp",
"file": "C:/Users/mwest/src/libQtCassandra-0.3.2/src/QCassandra.cpp"
},
{
"directory": "C:/QtCassandra/src",
"command": "c:/MinGW/bin/c++.c++.exe -Ic:/QtCassandra/include -Ic:/Users/mwest.PARASOFT/src/libQtCassandra-0.3.2/include -DQtCassandra_EXPORTS @CMakeFiles/QtCassandra.dir/includes_CXX.rsp -o CMakeFiles/QtCassandra.dir/QCassandraPrivate.cpp.obj -c C:/Users/mwest/src/libQtCassandra-0.3.2/src/QCassandraPrivate.cpp",
"file": "C:/Users/mwest/src/libQtCassandra-0.3.2/src/QCassandraPrivate.cpp"
}
然后我尝试为单个源文件运行oclint并获取此
:2685340:0:错误读取'C:UsersmwestsrclibQtCassandra-0.3.2srcQCassandra.cpp'
OCLint Report
Summary: TotalFiles=0 FilesWithViolations=0 P1=0 P2=0 P3=0
[OCLint (http://oclint.org) v0.8]
我尝试了几件事,在命令行上使用转义斜杠和反斜杠,并以相同的方式编辑命令文件。无论我使用哪种组合,我仍然会收到此错误。这是一个关于Windows问题的已知oclint吗?如果我从源码构建它会有帮助吗?
这是oclint的问题吗?有没有人让它与Windows 7一起使用?