Skip to content

Commit

Permalink
Merge pull request #487 from TriBITSPub/standardize-macro-function-co…
Browse files Browse the repository at this point in the history
…mment-blocks

Remove line containing '#' before all @macro and @function blocks
  • Loading branch information
bartlettroscoe authored Jun 10, 2022
2 parents f2b7dba + 5564ed5 commit 912691c
Show file tree
Hide file tree
Showing 51 changed files with 29 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ macro(tribits_add_test_wrapper)
endif()
endmacro()

#

# @FUNCTION: tribits_add_executable_and_test()
#
# Add an executable and a test (or several tests) all in one shot (just calls
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsAddOptionAndDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
include(GlobalSet)


#
# @MACRO: tribits_add_option_and_define()
#
# Add an option and a define variable in one shot.
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsAddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
include(TribitsAddTestHelpers)


#
# @FUNCTION: tribits_add_test()
#
# Add a test or a set of tests for a single executable or command using CTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ include(TribitsAddTestHelpers)
include(CMakeParseArguments)


#
# @FUNCTION: tribits_copy_files_to_binary_dir()
#
# Function that copies a list of files from a source directory to a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
include(CMakeParseArguments)


#
# @FUNCTION: tribits_find_most_recent_file_timestamp()
#
# Find the most modified file in a set of base directories and return its
Expand Down Expand Up @@ -294,7 +293,6 @@ function(tribits_find_most_recent_file_timestamp)
endfunction()


#
# @FUNCTION: tribits_find_most_recent_source_file_timestamp()
#
# Find the most modified source file in a set of base directories and return
Expand Down Expand Up @@ -381,7 +379,6 @@ function(tribits_find_most_recent_source_file_timestamp)
endfunction()


#
# @FUNCTION: tribits_find_most_recent_binary_file_timestamp()
#
# Find the most modified binary file in a set of base directories and return
Expand Down Expand Up @@ -471,7 +468,6 @@ function(tribits_find_most_recent_binary_file_timestamp)
endfunction()


#
# @FUNCTION: tribits_determine_if_current_package_needs_rebuilt()
#
# Determine at configure time if any of the upstream dependencies for a
Expand Down
2 changes: 0 additions & 2 deletions tribits/core/package_arch/TribitsGetVersionDate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ include("${${PROJECT_NAME}_TRIBITS_DIR}/core/utils/MessageWrapper.cmake")
include("${${PROJECT_NAME}_TRIBITS_DIR}/core/utils/TribitsStripQuotesFromStr.cmake")


