Silence an "illegal conversion" diagnostic
authorAaron Ballman <aaron@aaronballman.com>
Mon, 27 Jun 2022 16:02:34 +0000 (12:02 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 27 Jun 2022 16:04:01 +0000 (12:04 -0400)
commit9878e17624d811965f46661a095d6a8b1fc8e110
tree2791790c7e4a61e77f7ef25c780673b48df9b811
parent92fd2eb74f5b9cc3c0b4ce6c7de3c2866fa40b3a
Silence an "illegal conversion" diagnostic

MSVC was issuing "illegal conversion; more than one user-defined
conversion has been implicitly applied" as a warning on this code.
Explicitly calling .str() causes a StringRef to be materialized so
that a second user-defined conversion is not required.
clang-tools-extra/clangd/CompileCommands.cpp