[PATCH] D66074: [clangd] Drop diags from non-written #include.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 04:51:39 PDT 2019


hokein added a comment.

In D66074#1626856 <https://reviews.llvm.org/D66074#1626856>, @hans wrote:

> In D66074#1624885 <https://reviews.llvm.org/D66074#1624885>, @hokein wrote:
>
> > @hans is there still any chance to merge this patch into the release?
>
>
> I tried to merge this to release_90, but I got a test failure. Does this rely on more patches that need merging? Can you try applying it to the release branch in the monorepo and see what needs fixing?
>
>   $ ninja check-clangd
>   [7/8] Running the Clangd regression tests
>   llvm-lit: /work/llvm-9/llvm/utils/lit/lit/llvm/config.py:340: note: using clang: /work/llvm-9/build.release/bin/clang
>   FAIL: Clangd Unit Tests :: ./ClangdTests/IgnoreDiags.FromNonWrittenInclude (368 of 573)
>   ******************** TEST 'Clangd Unit Tests :: ./ClangdTests/IgnoreDiags.FromNonWrittenInclude' FAILED ********************
>   Note: Google Test filter = IgnoreDiags.FromNonWrittenInclude
>   [==========] Running 1 test from 1 test case.
>   [----------] Global test environment set-up.
>   [----------] 1 test from IgnoreDiags
>   [ RUN      ] IgnoreDiags.FromNonWrittenInclude
>   /work/llvm-9/llvm/tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp:945: Failure
>   Value of: TU.build().getDiagnostics()
>   Expected: is empty
>     Actual: { [./a.h:0:0-0:4] 'main' must return 'int' }, which has 1 element
>   [  FAILED  ] IgnoreDiags.FromNonWrittenInclude (20 ms)
>   [----------] 1 test from IgnoreDiags (20 ms total)
>  
>   [----------] Global test environment tear-down
>   [==========] 1 test from 1 test case ran. (21 ms total)
>   [  PASSED  ] 0 tests.
>   [  FAILED  ] 1 test, listed below:
>   [  FAILED  ] IgnoreDiags.FromNonWrittenInclude
>  
>    1 FAILED TEST
>   Preamble for file /clangd-test/TestTU.cpp cannot be reused. Attempting to rebuild it.
>   Built preamble of size 201076 for file /clangd-test/TestTU.cpp
>  
>   ********************
>   Testing Time: 3.92s
>   ********************
>   Failing Tests (1):
>       Clangd Unit Tests :: ./ClangdTests/IgnoreDiags.FromNonWrittenInclude
>  
>     Expected Passes    : 569
>     Unsupported Tests  : 3
>     Unexpected Failures: 1
>   FAILED: tools/clang/tools/extra/clangd/test/CMakeFiles/check-clangd
>


thanks for the information, I suspect that this patch may depend on rL367303 <https://reviews.llvm.org/rL367303> (which is not merged in the release), I will double check.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66074/new/

https://reviews.llvm.org/D66074





More information about the cfe-commits mailing list