[PATCH] D90282: [clang-tidy] Add IgnoreShortNames config to identifier naming checks

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 19 12:49:42 PST 2020


njames93 added a comment.

In D90282#2405615 <https://reviews.llvm.org/D90282#2405615>, @aaron.ballman wrote:

> I don't have a strong opinion on that approach. It would be a more flexible approach and that's appealing, but it also means writing regular expressions which is a bit unappealing because those aren't obvious to everyone and it's unclear what the performance characteristics would be of running those regexes on every identifier in the program. I'm curious if @alexfh or @njames93 (or others) have opinions on this.

For the record, when profiling this (and other RenamerClangTidy based checks) are the slowest(by some margin) checks to run. 
This check also uses regex to determine if identifiers are correctly named and to split words in identifiers if they need changing.
Based off that I don't think there is huge performance concerns for using a regex for a couple of styles.


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

https://reviews.llvm.org/D90282



More information about the cfe-commits mailing list