Applied readability-magic-numbers clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 23:49:20 +01:00
parent 0687c3093e
commit 134ad77f5c
8 changed files with 38 additions and 13 deletions

View File

@@ -403,11 +403,14 @@ bool ensure_output_directory_exists(const std::string &dir)
void print_version()
{
constexpr auto kLLVMBackendPackageStringLength{5};
std::cout << "clang-uml " << clanguml::version::CLANG_UML_VERSION << '\n';
std::cout << "Copyright (C) 2021-2022 Bartek Kryza <bkryza@gmail.com>"
<< '\n';
std::cout << "Built with LLVM version: "
<< std::string{BACKEND_PACKAGE_STRING}.substr(5) << std::endl;
<< std::string{BACKEND_PACKAGE_STRING}.substr(
kLLVMBackendPackageStringLength)
<< std::endl;
std::cout << "Using LLVM version: " << clang::getClangFullVersion()
<< std::endl;
}