[PATCH] D138031: Add clang-tidy check for missing move constructors

Martin Bidlingmaier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 15 06:55:27 PST 2022


mbid added inline comments.


================
Comment at: clang/include/clang/Lex/Token.h:101
-    return is(K1) || is(K2);
-  }
   template <typename... Ts> bool isOneOf(tok::TokenKind K1, Ts... Ks) const {
----------------
This change is necessary to make `isOneOf` work with a single argument (and also no arguments). isOneOf is called from findNextAnyTokenKind, which is used in this patch with a single token type.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138031/new/

https://reviews.llvm.org/D138031



More information about the cfe-commits mailing list