Skip to content

Commit b8432da

Browse files
committed
Try to fix CI and address review comment.
1 parent 8251c5d commit b8432da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/test/tools/clang_tidy_checks/robust_against_operator_ampersand.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88

99
#include "clang-tidy/ClangTidyCheck.h"
1010
#include "clang-tidy/ClangTidyModuleRegistry.h"
11+
#include "clang/ASTMatchers/ASTMatchers.h"
1112
#include "clang/Tooling/FixIt.h"
1213

1314
#include "robust_against_operator_ampersand.hpp"
1415

1516
// This clang-tidy check ensures that we don't use operator& on dependant
1617
// types. If the type is user supplied it may call the type's operator&.
1718
// Instead use std::addressof.
19+
//
20+
// This is part of libc++'s policy
21+
// https://libcxx.llvm.org/CodingGuidelines.html#don-t-use-argument-dependent-lookup-unless-required-by-the-standard
1822

1923
namespace libcpp {
2024
robust_against_operator_ampersand::robust_against_operator_ampersand(

0 commit comments

Comments
 (0)