[cfe-dev] clang-tidy assertion failure on fixit conflicts
Ding Fei via cfe-dev
cfe-dev at lists.llvm.org
Thu Aug 30 23:59:55 PDT 2018
hi all,
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
--
Best Regards
Ding Fei
E-mail: danix800 at gmail.com
More information about the cfe-dev
mailing list