aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp
index c1218e3..8c476366e 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers.cpp
@@ -6,7 +6,7 @@ public:
public: // comment-0
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-4]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-0{{$}}
+ // CHECK-FIXES: // comment-0
int b;
private:
int c;
@@ -18,7 +18,7 @@ public:
public: // comment-1
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-4]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-1{{$}}
+ // CHECK-FIXES: // comment-1
int b;
private:
int c;
@@ -30,7 +30,7 @@ public:
public: // comment-2
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-4]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-2{{$}}
+ // CHECK-FIXES: // comment-2
int b;
private:
int c;
@@ -42,7 +42,7 @@ protected:
protected: // comment-3
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-4]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-3{{$}}
+ // CHECK-FIXES: // comment-3
int b;
private:
int c;
@@ -54,7 +54,7 @@ private:
private: // comment-4
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-4]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-4{{$}}
+ // CHECK-FIXES: // comment-4
int b;
public:
int c;
@@ -70,7 +70,7 @@ private:
private: // comment-5
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
// CHECK-MESSAGES: :[[@LINE-8]]:1: note: previously declared here
- // CHECK-FIXES: {{^}}// comment-5{{$}}
+ // CHECK-FIXES: // comment-5
int c;
protected:
int d;