diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-17 02:32:07 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-17 02:32:07 +0000 |
commit | 5bb28629c0fba013b1342ddf6a7e0708cbc67fb4 (patch) | |
tree | 9da55d87dee40c85fc0e2de6571ba4add07cffe9 /include | |
parent | a6264641edbd5cca1651e8117c3e0666e3757118 (diff) | |
download | clang-5bb28629c0fba013b1342ddf6a7e0708cbc67fb4.tar.gz clang-5bb28629c0fba013b1342ddf6a7e0708cbc67fb4.tar.bz2 clang-5bb28629c0fba013b1342ddf6a7e0708cbc67fb4.tar.xz |
[OPENMP] Renamed 'DataRecursiveASTVisitor' to just 'RecursiveASTVisitor' for 'reduction' clause and small reformatting after Alp Toker's review.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/DataRecursiveASTVisitor.h | 4 | ||||
-rw-r--r-- | include/clang/AST/RecursiveASTVisitor.h | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/include/clang/AST/DataRecursiveASTVisitor.h b/include/clang/AST/DataRecursiveASTVisitor.h index 1c618f55fd..a31965c48b 100644 --- a/include/clang/AST/DataRecursiveASTVisitor.h +++ b/include/clang/AST/DataRecursiveASTVisitor.h @@ -2392,8 +2392,8 @@ bool RecursiveASTVisitor<Derived>::VisitOMPCopyinClause(OMPCopyinClause *C) { } template <typename Derived> -bool DataRecursiveASTVisitor<Derived>::VisitOMPReductionClause( - OMPReductionClause *C) { +bool +RecursiveASTVisitor<Derived>::VisitOMPReductionClause(OMPReductionClause *C) { TRY_TO(TraverseNestedNameSpecifierLoc(C->getQualifierLoc())); TRY_TO(TraverseDeclarationNameInfo(C->getNameInfo())); VisitOMPClauseList(C); diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 61fb0aad8f..b0ba684e74 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -2392,15 +2392,6 @@ bool RecursiveASTVisitor<Derived>::VisitOMPSharedClause(OMPSharedClause *C) { return true; } -template <typename Derived> -bool RecursiveASTVisitor<Derived>::VisitOMPReductionClause( - OMPReductionClause *C) { - TRY_TO(TraverseNestedNameSpecifierLoc(C->getQualifierLoc())); - TRY_TO(TraverseDeclarationNameInfo(C->getNameInfo())); - VisitOMPClauseList(C); - return true; -} - template<typename Derived> bool RecursiveASTVisitor<Derived>::VisitOMPLinearClause(OMPLinearClause *C) { VisitOMPClauseList(C); @@ -2421,6 +2412,15 @@ bool RecursiveASTVisitor<Derived>::VisitOMPCopyinClause(OMPCopyinClause *C) { return true; } +template <typename Derived> +bool +RecursiveASTVisitor<Derived>::VisitOMPReductionClause(OMPReductionClause *C) { + TRY_TO(TraverseNestedNameSpecifierLoc(C->getQualifierLoc())); + TRY_TO(TraverseDeclarationNameInfo(C->getNameInfo())); + VisitOMPClauseList(C); + return true; +} + // FIXME: look at the following tricky-seeming exprs to see if we // need to recurse on anything. These are ones that have methods // returning decls or qualtypes or nestednamespecifier -- though I'm |