diff options
author | Artur Ryt <artur.ryt@gmail.com> | 2019-04-02 17:59:00 (GMT) |
---|---|---|
committer | Artur Ryt <artur.ryt@gmail.com> | 2019-04-02 17:59:54 (GMT) |
commit | 30bb14c65777bad02b3360797bf9c7b0fbe3280e (patch) | |
tree | a6778b486afbc57cfd84bef062ccf87969323a5c /Source/cmExtraSublimeTextGenerator.cxx | |
parent | 56ae290284a7f6f7298bf7410a361aaecb7ebbe9 (diff) | |
download | CMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.zip CMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.tar.gz CMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.tar.bz2 |
Modernize: Enable modernize-raw-string-literal in clang-tidy
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r-- | Source/cmExtraSublimeTextGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx index 59cfdca..71c8fcd 100644 --- a/Source/cmExtraSublimeTextGenerator.cxx +++ b/Source/cmExtraSublimeTextGenerator.cxx @@ -263,7 +263,7 @@ void cmExtraSublimeTextGenerator::AppendTarget( // Regular expression to extract compiler flags from a string // https://gist.github.com/3944250 const char* regexString = - "(^|[ ])-[DIOUWfgs][^= ]+(=\\\"[^\"]+\\\"|=[^\"][^ ]+)?"; + R"((^|[ ])-[DIOUWfgs][^= ]+(=\"[^"]+\"|=[^"][^ ]+)?)"; flagRegex.compile(regexString); std::string workString = flagsString + " " + definesString + " " + includesString; @@ -315,12 +315,12 @@ std::string cmExtraSublimeTextGenerator::BuildMakeCommand( std::string generator = this->GlobalGenerator->GetName(); if (generator == "NMake Makefiles") { std::string makefileName = cmSystemTools::ConvertToOutputPath(makefile); - command += ", \"/NOLOGO\", \"/f\", \""; + command += R"(, "/NOLOGO", "/f", ")"; command += makefileName + "\""; command += ", \"" + target + "\""; } else if (generator == "Ninja") { std::string makefileName = cmSystemTools::ConvertToOutputPath(makefile); - command += ", \"-f\", \""; + command += R"(, "-f", ")"; command += makefileName + "\""; command += ", \"" + target + "\""; } else { @@ -332,7 +332,7 @@ std::string cmExtraSublimeTextGenerator::BuildMakeCommand( } else { makefileName = cmSystemTools::ConvertToOutputPath(makefile); } - command += ", \"-f\", \""; + command += R"(, "-f", ")"; command += makefileName + "\""; command += ", \"" + target + "\""; } |