class_docstr: clang tidy wrapper.
  Args:
    args:  Command line arguments.
        cpp_lint: Run linter on C++ source code.
        cuda_lint: Run linter on CUDA source code.
        use_dmlc_gtest: Whether to use gtest bundled in dmlc-core.
docstr: Convert nvcc flags to corresponding clang flags.
docstr_tok: ["Convert","nvcc","flags","to","corresponding","clang","flags","."]
code: def convert_nvcc_command_to_clang(self, command):
      """Convert nvcc flags to corresponding clang flags."""
      components = command.split()
      compiler: str = components[0]
      if compiler.find("nvcc") != -1:
          compiler = "clang++"
          components[0] = compiler
      # check each component in a command
      converted_components = [compiler]
  
      for i in range(1, len(components)):
          if components[i] == "-lineinfo":
              continue
          elif components[i] == "-fuse-ld=gold":
              continue
          elif components[i] == "-rdynamic":
              continue
          elif components[i] == "-Xfatbin=-compress-all":
              continue
          elif components[i] == "-forward-unknown-to-host-compiler":
              continue
          elif components[i] == "-x" and components[i + 1] == "cu":
              # -x cu -> -x cuda
              converted_components.append("-x")
              converted_components.append("cuda")
              components[i + 1] = ""
              continue
          elif components[i].find("-Xcompiler") != -1:
              continue
          elif components[i].find("--expt") != -1:
              continue
          elif components[i].find("-ccbin") != -1:
              continue
          elif components[i].find("--generate-code") != -1:
              keyword = "code=sm"
              pos = components[i].find(keyword)
              capability = components[i][
                  pos + len(keyword) + 1 : pos + len(keyword) + 3
              ]
              if pos != -1:
                  converted_components.append(
                      "--cuda-gpu-arch=sm_" + capability
                  )
          elif components[i].find("--std=c++14") != -1:
              converted_components.append("-std=c++14")
          elif components[i].startswith("-isystem="):
              converted_components.extend(components[i].split("="))
          else:
              converted_components.append(components[i])
  
      converted_components.append("-isystem /usr/local/cuda/include/")
  
      command = ""
      for c in converted_components:
          command = command + " " + c
      command = command.strip()
      return command
  
imports: import argparse
  import json
  import os
  import re
  import shutil
  import subprocess
  import sys
  from multiprocessing import Pool, cpu_count
  from time import time
  import yaml
label_desc: Use image node_id 5 for calling the ClangTidy obj's underlying member method code with example usage: obj.convert_nvcc_command_to_clang(command) and returns: command