2015-10-22 22:54:50 +08:00
|
|
|
// RUN: %check_clang_tidy %s google-readability-todo %t -- -config="{User: 'some user'}" --
|
2014-09-18 20:53:13 +08:00
|
|
|
|
|
|
|
// TODOfix this1
|
|
|
|
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
|
2014-09-26 20:44:30 +08:00
|
|
|
// CHECK-FIXES: // TODO(some user): fix this1
|
2014-09-18 20:53:13 +08:00
|
|
|
|
|
|
|
// TODO fix this2
|
|
|
|
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
|
2014-09-26 20:44:30 +08:00
|
|
|
// CHECK-FIXES: // TODO(some user): fix this2
|
2014-09-18 20:53:13 +08:00
|
|
|
|
|
|
|
// TODO fix this3
|
|
|
|
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
|
2014-09-26 20:44:30 +08:00
|
|
|
// CHECK-FIXES: // TODO(some user): fix this3
|
2014-09-18 20:53:13 +08:00
|
|
|
|
|
|
|
// TODO: fix this4
|
|
|
|
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO
|
2014-09-26 20:44:30 +08:00
|
|
|
// CHECK-FIXES: // TODO(some user): fix this4
|
2014-09-18 20:53:13 +08:00
|
|
|
|
|
|
|
// TODO(clang)fix this5
|
|
|
|
|
|
|
|
// TODO(foo):shave yaks
|
|
|
|
// TODO(bar):
|
|
|
|
// TODO(foo): paint bikeshed
|
|
|
|
// TODO(b/12345): find the holy grail
|
2014-10-06 07:40:30 +08:00
|
|
|
// TODO (b/12345): allow spaces before parentheses
|
|
|
|
// TODO(asdf) allow missing semicolon
|