aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-27 21:06:17 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-27 21:06:17 +0000
commit75f6e89ea9f8fe9cf8c8f9fe6a3322bd6566fdf1 (patch)
tree0d923a8f897fd4e6dfc9c2d67e8a815390a7771c /utils
parent9c1858cf4a91d0f373d2315ccf834adedd197e6e (diff)
downloadexternal_llvm-75f6e89ea9f8fe9cf8c8f9fe6a3322bd6566fdf1.zip
external_llvm-75f6e89ea9f8fe9cf8c8f9fe6a3322bd6566fdf1.tar.gz
external_llvm-75f6e89ea9f8fe9cf8c8f9fe6a3322bd6566fdf1.tar.bz2
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index dccf8fa..9f07607 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";