[all-commits] [llvm/llvm-project] 0556ab: [clang-format][NFC] Improve efficiency of isFuncti...

Owen via All-commits all-commits at lists.llvm.org
Fri Jul 7 16:29:52 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0556ab33532964dd8720b3b3ebd87dfe459d81d2
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp

  Log Message:
  [clang-format][NFC] Improve efficiency of isFunctionDeclarationName

Return immediately in isFunctionDeclarationName() if the token is neither a
keyword nor an identifier.

More information about the All-commits mailing list