clangd-tidy 1.0.0
“A faster alternative to clang-tidy”
Imports Python's subprocess moduleCalls Python os.getcwd
SHA-256caa7693e666ae7c996a6c8db2d45baff507002f266bc50411511b543eb4b4f2b
MaleculeH₄(Cm₂DbF₂Po₂)Md(Pa)
Evidence
⋯5 lines
6from . import lsp_structs
7
8JSON_RPC_REQ_FORMAT = "Content-Length: {json_string_len}\r\n\r\n{json_string}"
9LEN_HEADER = "Content-Length: "
10TYPE_HEADER = "Content-Type: "
⋯6 lines
26:26… endpoint implementation. Responsible to recieve and send JSON RPC messages, as described in the
27 protocol. More information can be found: https://www.jsonrpc.org/
28 '''
29 def __init__(self, stdin, stdout):
30 self.stdin = stdin
31 self.stdout = stdout
32 self.read_lock = threading.Lock()
33 self.write_lock = threading.Lock()
⋯10 lines
92:102… ng size")
93
94 jsonrpc_res = self.stdout.read(message_size).decode("utf-8")
95 return json.loads(jsonrpc_res)
1#!/usr/bin/env python3
2
3import argparse
4import os
5import signal
6import subprocess
7import sys
8import threading
⋯5 lines
133:13… ="clangd-tidy",
134 description="Run clangd with clang-tidy and output diagnostics. This aims to serve as a faster alternative to clang-tidy.",
135 epilog="Find more information on https://github.com/lljbash/clangd-tidy.",
136 )
137 parser.add_argument(
138 "-V", "--version", action="version", version=f"%(prog)s {__version__}"
139 )
140 parser.ad …
No evidence locations were recorded for this file. Raw result