[all-commits] [llvm/llvm-project] f36344: [clang] Consistently store format specifiers in ex...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Tue May 5 12:01:46 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f36344486169086d0bdb7d973006bf9af0d22aa4
https://github.com/llvm/llvm-project/commit/f36344486169086d0bdb7d973006bf9af0d22aa4
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2026-05-05 (Tue, 05 May 2026)
Changed paths:
M clang/include/clang/AST/FormatString.h
M clang/lib/Sema/SemaChecking.cpp
Log Message:
-----------
[clang] Consistently store format specifiers in execution encoding (#195876)
`DecomposePrintfHandler::HandlePrintfSpecifier()` parses the format
string and collects specifiers into `Specs`. In most cases the collected
specifiers are in the execution encoding, but there were to places that
used string literals in "host" encoding.
Change them to use a part of the parsed `StringLiteral` instead so that
`Specs` always contain text in the execution encoding. This is achieved
by adding `getCharacters()` method to `OptionalAmount` class, following
`ConversionSpecifier::getCharacters()`.
This is to make #169803 smaller and is an NFC before that PR lands.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list