// RUN: %check_clang_tidy %s google-readability-todo %t -- -config="{User: 'some user', CheckOptions: {google-readability-todo.Style: 'Parentheses'}}" -- // TODOfix this1 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO // CHECK-FIXES: // TODO(some user): fix this1 // TODO fix this2 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO // CHECK-FIXES: // TODO(some user): fix this2 // TODO fix this3 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO // CHECK-FIXES: // TODO(some user): fix this3 // TODO: fix this4 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO // CHECK-FIXES: // TODO(some user): fix this4 // TODO: bug 12345 - // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing details in TODO // TODO: a message without a reference // CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO // CHECK-FIXES: // TODO(some user): a message without a reference // TODO(clang)fix this5 // TODO: foo - shave yaks // TODO:foo - no space bewteen semicolon and username // TODO: foo- no space bewteen username and dash // TODO: foo - extra spaces between semicolon and username // TODO: foo - extra spaces between username and dash // TODO: b/12345 - use a b/ prefix // TODO: bug 12345 - use a space in username/bug reference // TODO(foo):shave yaks // TODO(bar): // TODO(foo): paint bikeshed // TODO(b/12345): find the holy grail // TODO (b/12345): allow spaces before parentheses // TODO(asdf) allow missing semicolon