[PATCH] D114837: format: Remove redundant calls to guessIsObjC to speed up clang-format on unknown file types

David Van Cleve via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 24 11:25:36 PDT 2022


davidvc1 added a comment.
Herald added a project: All.

@curdeius , the PR description mentions the reason: when you pipe input from stdin, clang-format has to run through the "is it objective C?" codepath, and this is the codepath with the bug.

On the other hand, when you pass a .cpp file as a file path input, it doesn't need to figure out whether the code is objective C.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114837



More information about the cfe-commits mailing list