potential workaround (very clear, NOT wrap clang.real, make clang is real clang-11)
cp clang-11 clang
P.S.: i do NOT know build-wrapper rule how to probing compiler, whether make this rule configurable, now build-wrapper ONLY support one param --out-dir
$ build-wrapper --help
build-wrapper, version 6.20 (linux-x86)
Copyright (C) 2014-2021 SonarSource SA, info@sonarsource.com
Usage: build-wrapper --out-dir <output directory> <build command>
for your use case, I invite you to use the JSON Compilation Database as a configuration for the analysis. If you can use SonarQube > 8.9 LTS you have the support by default. If you have to stay to 8.9 you can use the workaround described in CPP-1428.
hi @lcttmc
out of curiosity, how did you fixed your issue?
I’m trying to perform a sonarqube analysis using build-wrapper on a AOSP build, but it is not capturing all the clang commands.
I’ll try your workaround, but in case you found a less invasive solution, could you please share it?
Thanks in advance