summaryrefslogtreecommitdiff
path: root/include/clang/Basic/DiagnosticIDs.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-10-20 05:07:47 +0000
committerTed Kremenek <kremenek@apple.com>2011-10-20 05:07:47 +0000
commitafdc21ad774eff6ed6c464e3f2dff9e26ed3d0b0 (patch)
tree89dce9a0530acec464a2774d3e88a2e2c2621b72 /include/clang/Basic/DiagnosticIDs.h
parent95aafb2453e1fecec8dcfd9e125cd78277f45859 (diff)
downloadclang-afdc21ad774eff6ed6c464e3f2dff9e26ed3d0b0.tar.gz
clang-afdc21ad774eff6ed6c464e3f2dff9e26ed3d0b0.tar.bz2
clang-afdc21ad774eff6ed6c464e3f2dff9e26ed3d0b0.tar.xz
Further refine the diagnostic categories for ARC diagnostics. Addresses <rdar://problem/10245086>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticIDs.h')
-rw-r--r--include/clang/Basic/DiagnosticIDs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h
index 16d9b39985..1ff6c11924 100644
--- a/include/clang/Basic/DiagnosticIDs.h
+++ b/include/clang/Basic/DiagnosticIDs.h
@@ -182,6 +182,10 @@ public:
/// category.
static StringRef getCategoryNameFromID(unsigned CategoryID);
+ /// isARCDiagnostic - Return true if a given diagnostic falls into an
+ /// ARC diagnostic category;
+ static bool isARCDiagnostic(unsigned DiagID);
+
/// \brief Enumeration describing how the the emission of a diagnostic should
/// be treated when it occurs during C++ template argument deduction.
enum SFINAEResponse {