[lldb][ClangExpression] Fix LLDB_LOG incorrect format specifier
authorMichael Buch <michaelbuch12@gmail.com>
Thu, 25 Aug 2022 22:41:47 +0000 (23:41 +0100)
committerMichael Buch <michaelbuch12@gmail.com>
Fri, 26 Aug 2022 09:06:38 +0000 (10:06 +0100)
commit2b95b50dd69b03be793357cbadae70d413b375a5
treeeb3607e12181ff2797f18296a60cd6ab0078cf6f
parent5e812e95804ae4d9aa1af46362203af18c1beaf7
[lldb][ClangExpression] Fix LLDB_LOG incorrect format specifier

Previously this would log:
```
 FindExternalLexicalDecls on (ASTContext*)0x00000005CE825200 'Expression
ASTContext for '<user expression 0>'' in 'weak_ptr'
(%sDecl*)ClassTemplateSpecialization
 FindExternalLexicalDecls on (ASTContext*)0x00000005CE825200 'Expression
ASTContext for '<user expression 0>'' in '__shared_count'
(%sDecl*)CXXRecord
```

Note that the `%s` isn't actually respected. This patch fixes this
by providing the format specifiers that `lldb::formatv` supports.

Differential Revision: https://reviews.llvm.org/D132709
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp