def update_rtags_buffers(self, args):
buffers = args
cpp_buffers = []
for buffer in buffers:
if str(buffer)[-4:] in ['.cpp', '.cc', '.c', '.h', '.hpp']:
cpp_buffers.append(buffer)
try:
subprocess.call(
self.cmake_cmd_info["rtags_buffer"] + cpp_buffers,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError as e:
print(e.output)
#@classmethod
评论列表
文章目录