Lines Matching refs:cmds
32 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
33 assert len(cmds) != 0
38 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
39 assert len(cmds) == 1
40 assert cmds[0].directory == '/home/john.doe/MyProject'
43 for arg, exp in zip(cmds[0].arguments, expected):
49 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project2.cpp')
50 assert len(cmds) == 2
59 for i in range(len(cmds)):
60 assert cmds[i].directory == expected[i]['wd']
61 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
75 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
78 workingdir = cmds[0].directory
83 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
85 cmd0 = cmds[0]
86 del cmds