codechecker: CTU not working

  1. CTU analysis in combination to --ctu-ast-mode parse-on-demand is causing clangsa segfaults as reported at https://bugs.llvm.org/show_bug.cgi?id=47998
  2. CTU analysis fails for many files with errors of the type “unsupported AST node” CXXFoldExpr or ShuffleVectorExpr as reported here and here
  3. Because of that I am happy I can use --ctu-reanalyze-on-failure flag, but this one is marked as deprecated.

What is the recommended course of action, given that I don’t see much activity on the LLVM bugtracker?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 29 (28 by maintainers)

Most upvoted comments

So, the patch(https://reviews.llvm.org/D92209) is landed in the main branch (the used to be master). So, this means it would be available in Clang 12 for sure. This seems to be quite an isolated change, so I could push towards to our LLVM release manager to try to include that in the upcoming Clang 11 bugfix branch. I am not that familiar with that procedure, though, but I’ll try my best.

Related LLVM/Clang patch to solve the infinite loop: https://reviews.llvm.org/D92209

Good news, I could reproduce the segfault, with the stack overflow. I am going to investigate, and will come back to you with my findings. This may take a while.