llvm/clang/tools/diagtool/DiagnosticNames.cpp

//===- DiagnosticNames.cpp - Defines a table of all builtin diagnostics ----==//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "DiagnosticNames.h"
#include "clang/Basic/AllDiagnostics.h"
#include "llvm/ADT/STLExtras.h"

usingnamespaceclang;
usingnamespacediagtool;

static const DiagnosticRecord BuiltinDiagnosticsByName[] =;

llvm::ArrayRef<DiagnosticRecord> diagtool::getBuiltinDiagnosticsByName() {}


// FIXME: Is it worth having two tables, especially when this one can get
// out of sync easily?
static const DiagnosticRecord BuiltinDiagnosticsByID[] =;

static bool orderByID(const DiagnosticRecord &Left,
                      const DiagnosticRecord &Right) {}

const DiagnosticRecord &diagtool::getDiagnosticForID(short DiagID) {}


#define GET_DIAG_ARRAYS
#include "clang/Basic/DiagnosticGroups.inc"
#undef GET_DIAG_ARRAYS

// Second the table of options, sorted by name for fast binary lookup.
static const GroupRecord OptionTable[] =;

llvm::StringRef GroupRecord::getName() const {}

GroupRecord::subgroup_iterator GroupRecord::subgroup_begin() const {}

GroupRecord::subgroup_iterator GroupRecord::subgroup_end() const {}

llvm::iterator_range<diagtool::GroupRecord::subgroup_iterator>
GroupRecord::subgroups() const {}

GroupRecord::diagnostics_iterator GroupRecord::diagnostics_begin() const {}

GroupRecord::diagnostics_iterator GroupRecord::diagnostics_end() const {}

llvm::iterator_range<diagtool::GroupRecord::diagnostics_iterator>
GroupRecord::diagnostics() const {}

llvm::ArrayRef<GroupRecord> diagtool::getDiagnosticGroups() {}