summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorArtur Ryt <artur.ryt@gmail.com>2019-04-02 17:59:00 (GMT)
committerArtur Ryt <artur.ryt@gmail.com>2019-04-02 17:59:54 (GMT)
commit30bb14c65777bad02b3360797bf9c7b0fbe3280e (patch)
treea6778b486afbc57cfd84bef062ccf87969323a5c /Source/cmGlobalNinjaGenerator.cxx
parent56ae290284a7f6f7298bf7410a361aaecb7ebbe9 (diff)
downloadCMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.zip
CMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.tar.gz
CMake-30bb14c65777bad02b3360797bf9c7b0fbe3280e.tar.bz2
Modernize: Enable modernize-raw-string-literal in clang-tidy
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index e443678..4fa6ee6 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -906,11 +906,11 @@ void cmGlobalNinjaGenerator::AddCXXCompileCommand(
/* clang-format off */
*this->CompileCommandsStream << "\n{\n"
- << " \"directory\": \""
+ << R"( "directory": ")"
<< cmGlobalGenerator::EscapeJSON(buildFileDir) << "\",\n"
- << " \"command\": \""
+ << R"( "command": ")"
<< cmGlobalGenerator::EscapeJSON(commandLine) << "\",\n"
- << " \"file\": \""
+ << R"( "file": ")"
<< cmGlobalGenerator::EscapeJSON(sourceFileName) << "\"\n"
<< "}";
/* clang-format on */