summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-03-21 15:33:24 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-03-21 15:33:24 +0000
commit33ef20ec2f1324b1fbee60f502d9a3ede550d5d8 (patch)
treeadeee29f521a1605b5b695f62fffededb7c34872 /clang/lib/ASTMatchers/ASTMatchersInternal.cpp
parentde0e4ae024eced8fa952c4b8d9e0f0a607a0a86b (diff)
downloadbcm5719-llvm-33ef20ec2f1324b1fbee60f502d9a3ede550d5d8.tar.gz
bcm5719-llvm-33ef20ec2f1324b1fbee60f502d9a3ede550d5d8.zip
[ASTTypeTraits][ASTMatchers][OpenMP] OMPClause handling
Summary: `OMPClause` is the base class, it is not descendant from **any** other class, therefore for it to work with e.g. `VariadicDynCastAllOfMatcher<>`, it needs to be handled here. Reviewers: sbenza, bkramer, pcc, klimek, hokein, gribozavr, aaron.ballman, george.karpenkov Reviewed By: gribozavr, aaron.ballman Subscribers: guansong, jdoerfert, alexfh, ABataev, cfe-commits Tags: #openmp, #clang Differential Revision: https://reviews.llvm.org/D57112 llvm-svn: 356675
Diffstat (limited to 'clang/lib/ASTMatchers/ASTMatchersInternal.cpp')
-rw-r--r--clang/lib/ASTMatchers/ASTMatchersInternal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
index 654a6c28c05..a09ae3ad2e4 100644
--- a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
+++ b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
@@ -847,6 +847,8 @@ AST_TYPELOC_TRAVERSE_MATCHER_DEF(
const internal::VariadicDynCastAllOfMatcher<Stmt, OMPExecutableDirective>
ompExecutableDirective;
+const internal::VariadicDynCastAllOfMatcher<OMPClause, OMPDefaultClause>
+ ompDefaultClause;
} // end namespace ast_matchers
} // end namespace clang
OpenPOWER on IntegriCloud