github-actions[bot] wrote: <!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning: <details> <summary> You can test this locally with the following command: </summary> ``````````bash git-clang-format --diff fdca2c33a1f33f4886d969ea0f0219764c7b6b59 f8fb04379255a783f1fbdcd07cfff5846d253d32 --extensions cpp -- clang/lib/Basic/SourceManager.cpp clang/unittests/Basic/SourceManagerTest.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index 8d6e6e789c..7e48cb5313 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -470,13 +470,13 @@ TEST_F(SourceManagerTest, ResetsIncludeLocMap) { }; auto Buf = llvm::MemoryBuffer::getMemBuffer(""); - FileEntryRef HeaderFile = FileMgr.getVirtualFileRef( - "/foo.h", Buf->getBufferSize(), 0); + FileEntryRef HeaderFile = + FileMgr.getVirtualFileRef("/foo.h", Buf->getBufferSize(), 0); SourceMgr.overrideFileContents(HeaderFile, std::move(Buf)); Buf = llvm::MemoryBuffer::getMemBuffer(R"cpp(#include "/foo.h")cpp"); - FileEntryRef BarFile = FileMgr.getVirtualFileRef( - "/bar.h", Buf->getBufferSize(), 0); + FileEntryRef BarFile = + FileMgr.getVirtualFileRef("/bar.h", Buf->getBufferSize(), 0); SourceMgr.overrideFileContents(BarFile, std::move(Buf)); SourceMgr.createFileID(BarFile, {}, clang::SrcMgr::C_User); `````````` </details> https://github.com/llvm/llvm-project/pull/106241 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits