Maybe this will help.
https://apt.llvm.org/
I've used the automatic installer with the <version number> parameter and it work well on Windows WSL Ubuntu
After the install, clang ended up in /usr/bin/ as clang-13<whatever>
pecan@Zbook17:~$ whereis clang-13
clang-13: /usr/bin/clang-13 /usr/share/man/man1/clang-13.1.gz
pecan@Zbook17:~$ cd /usr/bin
pecan@Zbook17:/usr/bin$ ls clang*
clang++-10 clang-check-10 clang-format-diff clang-query-10
clang++-13 clang-cl-10 clang-format-diff-10 clang-refactor-10
clang-10 clang-cpp-10 clang-import-test-10 clang-rename-10
clang-13 clang-cpp-13 clang-include-fixer-10 clang-reorder-fields-10
clang-apply-replacements clang-doc-10 clang-move-10 clang-scan-deps-10
clang-apply-replacements-10 clang-extdef-mapping-10 clang-offload-bundler-10 clangd
clang-change-namespace-10 clang-format clang-offload-wrapper-10
clang-check clang-format-10 clang-query
pecan@Zbook17:/usr/bin$
Correct.
https://apt.llvm.org/
For convenience there is an automatic installation script available that installs LLVM for you.
"To install a specific version of LLVM:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 13
and got expected clang++-13 files.
Thanks.
On one hand the page https://apt.llvm.org/ (https://apt.llvm.org/) even has apt repository settings for every Ubuntu version if you scroll down...
On the other hand, this is not related to Code::Blocks according to the rules (https://forums.codeblocks.org/index.php/topic,9996.0.html).
Hmmm, we help with gcc and mingw etc. Why not clang?
Where, in the rules, does it say we won't help with an addition of and configuration of compilers used within CB ?
I think that rule should be changed.
Is there something other than rule 5: that looks like it means we help set up and configuration?
5. Before posting, look where you post. There's the "Using CodeBlocks" board to help newbies set up their compilers and change their configuration.