mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-03 15:32:09 +00:00
NFCI, Constexpr-ed constant string
This commit is contained in:
parent
f21fd7e5a2
commit
8d38fb9841
@ -259,10 +259,10 @@ findDbForPathEnding(const std::string &path,
|
||||
|
||||
bool runIndexTests(const std::string &filter_path, bool enable_update) {
|
||||
gTestOutputMode = true;
|
||||
std::string version = LLVM_VERSION_STRING;
|
||||
const std::string version = LLVM_VERSION_STRING;
|
||||
|
||||
// Index tests change based on the version of clang used.
|
||||
static const char kRequiredClangVersion[] = "6.0.0";
|
||||
static constexpr char kRequiredClangVersion[] = "6.0.0";
|
||||
if (version != kRequiredClangVersion &&
|
||||
version.find("svn") == std::string::npos) {
|
||||
fprintf(stderr,
|
||||
|
Loading…
Reference in New Issue
Block a user