Forráskód Böngészése

list(): rely on cmList class

Fixes: #24549
Marc Chevrier 2 éve
szülő
commit
e8c581606d

+ 3 - 1
Source/cmList.cxx

@@ -82,7 +82,9 @@ cmList& cmList::filter(cm::string_view pattern, FilterMode mode)
 {
   cmsys::RegularExpression regex(std::string{ pattern });
   if (!regex.is_valid()) {
-    throw std::invalid_argument(cmStrCat("invalid regex: ", pattern));
+    throw std::invalid_argument(
+      cmStrCat("sub-command FILTER, mode REGEX failed to compile regex \"",
+               pattern, "\"."));
   }
 
   auto it = std::remove_if(this->Values.begin(), this->Values.end(),

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 243 - 703
Source/cmListCommand.cxx


+ 1 - 1
Tests/RunCMake/CMP0121/CMP0121-ERANGE-WARN-stderr.txt

@@ -7,7 +7,7 @@ Call Stack \(most recent call first\):
   CMP0121-ERANGE-WARN.cmake:2 \(include\)
   CMakeLists.txt:3 \(include\)
 This warning is for project developers.  Use -Wno-dev to suppress it.
-
+.*
 CMake Error at CMP0121-ERANGE-Common.cmake:3 \(list\):
   list index: (-2147483643|2147483647) out of range \(-5, 4\)
 Call Stack \(most recent call first\):

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott