]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
clang-analyzer-cplusplus.Move 295/head
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Fri, 31 May 2024 07:34:55 +0000 (10:34 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Fri, 31 May 2024 07:34:55 +0000 (10:34 +0300)
util/ng_corpus_generator.cpp

index 69e7c4ef3f4a5d3c44254286d805ab2c8de04144..e0197b5681958cdfd5120bd3049bfec9d23a5bb7 100644 (file)
@@ -185,8 +185,8 @@ void findPaths(const NGHolder &g, CorpusProperties &cProps,
                 continue;
             }
 
-            if (p && !contains(one_way_in, v) &&
-                has_greater_than(p->begin(), p->end(), v, cycleLimit)) {
+            if (!contains(one_way_in, v) &&
+                has_greater_than(p->begin(), p->end(), v, cycleLimit)) {    //NOLINT (clang-analyzer-cplusplus.Move)
                 // Note that vertices that only have one predecessor don't need
                 // their cycle limit checked, as their predecessors will have
                 // the same count.