[all-commits] [llvm/llvm-project] 2b95b5: [lldb][ClangExpression] Fix LLDB_LOG incorrect for...

Michael137 via All-commits all-commits at lists.llvm.org
Fri Aug 26 02:07:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b95b50dd69b03be793357cbadae70d413b375a5
      https://github.com/llvm/llvm-project/commit/2b95b50dd69b03be793357cbadae70d413b375a5
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list