Переглянути джерело

STYLE: Fix line-too-long for new INTERNAL_ERROR messages.

Brad King 17 роки тому
батько
коміт
133e5b5dd8
2 змінених файлів з 9 додано та 10 видалено
  1. 6 6
      Source/cmSourceFileLocation.cxx
  2. 3 4
      Source/cmTarget.cxx

+ 6 - 6
Source/cmSourceFileLocation.cxx

@@ -173,12 +173,12 @@ bool cmSourceFileLocation::Matches(cmSourceFileLocation const& loc)
     // Each side has a directory relative to a different location.
     // This can occur when referencing a source file from a different
     // directory.  This is not yet allowed.
-    this->Makefile->
-      IssueMessage(cmake::INTERNAL_ERROR,
-                   "Matches error: Each side has a directory relative to a different"
-                   " location. This can occur when referencing a "
-                   "source file from a different directory.  "
-                   "This is not yet allowed.");
+    this->Makefile->IssueMessage(
+      cmake::INTERNAL_ERROR,
+      "Matches error: Each side has a directory relative to a different "
+      "location. This can occur when referencing a source file from a "
+      "different directory.  This is not yet allowed."
+      );
     return false;
     }
   else if(this->AmbiguousDirectory)

+ 3 - 4
Source/cmTarget.cxx

@@ -2586,11 +2586,10 @@ void cmTarget::GetExecutableNamesInternal(std::string& name,
   // enforcement of the limited imported target API.
   if(this->IsImported())
     {
-    std::string msg =  "GetExecutableNamesInternal called on imported target: ";
+    std::string msg =
+      "GetExecutableNamesInternal called on imported target: ";
     msg += this->GetName();
-    this->GetMakefile()->
-      IssueMessage(cmake::INTERNAL_ERROR,
-                   msg.c_str());
+    this->GetMakefile()->IssueMessage(cmake::INTERNAL_ERROR, msg.c_str());
     }
 
   // This versioning is supported only for executables and then only