[llvm-commits] [llvm] r124440 - /llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Douglas Gregor
dgregor at apple.com
Thu Jan 27 13:06:17 PST 2011
Author: dgregor
Date: Thu Jan 27 15:06:17 2011
New Revision: 124440
URL: http://llvm.org/viewvc/llvm-project?rev=124440&view=rev
Log:
Clang: separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior.
Modified:
llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Modified: llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp?rev=124440&r1=124439&r2=124440&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Thu Jan 27 15:06:17 2011
@@ -170,7 +170,13 @@
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";
More information about the llvm-commits
mailing list