[test-suite] r264494 - cmake: Cleanup comments to not repeat the function name

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 21:05:34 PDT 2016


Author: matze
Date: Fri Mar 25 23:05:34 2016
New Revision: 264494

URL: http://llvm.org/viewvc/llvm-project?rev=264494&view=rev
Log:
cmake: Cleanup comments to not repeat the function name

Modified:
    test-suite/trunk/cmake/modules/MakefileFunctions.cmake
    test-suite/trunk/cmake/modules/SingleMultiSource.cmake

Modified: test-suite/trunk/cmake/modules/MakefileFunctions.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/modules/MakefileFunctions.cmake?rev=264494&r1=264493&r2=264494&view=diff
==============================================================================
--- test-suite/trunk/cmake/modules/MakefileFunctions.cmake (original)
+++ test-suite/trunk/cmake/modules/MakefileFunctions.cmake Fri Mar 25 23:05:34 2016
@@ -7,15 +7,14 @@
 #
 ##===----------------------------------------------------------------------===##
 
-# llvm_add_subdirectories - wrapper around add_subdirectory that can take
-# multiple items.
+# wrapper around add_subdirectory that can take multiple items.
 macro(llvm_add_subdirectories)
   foreach(V ${ARGV})
     add_subdirectory(${V})
   endforeach(V)
 endmacro()
 
-# llvm_prepend - equivalent to $(addprefix var,prefix). Modifies var in place.
+# equivalent to $(addprefix var,prefix). Modifies var in place.
 function(llvm_prepend var prefix)
   set(listVar "")
   foreach(f ${ARGN})
@@ -24,8 +23,8 @@ function(llvm_prepend var prefix)
   set(${var} "${listVar}" PARENT_SCOPE)
 endfunction()
 
-# llvm_filter - equivalent to $(filter needle,haystack). Returns a list containing
-# all of the items in ${ARGN} (after needle) that match needle.
+# equivalent to $(filter needle,haystack). Returns a list containing all of the
+# items in ${ARGN} (after needle) that match needle.
 macro(llvm_filter output needle)
   set(${output})
   foreach(haystack_item ${ARGN})
@@ -37,8 +36,7 @@ macro(llvm_filter output needle)
   endforeach()
 endmacro()
 
-# llvm_filter_out - equivalent to $(filter-out needle,haystack). Inverse of
-# llvm_filter.
+# equivalent to $(filter-out needle,haystack). Inverse of llvm_filter.
 macro(llvm_filter_out output needle)
   set(${output} "${ARGN}")
   llvm_filter(tmp_output ${needle} ${ARGN})

Modified: test-suite/trunk/cmake/modules/SingleMultiSource.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/modules/SingleMultiSource.cmake?rev=264494&r1=264493&r2=264494&view=diff
==============================================================================
--- test-suite/trunk/cmake/modules/SingleMultiSource.cmake (original)
+++ test-suite/trunk/cmake/modules/SingleMultiSource.cmake Fri Mar 25 23:05:34 2016
@@ -13,11 +13,10 @@
 
 include(TestFile)
 
-# get_unique_exe_name - Given a source file name after which a test should be
-# named, create a unique name for the test. Usually this is just the source file
-# with the suffix stripped, but in some cases this ends up causing duplicates
-# so attempt to make each unique (by adding pathname segments until they become
-# unique).
+# Given a source file name after which a test should be named, create a unique
+# name for the test. Usually this is just the source file with the suffix
+# stripped, but in some cases this ends up causing duplicates so attempt to
+# make each unique (by adding pathname segments until they become unique).
 #
 # FIXME: Swap this with a simpler procedure to just append a numeral
 set_property(GLOBAL PROPERTY registered_executables)
@@ -167,8 +166,8 @@ macro(test_suite_add_executable name mai
   endif()
 endmacro()
 
-# llvm_singlesource - configure the current directory as a SingleSource subdirectory -
-# i.e. every file in *.{c,cpp,cc} is treated as its own test.
+# Configure the current directory as a SingleSource subdirectory - i.e. every
+# file in *.{c,cpp,cc} is treated as its own test.
 macro(llvm_singlesource)
   file(GLOB sources *.c *.cpp *.cc)
   foreach(source ${sources})
@@ -180,9 +179,9 @@ macro(llvm_singlesource)
   endforeach()
 endmacro()
 
-# llvm_multisource - configure the current directory as a MultiSource subdirectory -
-# i.e. there is one test and it consists of all sources in the directory (or a curated
-# list, if Source is defined).
+# Configure the current directory as a MultiSource subdirectory - i.e. there is
+# one test and it consists of all sources in the directory (or a curated list,
+# if Source is defined).
 macro(llvm_multisource)
   if(DEFINED Source)
     set(sources ${Source})




More information about the llvm-commits mailing list