Author: rksimon Date: Mon Aug 14 04:05:56 2017 New Revision: 310830 URL: http://llvm.org/viewvc/llvm-project?rev=310830&view=rev Log: Add braces to silence gcc dangling-else warnings. NFCI.
Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp?rev=310830&r1=310829&r2=310830&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp (original) +++ clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Mon Aug 14 04:05:56 2017 @@ -237,8 +237,9 @@ class MockFSProvider : public FileSystem public: Tagged<IntrusiveRefCntPtr<vfs::FileSystem>> getTaggedFileSystem(PathRef File) override { - if (ExpectedFile) + if (ExpectedFile) { EXPECT_EQ(*ExpectedFile, File); + } auto FS = buildTestFS(Files); return make_tagged(FS, Tag); @@ -876,9 +877,10 @@ int d; // Check some invariants about the state of the program. std::vector<FileStat> Stats = DiagConsumer.takeFileStats(); for (unsigned I = 0; I < FilesCount; ++I) { - if (!ReqStats[I].FileIsRemoved) + if (!ReqStats[I].FileIsRemoved) { ASSERT_EQ(Stats[I].HadErrorsInLastDiags, ReqStats[I].LastContentsHadErrors); + } ASSERT_LE(Stats[I].HitsWithErrors, ReqStats[I].RequestsWithErrors); ASSERT_LE(Stats[I].HitsWithoutErrors, ReqStats[I].RequestsWithoutErrors); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits