clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
20 lines
378 B
C++
20 lines
378 B
C++
#ifndef LLVM_SUPPORT_REVERSEITERATION_H
|
|
#define LLVM_SUPPORT_REVERSEITERATION_H
|
|
|
|
#include "llvm/Config/abi-breaking.h"
|
|
#include "llvm/Support/PointerLikeTypeTraits.h"
|
|
|
|
namespace llvm {
|
|
|
|
template<class T = void *>
|
|
bool shouldReverseIterate() {
|
|
#if LLVM_ENABLE_REVERSE_ITERATION
|
|
return detail::IsPointerLike<T>::value;
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
|
|
} // namespace llvm
|
|
#endif
|