]> granicus.if.org Git - clang/commit
[OpenMP] Make the filetered clause iterator a real iterator and type safe.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Aug 2015 15:12:28 +0000 (15:12 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Aug 2015 15:12:28 +0000 (15:12 +0000)
commit0e98a65c8f4b429c6b14893912440d8c9503ffff
treecc8ff71ac6ecd0b6755d05618f568a273c6f4aae
parenta9262e954afed180c5ca29b1c52dc440238d0272
[OpenMP] Make the filetered clause iterator a real iterator and type safe.

This replaces the filtered generic iterator with a type-specfic one based
on dyn_cast instead of comparing the kind enum. This allows us to use
range-based for loops and eliminates casts. No functionality change
intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246384 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/StmtOpenMP.h
lib/AST/Stmt.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/Sema/SemaOpenMP.cpp