[cfe-dev] clang-tidy assertion failure on fixit conflicts
Roman Lebedev via cfe-dev
cfe-dev at lists.llvm.org
Fri Aug 31 00:04:43 PDT 2018
On Fri, Aug 31, 2018 at 9:59 AM, Ding Fei via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> hi all,
Hi.
> clang-tidy assert failed on the code:
>
> $ cat test.c
> void stub(void) {
> bool b = 1 && 2;
> }
> $ clang-tidy -checks=* test.c
> Fix conflicts with existing fix! The new replacement overlaps with an
> existing replacement.
> New replacement:
> /home/danis/Sources/clang-tidy-misra/test/bugfinder/5.1.c: 60:+5:""
> Existing replacement:
> /home/danis/Sources/clang-tidy-misra/test/bugfinder/5.1.c: 61:+2:"&"
> clang-tidy: /home/danis/Sources/llvm-latest/tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp:87:
> virtual void {anonymous}::ClangTidyDiagnosticRenderer::emitCodeContext(clang::FullSourceLoc,
> clang::DiagnosticsEngine::Level,
> llvm::SmallVectorImpl<clang::CharSourceRange>&,
> llvm::ArrayRef<clang::FixItHint>): Assertion `false && "Fix conflicts
> with existing fix!"' failed.
> Aborted
1. A mail to the mailing list is not really the best/correct way to
report a bug.
2. Yep, clang-tidy is wrong, there is a bug:
https://bugs.llvm.org/show_bug.cgi?id=35136
> --
> Best Regards
>
> Ding Fei
> E-mail: danix800 at gmail.com
Roman.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list