[all-commits] [llvm/llvm-project] 9878e1: Silence an "illegal conversion" diagnostic

Aaron Ballman via All-commits all-commits at lists.llvm.org
Mon Jun 27 09:39:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9878e17624d811965f46661a095d6a8b1fc8e110
      https://github.com/llvm/llvm-project/commit/9878e17624d811965f46661a095d6a8b1fc8e110
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M clang-tools-extra/clangd/CompileCommands.cpp

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




More information about the All-commits mailing list