summaryrefslogtreecommitdiffstats
path: root/lib/Parse
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2017-03-27 13:11:32 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2017-03-27 13:11:32 +0000
commit10d0b66f7cf4d8851255f35ce81ea5b3825d370b (patch)
tree26c51b827153d53585d446dfc1552c43e7e93fc4 /lib/Parse
parenteebc9325977cd41a773fc2fab60281c7d9fa6bab (diff)
Publish one more parser RAII for external use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse')
-rw-r--r--lib/Parse/Parser.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index c938cc9b5e..08b7661a8a 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -37,26 +37,6 @@ public:
return false;
}
};
-
-/// \brief RAIIObject to destroy the contents of a SmallVector of
-/// TemplateIdAnnotation pointers and clear the vector.
-class DestroyTemplateIdAnnotationsRAIIObj {
- SmallVectorImpl<TemplateIdAnnotation *> &Container;
-
-public:
- DestroyTemplateIdAnnotationsRAIIObj(
- SmallVectorImpl<TemplateIdAnnotation *> &Container)
- : Container(Container) {}
-
- ~DestroyTemplateIdAnnotationsRAIIObj() {
- for (SmallVectorImpl<TemplateIdAnnotation *>::iterator I =
- Container.begin(),
- E = Container.end();
- I != E; ++I)
- (*I)->Destroy();
- Container.clear();
- }
-};
} // end anonymous namespace
IdentifierInfo *Parser::getSEHExceptKeyword() {