File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
libcxx/test/tools/clang_tidy_checks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 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
1923namespace libcpp {
2024robust_against_operator_ampersand::robust_against_operator_ampersand (
You can’t perform that action at this time.
0 commit comments