blob: cd4cd912b1bea6d5eaf0dfb4edf9e7ea988827a6 [file] [log] [blame]
Alexander Kornienko761c25b2014-09-26 12:44:30 +00001// RUN: $(dirname %s)/check_clang_tidy_fix.sh %s google-readability-todo %t -config="{User: 'some user'}" --
Benjamin Kramer6be414d2014-09-18 12:53:13 +00002// REQUIRES: shell
3
4// TODOfix this1
5// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +00006// CHECK-FIXES: // TODO(some user): fix this1
Benjamin Kramer6be414d2014-09-18 12:53:13 +00007
8// TODO fix this2
9// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +000010// CHECK-FIXES: // TODO(some user): fix this2
Benjamin Kramer6be414d2014-09-18 12:53:13 +000011
12// TODO fix this3
13// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +000014// CHECK-FIXES: // TODO(some user): fix this3
Benjamin Kramer6be414d2014-09-18 12:53:13 +000015
16// TODO: fix this4
17// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +000018// CHECK-FIXES: // TODO(some user): fix this4
Benjamin Kramer6be414d2014-09-18 12:53:13 +000019
20// TODO(clang)fix this5
21
22// TODO(foo):shave yaks
23// TODO(bar):
24// TODO(foo): paint bikeshed
25// TODO(b/12345): find the holy grail
Alexander Kornienko2f03c8a2014-10-05 23:40:30 +000026// TODO (b/12345): allow spaces before parentheses
27// TODO(asdf) allow missing semicolon