41 lines · cpp
1// RUN: %check_clang_tidy %s google-readability-todo %t -- -config="{User: 'some user'}" --2 3// TODOfix this14// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO5// CHECK-FIXES: // TODO: some user - fix this16 7// TODO fix this28// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO9// CHECK-FIXES: // TODO: some user - fix this210 11// TODO fix this312// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO13// CHECK-FIXES: // TODO: some user - fix this314 15// TODO: fix this416// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO17// CHECK-FIXES: // TODO: some user - fix this418 19// TODO: bug 12345 -20// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing details in TODO21 22// TODO: a message without a reference23// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO24// CHECK-FIXES: // TODO: some user - a message without a reference25 26// TODO(clang)fix this527 28// TODO: foo - shave yaks29// TODO:foo - no space bewteen semicolon and username30// TODO: foo- no space bewteen username and dash31// TODO: foo - extra spaces between semicolon and username32// TODO: foo - extra spaces between username and dash33// TODO: b/12345 - use a b/ prefix34// TODO: bug 12345 - use a space in username/bug reference35// TODO(foo):shave yaks36// TODO(bar):37// TODO(foo): paint bikeshed38// TODO(b/12345): find the holy grail39// TODO (b/12345): allow spaces before parentheses40// TODO(asdf) allow missing semicolon41