Skip to content

Commit 6681cc6

Browse files
committed
Another attempt at the CI.
1 parent b8432da commit 6681cc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcxx/test/tools/clang_tidy_checks/robust_against_operator_ampersand.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
// This is part of libc++'s policy
2121
// https://libcxx.llvm.org/CodingGuidelines.html#don-t-use-argument-dependent-lookup-unless-required-by-the-standard
2222

23+
// TODO(LLVM-21) Remove dependentScopeDeclRefExpr
24+
// dependentScopeDeclRefExpr requires Clang 20, this uses the same definition as Clang
25+
#if defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER < 2000
26+
const clang::ast_matchers::internal::VariadicDynCastAllOfMatcher<clang::Stmt, clang::DependentScopeDeclRefExpr>
27+
clang::ast_matchers::dependentScopeDeclRefExpr;
28+
#endif
29+
2330
namespace libcpp {
2431
robust_against_operator_ampersand::robust_against_operator_ampersand(
2532
llvm::StringRef name, clang::tidy::ClangTidyContext* context)

0 commit comments

Comments
 (0)