<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117145>117145</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lldb `ClangExpressionParser.cpp:783:15: error: no matching member function for call to 'createDiagnostics'`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb,
build-problem
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
On linux:
```
/build/source/build-llvm/bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Plugins/ExpressionParser/Clang -I/build/source/lldb/source/Plugins/ExpressionParser/Clang -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.12 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=3 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT tools/lldb/source/Plugins/ExpressionParser/Clang/CMakeFiles/lldbPluginExpressionParserClang.dir/ClangExpressionParser.cpp.o -MF tools/lldb/source/Plugins/ExpressionParser/Clang/CMakeFiles/lldbPluginExpressionParserClang.dir/ClangExpressionParser.cpp.o.d -o tools/lldb/source/Plugins/ExpressionParser/Clang/CMakeFiles/lldbPluginExpressionParserClang.dir/ClangExpressionParser.cpp.o -c /build/source/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
/build/source/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:783:15: error: no matching member function for call to 'createDiagnostics'
783 | m_compiler->createDiagnostics();
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/build/source/clang/include/clang/Frontend/CompilerInstance.h:687:8: note: candidate function not viable: requires at least argument 'VFS', but no arguments were provided
687 | void createDiagnostics(llvm::vfs::FileSystem &VFS,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
688 | DiagnosticConsumer *Client = nullptr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
689 | bool ShouldOwnClient = true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/clang/include/clang/Frontend/CompilerInstance.h:710:3: note: candidate function not viable: requires at least 2 arguments, but 0 were provided
710 | createDiagnostics(llvm::vfs::FileSystem &VFS, DiagnosticOptions *Opts,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
711 | DiagnosticConsumer *Client = nullptr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
712 | bool ShouldOwnClient = true,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
713 | const CodeGenOptions *CodeGenOpts = nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMWFtv2zgW_jX0C0HDonx98INixd0Am7jIZYJ9CijySOaWIjW8OMk-zG9fUJJrx02amWmmKFFI1SHP-c75-PESM-dkpQGWaHKGJvmABb81dume1Q6ctzAojHhebjRWUocnlGZolKNRhqaj_l_32T3pughSCUTXzgTLYW8gSu3q-CE1omuumK4QPUP0DJP8X9lv5w_Xm7urHJP84dPV3cPN5u56dR6_Hm5u89XDanN1c5td3T5cZqvrzc2hY725vsy-Nf_74vLiYL14NytvjHKHvNbOswooKaR2R71KieI4xGcVqm7E-VNjwTlp9GdmHVhE16sY6g3sjw4kNVdBwIdX-mFxvx-oD_FiUHD2YEJ03Tz7rdHpMKFvBNkD_1NcDId_GuTF9P5D8sNEumfnocavkKVk8VQrikmpDTG19KS0rAbSGKk9WEzqvV0BK087S-cZ_0Iaazxwbyxx3poowb6DK-a2-25pNCb3pbE185jcg7XGojTvDMQBD1b6Z0zqwjLNj91QmjvPtGBWYHKvDQk6OBCEm7pmWhAlNRBmq1CDjqEF80C8rCEu8_Xm-vZi_Z9-o0BpnmJSfr5YdSU7qJn2kpO2osY42eVZ7qSThVTSPxOpI4AjWykE6KPUj3C-2oKuArMCBGE7JhXrY2h4xOSeKRWHPnnLXhTSsMhrS-n9o5UeIpFSVw6Te86cJ78HFj1r6ZzUFSklKEGkll4yJf8H1mHSgGgr6QIro6v2ESN02-diHglrmCdtArF0icm9rBsleZx4ppTfWhOqbXQyO7AgiHuUnm-JgJIF5bvg2sATh8YT_9xAa9JkJ60PTBHhTaxCgAIP5JUeF6oKnCcxvpVxZdx3xRJu9A6s63RSS6eAiWiXWoD2rBcQ90yQmj0XQIJ2oWmM9SAwKYVklTbOS-4INyqClWXQrYKivOLbxXHMs-PvUiogjYVSPpGaNSj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