So I’m trying to use Cross Translation Unit Static Analysis as described in 2.1. Cross Translation Unit (CTU) Analysis — Clang 18.0.0git documentation
I believe I have correctly done the emit-ast and clang-extdef-mapping steps, it fails on the step “/usr/bin/clang++ --analyze -Xclang -analyzer-config -Xclang experimental-enable-naive-ctu-analysis=true -Xclang -analyzer-config -Xclang ctu-dir=. -Xclang -analyzer-output=plist-multi-file”
It fails with 'too many errors emitted" of the type “error: multiple definitions are found for the same key in index”
I am using clang --version
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
I’m not using CodeChecker as my project has a very complex structure.
Any suggestions on how to solve this?