blob: d2e3b6c2cc31ffcb15b8ab27e1a3e27b668d9dbf [file] [log] [blame]
Alexander Kornienko43556bb2015-08-20 17:58:07 +00001// RUN: %python %S/check_clang_tidy.py %s google-readability-todo %t -config="{User: 'some user'}" --
Benjamin Kramer6be414d2014-09-18 12:53:13 +00002
3// TODOfix this1
4// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +00005// CHECK-FIXES: // TODO(some user): fix this1
Benjamin Kramer6be414d2014-09-18 12:53:13 +00006
7// TODO fix this2
8// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +00009// CHECK-FIXES: // TODO(some user): fix this2
Benjamin Kramer6be414d2014-09-18 12:53:13 +000010
11// TODO fix this3
12// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +000013// CHECK-FIXES: // TODO(some user): fix this3
Benjamin Kramer6be414d2014-09-18 12:53:13 +000014
15// TODO: fix this4
16// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
Alexander Kornienko761c25b2014-09-26 12:44:30 +000017// CHECK-FIXES: // TODO(some user): fix this4
Benjamin Kramer6be414d2014-09-18 12:53:13 +000018
19// TODO(clang)fix this5
20
21// TODO(foo):shave yaks
22// TODO(bar):
23// TODO(foo): paint bikeshed
24// TODO(b/12345): find the holy grail
Alexander Kornienko2f03c8a2014-10-05 23:40:30 +000025// TODO (b/12345): allow spaces before parentheses
26// TODO(asdf) allow missing semicolon