summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2018-10-02 09:38:26 +0000
committerJonas Toth <jonas.toth@gmail.com>2018-10-02 09:38:26 +0000
commit240b8f39fea9b8e60476f4aee030998e39b2b87e (patch)
tree7fd276d4889b1d34f4abdc90ae9d74c7679595d4 /clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp
parent46619229acd53c4ed0ae9677bd5faa1dd9723a25 (diff)
downloadbcm5719-llvm-240b8f39fea9b8e60476f4aee030998e39b2b87e.tar.gz
bcm5719-llvm-240b8f39fea9b8e60476f4aee030998e39b2b87e.zip
[clang-tidy] NFC use CHECK-NOTES in test for cppgoreguidelines-avoid-goto
Reviewers: alexfh, aaron.ballman, hokein Reviewed By: alexfh Subscribers: nemanjai, xazax.hun, kbarton, cfe-commits Differential Revision: https://reviews.llvm.org/D52686 llvm-svn: 343565
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp b/clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp
index 213947f3709..ee236bc4469 100644
--- a/clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp
+++ b/clang-tools-extra/test/clang-tidy/cppcoreguidelines-avoid-goto.cpp
@@ -5,8 +5,8 @@ void noop() {}
int main() {
noop();
goto jump_to_me;
- // CHECK-MESSAGES: [[@LINE-1]]:3: warning: avoid using 'goto' for flow control
- // CHECK-MESSAGES: [[@LINE+3]]:1: note: label defined here
+ // CHECK-NOTES: [[@LINE-1]]:3: warning: avoid using 'goto' for flow control
+ // CHECK-NOTES: [[@LINE+3]]:1: note: label defined here
noop();
jump_to_me:;
@@ -14,14 +14,14 @@ jump_to_me:;
jump_backwards:;
noop();
goto jump_backwards;
- // CHECK-MESSAGES: [[@LINE-1]]:3: warning: avoid using 'goto' for flow control
- // CHECK-MESSAGES: [[@LINE-4]]:1: note: label defined here
+ // CHECK-NOTES: [[@LINE-1]]:3: warning: avoid using 'goto' for flow control
+ // CHECK-NOTES: [[@LINE-4]]:1: note: label defined here
goto jump_in_line;
;
jump_in_line:;
- // CHECK-MESSAGES: [[@LINE-3]]:3: warning: avoid using 'goto' for flow control
- // CHECK-MESSAGES: [[@LINE-2]]:1: note: label defined here
+ // CHECK-NOTES: [[@LINE-3]]:3: warning: avoid using 'goto' for flow control
+ // CHECK-NOTES: [[@LINE-2]]:1: note: label defined here
// Test the GNU extension https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
some_label:;
@@ -132,8 +132,8 @@ before_the_loop:
for (int j = 0; j < 10; ++j) {
if (i * j > 80)
goto before_the_loop;
- // CHECK-MESSAGES: [[@LINE-1]]:9: warning: avoid using 'goto' for flow control
- // CHECK-MESSAGES: [[@LINE-8]]:1: note: label defined here
+ // CHECK-NOTES: [[@LINE-1]]:9: warning: avoid using 'goto' for flow control
+ // CHECK-NOTES: [[@LINE-8]]:1: note: label defined here
}
}
}
OpenPOWER on IntegriCloud