Clang: separate the access-control diagnostics from other diagnostics that do not...
authorDouglas Gregor <dgregor@apple.com>
Thu, 27 Jan 2011 21:06:17 +0000 (21:06 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 27 Jan 2011 21:06:17 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124440 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index dccf8fa42ba68c41d0849e4ef5c94ad5798c2400..9f076073eda7dc7a6f3f2b4260621a67d9417371 100644 (file)
@@ -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";