summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/PartialDiagnostic.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-27 00:13:57 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-27 00:13:57 +0000
commita6ec7ad25a137fd42d84e6b6d44b32976cae440c (patch)
tree1e5b9a0a0355d71f0bfd9b133deb476624842696 /include/clang/Basic/PartialDiagnostic.h
parentb790661a15d93941d2c33a0ea328254277b3d7e3 (diff)
New RequireNonAbstractType function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/PartialDiagnostic.h')
-rw-r--r--include/clang/Basic/PartialDiagnostic.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/clang/Basic/PartialDiagnostic.h b/include/clang/Basic/PartialDiagnostic.h
index 6a6e6128ff..b4ba793e7e 100644
--- a/include/clang/Basic/PartialDiagnostic.h
+++ b/include/clang/Basic/PartialDiagnostic.h
@@ -115,18 +115,23 @@ public:
}
friend const PartialDiagnostic &operator<<(const PartialDiagnostic &PD,
- QualType T) {
+ QualType T) {
PD.AddTaggedVal(reinterpret_cast<intptr_t>(T.getAsOpaquePtr()),
Diagnostic::ak_qualtype);
return PD;
}
+ friend const PartialDiagnostic &operator<<(const PartialDiagnostic &PD,
+ unsigned I) {
+ PD.AddTaggedVal(I, Diagnostic::ak_uint);
+ return PD;
+ }
+
friend inline const PartialDiagnostic &operator<<(const PartialDiagnostic &PD,
const SourceRange &R) {
PD.AddSourceRange(R);
return PD;
}
-
};
inline PartialDiagnostic PDiag(unsigned DiagID) {