| 1 |
// RUN: %check_clang_tidy %s google-readability-todo %t -- -config="{User: 'some user'}" -- |
| 2 |
|
| 3 |
// TODOfix this1 |
| 4 |
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO |
| 5 |
// CHECK-FIXES: // TODO(some user): fix this1 |
| 6 |
|
| 7 |
// TODO fix this2 |
| 8 |
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO |
| 9 |
// CHECK-FIXES: // TODO(some user): fix this2 |
| 10 |
|
| 11 |
// TODO fix this3 |
| 12 |
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO |
| 13 |
// CHECK-FIXES: // TODO(some user): fix this3 |
| 14 |
|
| 15 |
// TODO: fix this4 |
| 16 |
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO |
| 17 |
// CHECK-FIXES: // TODO(some user): fix this4 |
| 18 |
|
| 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 |
| 25 |
// TODO (b/12345): allow spaces before parentheses |
| 26 |
// TODO(asdf) allow missing semicolon |