Commit 01213f90 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

[clang-tidy] Initialize token before handing it to the lexer

Found by msan.
parent 79748add
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@ classifyToken(const FunctionDecl &F, Preprocessor &PP, Token Tok) {
  bool ContainsSomethingElse = false;

  Token End;
  End.startToken();
  End.setKind(tok::eof);
  SmallVector<Token, 2> Stream{Tok, End};