<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61221>61221</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-16.0.0rc3][include-cleaner] invalid operands to binary expression
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          fafryd1125
      </td>
    </tr>
</table>

<pre>
    ```
[1726/2086] Building CXX object tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/AnalysisTest.cpp.o
FAILED: tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/AnalysisTest.cpp.o
/usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/clang/src/clang-16.0.0rc3.src/build/tools/extra/include-cleaner/unittests -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests -I/build/clang/src/clang-16.0.0rc3.src/include -I/build/clang/src/clang-16.0.0rc3.src/build/include -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/include -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/../lib -fdiagnostics-color -march=native -O3 -pipe -fstack-protector-strong -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -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 -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 -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++17 -MD -MT tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/AnalysisTest.cpp.o -MF tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/AnalysisTest.cpp.o.d -o tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/AnalysisTest.cpp.o -c /build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/AnalysisTest.cpp
In file included from /build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/AnalysisTest.cpp:24:
In file included from /usr/include/gmock/gmock.h:56:
In file included from /usr/include/gmock/gmock-actions.h:145:
In file included from /usr/include/gmock/internal/gmock-internal-utils.h:50:
In file included from /usr/include/gtest/gtest.h:64:
In file included from /usr/include/gtest/gtest-assertion-result.h:46:
/usr/include/gtest/gtest-message.h:132:10: error: invalid operands to binary expression ('std::basic_stringstream<char>' and 'const llvm::StringRef')
    *ss_ << val;
    ~~~~ ^ ~~~
```
```
  1729/2086] Building CXX object tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o
FAILED: tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o
/usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/clang/src/clang-16.0.0rc3.src/build/tools/extra/include-cleaner/unittests -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests -I/build/clang/src/clang-16.0.0rc3.src/include -I/build/clang/src/clang-16.0.0rc3.src/build/include -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/include -I/build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/../lib -fdiagnostics-color -march=native -O3 -pipe -fstack-protector-strong -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -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 -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 -fno-common -Woverloaded-virtual -pedantic -Wno-long-long -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++17 -MD -MT tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o -MF tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o.d -o tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o -c /build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/LocateSymbolTest.cpp
In file included from /build/clang/src/clang-tools-extra-16.0.0rc3.src/include-cleaner/unittests/LocateSymbolTest.cpp:20:
In file included from /usr/include/gmock/gmock.h:56:
In file included from /usr/include/gmock/gmock-actions.h:145:
In file included from /usr/include/gmock/internal/gmock-internal-utils.h:50:
In file included from /usr/include/gtest/gtest.h:64:
In file included from /usr/include/gtest/gtest-assertion-result.h:46:
/usr/include/gtest/gtest-message.h:132:10: error: invalid operands to binary expression ('std::basic_stringstream<char>' and 'const llvm::StringRef')
    *ss_ << val;
    ~~~~ ^ ~~~
```
An error only occurs in `clang-16.0.0rc3` standalone build
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWV1v4jwW_jXmxjIKDgnlgotAyiukfqxKX9G9Qo59Erzj2Fn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