[PATCH] D77701: [Sema] refactor static functions into private methods NFC

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 04:49:47 PDT 2020


aaron.ballman added a reviewer: rsmith.
aaron.ballman added a comment.

OTOH, this is reasonable, NFC, and I tend to agree about it being a code smell.
OTOH, this makes parsing Sema.h that much slower and adds even more text for us to wade through in that header file.

Given that the approaches are equivalent except for smell and that Sema.h is already 12kLoC long, I would rather leave this as-is or possibly even see us go in the opposite direction and use static functions whenever there's a private function only used in a single .cpp file and making it static doesn't make it overly awkward for some reason.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77701





More information about the cfe-commits mailing list