From: Douglas Gregor Date: Thu, 27 Jan 2011 21:06:17 +0000 (+0000) Subject: Clang: separate the access-control diagnostics from other diagnostics that do not... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=75f6e89ea9f8fe9cf8c8f9fe6a3322bd6566fdf1;p=oota-llvm.git Clang: separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124440 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp index dccf8fa42ba..9f076073eda 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.cpp +++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp @@ -170,7 +170,13 @@ void ClangDiagsDefsEmitter::run(raw_ostream &OS) { OS << ", true"; else OS << ", false"; - + + // Access control bit + if (R.getValueAsBit("AccessControl")) + OS << ", true"; + else + OS << ", false"; + // Category number. OS << ", " << CategoryIDs.getID(getDiagnosticCategory(&R, DGParentMap)); OS << ")\n";