#
# @FUNCTION: tribits_get_raw_git_commit_utc_time()
#
# Get the git commit date of a repo at a given commit in UTC in the format
Expand Down Expand Up @@ -58,7 +57,6 @@ function(tribits_get_raw_git_commit_utc_time repo_base_dir commit_ref
endfunction()


#
# @FUNCTION: tribits_get_version_date_from_raw_git_commit_utc_time()
#
# Takes input of the form "YYYY-MM-DD hh:mm:ss +0000" from the git command::
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsIncludeDirectories.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
include(CMakeParseArguments)


#
# @MACRO: tribits_include_directories()
#
# This function is to override the standard behavior of the built-in CMake
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsInstallHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
include(CMakeParseArguments)


#
# @FUNCTION: tribits_install_headers()
#
# Function used to (optionally) install header files using ``install()``
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsListHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ macro(tribits_set_package_to_ex PACKAGE_NAME)
endmacro()


#
# @MACRO: tribits_disable_package_on_platforms()
#
# Disable a package automatically for a list of platforms.
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsProcessEnabledTpl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ include(AppendStringVar)
include(TribitsStandardizePaths)


#
# @FUNCTION: tribits_process_enabled_tpl()
#
# Process an enabled TPL's FindTPL${TPL_NAME}.cmake module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ include(MessageWrapper)
include(TribitsSortListAccordingToMasterList)


#
# @MACRO: tribits_project_define_extra_repositories()
#
# Declare a set of extra repositories for the `TriBITS Project`_ (i.e. in the
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/package_arch/TribitsProcessTplsLists.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ include(TribitsListHelpers)
include(PrintVar)
include(Split)

#

# @MACRO: tribits_repository_define_tpls()
#
# Define the list of `TriBITS TPLs`_ for a given `TriBITS Repository`_ which
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ include(TribitsCMakePolicies)
include(TribitsProjectImpl)


#
# @MACRO: tribits_project()
#
# Processes a `TriBITS Project`_'s files and configures its software which is
Expand Down
1 change: 0 additions & 1 deletion tribits/core/package_arch/TribitsProjectImpl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ macro(tribits_project_impl)
endmacro()


#
# @MACRO: tribits_project_enable_all()
#
# Process a project where you enable all of the packages by default.
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/package_arch/TribitsVerbosePrintVar.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

if (${PROJECT_NAME}_VERBOSE_CONFIGURE)

#

# @FUNCTION: tribits_verbose_print_var()
#
# print a variable giving its name then value if
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AddSubdirectories.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: add_subdirectories()
#
# Macro that adds a list of subdirectories all at once (removes boiler-plate
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AdvancedOption.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: advanced_option()
#
# Macro that sets an option and marks it as advanced (removes boiler-plate and
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/AdvancedSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# @HEADER


#
# @MACRO: advanced_set()
#
# Macro that sets a variable and marks it as advanced (removes boiler-plate
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AppendCmndlineArgs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @FUNCTION: append_cmndline_args()
#
# Utility function that appends command-line arguments to a variable of
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AppendGlob.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

include(AppendSet)

#

# @MACRO: append_glob()
#
# Utility macro that does a ``file(GLOB ...)`` and appends to an existing list
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AppendGlobalSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(GlobalSet)
include(AssertDefined)

#

# @FUNCTION: append_global_set()
#
# Utility macro that appends arguments to a global variable (reduces
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AppendSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: append_set()
#
# Utility function to append elements to a variable (reduces boiler-plate
Expand Down
3 changes: 1 addition & 2 deletions tribits/core/utils/AppendStringVar.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(ConcatStrings)
include(PrintVar)

#

# @FUNCTION: append_string_var()
#
# Append strings to an existing string variable (reduces boiler-place code and
Expand Down Expand Up @@ -68,7 +68,6 @@ function(append_string_var STRING_VAR_OUT)
endfunction()


#
# @FUNCTION: append_string_var_ext()
#
# Append a single string to an existing string variable, ignoring ';' (reduces
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AppendStringVarWithSep.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

include(ConcatStrings)

#

# @FUNCTION: append_string_var_with_sep()
#
# Append strings to a given string variable, joining them using a separator
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/AssertDefined.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @FUNCTION: assert_defined()
#
# Assert that a variable is defined and if not call ``message(SEND_ERROR
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/CombinedOption.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ include(MultilineSet)
include(ConcatStrings)


#
# @FUNCTION: combined_option()
#
# Set up a ``BOOL`` cache variable (i.e. an option) based on a set of
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/ConcatStrings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
include(PrintVar)


#
# @FUNCTION: concat_strings()
#
# Concatenate a set of string arguments.
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/DualScopeAppendCmndlineArgs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(AppendCmndlineArgs)
include(DualScopeSet)

#

# @MACRO: dual_scope_append_cmndline_args()
#
# Utility function that appends command-line arguments to a variable of
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/DualScopePrependCmndlineArgs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(PrependCmndlineArgs)
include(DualScopeSet)

#

# @MACRO: dual_scope_prepend_cmndline_args()
#
# Utility function that prepends command-line arguments to a variable of
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/DualScopeSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# @HEADER


#
# @MACRO: dual_scope_set()
#
# Macro that sets a variable name both in the current scope and the
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/GlobalNullSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: global_null_set()
#
# Set a variable as a null internal global (cache) variable (removes
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/GlobalSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# @HEADER


#
# @MACRO: global_set()
#
# Set a variable as an internal global (cache) variable (removes boiler-plate
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/Join.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# @HEADER


#
# @FUNCTION: join()
#
# Join a set of strings into a single string using a join string.
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/MultilineSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# @HEADER


#
# @FUNCTION: multiline_set()
#
# Function to set a single string by concatenating a list of separate strings
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/PrependCmndlineArgs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @FUNCTION: prepend_cmndline_args()
#
# Utility function that prepends command-line arguments to a variable of
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/PrependGlobalSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(GlobalSet)
include(AssertDefined)

#

# @MACRO: prepend_global_set()
#
# Utility macro that prepends arguments to a global variable (reduces
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/PrependSet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: prepend_set()
#
# Utility macro to prepend elements to a variable (reduces boiler-plate code).
Expand Down
1 change: 0 additions & 1 deletion tribits/core/utils/PrintNonemptyVar.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ include(AssertDefined)
include(PrintVar)


#
# @FUNCTION: print_nonempty_var()
#
# Print a defined variable giving its name then value only if it is not empty.
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/PrintNonemptyVarWithSpaces.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(AssertDefined)
include(AppendStringVarWithSep)

#

# @FUNCTION: print_nonempty_var_with_spaces()
#
# Print a defined variable giving its name then value printed with spaces
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/PrintVarWithSpaces.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(AssertDefined)
include(AppendStringVarWithSep)

#

# @FUNCTION: print_var_with_spaces()
#
# Print a defined variable giving its name then value printed with spaces
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/RemoveGlobalDuplicates.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include(AssertDefined)
include(GlobalSet)

#

# @FUNCTION: remove_global_duplicates()
#
# Remove duplicate elements from a global list variable (removes boiler-plate
Expand Down
2 changes: 1 addition & 1 deletion tribits/core/utils/SetAndIncDirs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ************************************************************************
# @HEADER

#

# @MACRO: set_and_inc_dirs()
#
# Set a variable to an include directory and call ``include_directories()``
Expand Down
Loading

0 comments on commit 912691c

Please sign in to comment.