blob: 6b900aa92150e89112e0b77bd9178db77b992199 [file] [log] [blame]
Manuel Klimek8f9e4442015-10-22 14:54:50 +00001// RUN: %check_clang_tidy %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