Extend the default string like classes to include std::basic_string_view.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst | ||
---|---|---|
27 | I'm not certain how to read that last sentence (I read it as: the list of methods is considered fixed and cannot be extended, which seems like a bad interpretation). Maybe it's talking about fix-its instead? Regardless, the typo consired -> consider should be fixed. |
clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst | ||
---|---|---|
27 | That typo was here before I got here, but I think it means The list of methods inside the classes to consider are fixed. In other words you can't make the check detect calls to ::MyStringClass::MyFind(). Does The list of methods inside the classes to consider are fixed. sound like a good replacement for the it? |
clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst | ||
---|---|---|
27 | Oh, I understand now, thank you! The "fixed" keeps throwing me though, so I wonder if this is better still: The check will only consider member functions named "find", "rfind", "find_first_of", "find_first_not_of", "find_last_of", or "find_last_not_of" within these classes. or something? |
I'm not certain how to read that last sentence (I read it as: the list of methods is considered fixed and cannot be extended, which seems like a bad interpretation). Maybe it's talking about fix-its instead?
Regardless, the typo consired -> consider should be fixed.