//===- ListWarnings.h - diagtool tool for printing warning flags ----------===// // // 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 // //===----------------------------------------------------------------------===// // // This file provides a diagtool tool that displays warning flags for // diagnostics. // //===----------------------------------------------------------------------===// #include "DiagTool.h" #include "DiagnosticNames.h" #include "clang/Basic/AllDiagnostics.h" #include "clang/Basic/Diagnostic.h" #include "llvm/ADT/StringMap.h" #include "llvm/Support/Format.h" DEF_DIAGTOOL(…) usingnamespaceclang; usingnamespacediagtool; namespace { struct Entry { … }; } static void printEntries(std::vector<Entry> &entries, llvm::raw_ostream &out) { … } int ListWarnings::run(unsigned int argc, char **argv, llvm::raw_ostream &out) { … }