#ifndef LLVM_CLANG_TOOLS_DIAGTOOL_DIAGNOSTICNAMES_H
#define LLVM_CLANG_TOOLS_DIAGTOOL_DIAGNOSTICNAMES_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
namespace diagtool {
struct DiagnosticRecord { … };
llvm::ArrayRef<DiagnosticRecord> getBuiltinDiagnosticsByName();
const DiagnosticRecord &getDiagnosticForID(short DiagID);
struct GroupRecord { … };
llvm::ArrayRef<GroupRecord> getDiagnosticGroups();
template<>
inline GroupRecord::subgroup_iterator::reference
GroupRecord::subgroup_iterator::operator*() const { … }
template<>
inline GroupRecord::diagnostics_iterator::reference
GroupRecord::diagnostics_iterator::operator*() const { … }
}
#endif