Skip to content

Commit bc68ee1

Browse files
committed
Addresses review comments.
1 parent 3f89222 commit bc68ee1

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

libcxx/test/libcxx/clang_tidy.gen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#
77
# ===----------------------------------------------------------------------===##
88

9+
910
# Run our custom libc++ clang-tidy checks on all public headers.
1011

1112
# RUN: %{python} %s %{libcxx-dir}/utils
@@ -23,6 +24,9 @@
2324
2425
// REQUIRES: has-clang-tidy
2526
27+
// The frozen headers should not be updated to the latest libc++ style, so don't test.
28+
// UNSUPPORTED: FROZEN-CXX03-HEADERS-FIXME
29+
2630
// The GCC compiler flags are not always compatible with clang-tidy.
2731
// UNSUPPORTED: gcc
2832

libcxx/test/tools/clang_tidy_checks/robust_against_operator_ampersand.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@
1919
namespace libcpp {
2020
robust_against_operator_ampersand::robust_against_operator_ampersand(
2121
llvm::StringRef name, clang::tidy::ClangTidyContext* context)
22-
: clang::tidy::ClangTidyCheck(name, context), disabled_(!context->getLangOpts().CPlusPlus11) {}
22+
: clang::tidy::ClangTidyCheck(name, context) {}
2323

2424
void robust_against_operator_ampersand::registerMatchers(clang::ast_matchers::MatchFinder* finder) {
25-
if (disabled_)
26-
return;
27-
2825
using namespace clang::ast_matchers;
2926
finder->addMatcher(
3027
cxxOperatorCallExpr(allOf(hasOperatorName("&"), argumentCountIs(1), isTypeDependent()),

libcxx/test/tools/clang_tidy_checks/robust_against_operator_ampersand.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010

1111
namespace libcpp {
1212
class robust_against_operator_ampersand : public clang::tidy::ClangTidyCheck {
13-
// At the moment libc++ is phasing out development on C++03.
14-
// To avoid testing in C++03, this test is automatically disabled in C++03
15-
// mode. (Doing this from the tests is a lot harder.)
16-
// TODO Remove after dropping C++03 support.
17-
bool disabled_;
18-
1913
public:
2014
robust_against_operator_ampersand(llvm::StringRef, clang::tidy::ClangTidyContext*);
2115
void registerMatchers(clang::ast_matchers::MatchFinder*) override;

0 commit comments

Comments
 (0)