[clang] Perf/lexer faster slow get char and size (PR #70543)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 28 14:28:22 PDT 2023
================
@@ -2012,15 +2020,15 @@ bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) {
// If we have a digit separator, continue.
if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C23)) {
- unsigned NextSize;
- char Next = getCharAndSizeNoWarn(CurPtr + Size, NextSize, LangOpts);
+ auto NextCharAndSize = getCharAndSizeNoWarn(CurPtr + Size, LangOpts);
----------------
cor3ntin wrote:
Structured binding here?
https://github.com/llvm/llvm-project/pull/70543
More information about the cfe-commits
mailing list