Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

several binaries are not showing the full version string #57263

Open
firewave opened this issue Aug 20, 2022 · 3 comments
Open

several binaries are not showing the full version string #57263

firewave opened this issue Aug 20, 2022 · 3 comments
Labels
clang-tidy llvm-tools All llvm tools that do not have corresponding tag

Comments

@firewave
Copy link

I installed the packages from the apt.llvm.org repo on ubuntu 22.04.

clang-tidy-15 --version

Ubuntu LLVM version 15.0.0

  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: sandybridge

clang-15 --version

Ubuntu clang version 15.0.0-++20220818073040+0334c1ac1b02-1~exp1~20220818073137.27
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
@llvmbot
Copy link
Collaborator

llvmbot commented Aug 20, 2022

@llvm/issue-subscribers-clang-tidy

@firewave firewave changed the title clang-tidy --version is showing abridged version information several binaries are not showing the full version string Aug 20, 2022
@firewave
Copy link
Author

This actually applies to several other binaries as well and is not limited to clang-tidy.

I only tried two others and they also just show the short version string.

lldb-15 --version

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
lldb version 15.0.0

llvm-symbolizer-15 --version

llvm-symbolizer
Ubuntu LLVM version 15.0.0

  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: sandybridge

@whisperity whisperity added the llvm-tools All llvm tools that do not have corresponding tag label Aug 22, 2022
@PiotrZSL
Copy link
Member

First one is from llvm (default), second one from driver.
clang-format override version handler, maybe clang-tidy could do same.

Other option would be re-use code from clang/lib/Basic/Version.cpp in llvm/lib/Support/CommandLine.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang-tidy llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

5 participants