diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-25 18:43:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-25 18:43:00 +0000 |
commit | d5a423b279e787e9fdd8309fe52cb515388c54ea (patch) | |
tree | e34663b41f84cf32294673358cd3469e745ba44f /include/clang/Basic/PartialDiagnostic.h | |
parent | 7498e50aea92276fdd8aceb7076b4156ee6dbab4 (diff) |
WIP implementation of explicit instantiation of function templates,
member functions of class template specializations, and static data
members. The mechanics are (mostly) present, but the semantic analysis
is very weak.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/PartialDiagnostic.h')
-rw-r--r-- | include/clang/Basic/PartialDiagnostic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/PartialDiagnostic.h b/include/clang/Basic/PartialDiagnostic.h index b4ba793e7e..d893dd3aef 100644 --- a/include/clang/Basic/PartialDiagnostic.h +++ b/include/clang/Basic/PartialDiagnostic.h @@ -18,9 +18,12 @@ #include "clang/AST/Type.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceLocation.h" +#include "llvm/ADT/STLExtras.h" namespace clang { +class DeclarationName; + class PartialDiagnostic { struct Storage { Storage() : NumDiagArgs(0), NumDiagRanges(0) { } @@ -132,6 +135,9 @@ public: PD.AddSourceRange(R); return PD; } + + friend const PartialDiagnostic &operator<<(const PartialDiagnostic &PD, + DeclarationName N); }; inline PartialDiagnostic PDiag(unsigned DiagID) { |