//===- llvm-cov.cpp - LLVM coverage tool ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // llvm-cov is a command line tools to analyze and report coverage information. // //===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/InitLLVM.h" #include "llvm/Support/Path.h" #include "llvm/Support/Process.h" #include "llvm/Support/raw_ostream.h" #include <string> usingnamespacellvm; /// The main entry point for the 'show' subcommand. int showMain(int argc, const char *argv[]); /// The main entry point for the 'report' subcommand. int reportMain(int argc, const char *argv[]); /// The main entry point for the 'export' subcommand. int exportMain(int argc, const char *argv[]); /// The main entry point for the 'convert-for-testing' subcommand. int convertForTestingMain(int argc, const char *argv[]); /// The main entry point for the gcov compatible coverage tool. int gcovMain(int argc, const char *argv[]); /// Top level help. static int helpMain(int argc, const char *argv[]) { … } /// Top level version information. static int versionMain(int argc, const char *argv[]) { … } int main(int argc, const char **argv) { … }