diff --git a/src/CoolApplication/cmt/requirements b/src/CoolApplication/cmt/requirements deleted file mode 100755 index ac5882fd1fa1a5ce1beca9043325faacbd9da0ef..0000000000000000000000000000000000000000 --- a/src/CoolApplication/cmt/requirements +++ /dev/null @@ -1,38 +0,0 @@ -package CoolApplication - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -use CoolKernel v* -use RelationalCool v* - -#---------------------------------------------------------------------------- -# Library -#---------------------------------------------------------------------------- - -apply_pattern include_dir_policy -apply_pattern lcg_shared_library - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -###macro_append use_linkopts ' $(Boost_linkopts_thread)' - -# Link the CORAL libraries -apply_tag NEEDS_CORAL_BASE - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/CoolApplication/cmt/version.cmt b/src/CoolApplication/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/CoolApplication/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/CoolKernel/cmt/requirements b/src/CoolKernel/cmt/requirements deleted file mode 100755 index ff2e81330a6e06cc2f73264c9618c35b9cdb6eda..0000000000000000000000000000000000000000 --- a/src/CoolKernel/cmt/requirements +++ /dev/null @@ -1,253 +0,0 @@ -package CoolKernel - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -# Define CMTINSTALLAREA correctly -use LCG_Policy v* - -use Boost v* LCG_Interfaces -use CORAL v* LCG_Interfaces - -# This is only needed to determine if c++11 (ROOT6) should be used -###use ROOT v* LCG_Interfaces -no_auto_imports -###macro_append cppflags " -I$(ROOT_home)/include " - -#---------------------------------------------------------------------------- -# Library -#---------------------------------------------------------------------------- - -apply_pattern include_dir_policy -apply_pattern lcg_shared_library - -#---------------------------------------------------------------------------- -# COOL400 API changes (manual transaction management task #2200) -#---------------------------------------------------------------------------- - -# Uncomment this line to enable the COOL400 API extensions -# [NB: COOL290 extension control is fully in VersionInfo.h (bug #92204)] -###macro_append use_cppflags ' -DCOOL400' target-winxp ' /DCOOL400' -###macro_append gccxmlopts ' -DCOOL400' - -#---------------------------------------------------------------------------- -# Compilation and link flags (inherited by all COOL packages) -#---------------------------------------------------------------------------- - -# Workaround for undefined __int128 in Coverity builds (SPI-343) -###macro_remove cppflags "-std=c++0x" -###macro_remove cppflags "-std=c++11" - -# Compile with pedantic warnings (CORALCOOL-2804) -macro_append cppflags ' -pedantic ' - -# --- Configure Windows build options --- -# Workaround for CMT bug #46458 (make all_groups on vc9) -macro_remove cmt_actions_constituents "" target-winxp "make" - -# Disable CRT deprecation warnings on WIN (getenv, sprintf...) -macro_append use_cppflags '' target-winxp ' /D_CRT_SECURE_NO_WARNINGS' - -# Disable SCL deprecation warnings from boost headers on WIN (bug #76887) -macro_append use_cppflags '' target-winxp ' /D_SCL_SECURE_NO_WARNINGS' - -# Enable Boost lib diagnostic on WIN (see boost/config/auto_link.hpp) -macro_append use_cppflags '' target-winxp ' /DBOOST_LIB_DIAGNOSTIC' - -# Disable automatic selection of Boost libraries to link against on WIN -# (this is needed if you upgrade to Boost 1.35 but use its vc71 build) -macro_append use_cppflags '' target-winxp ' /DBOOST_ALL_NO_LIB' - -# Attempt to catch C++ exceptions as well as WIN32 structured exceptions -# See http://http://msdn.microsoft.com/en-us/library/1deeycx5(VS.80).aspx -# The /EHa flag is mandatory (on vc7 and vc9) if _set_se_translator is used -# See http://msdn.microsoft.com/en-us/library/5z4bw5h5(VS.80).aspx -macro_remove cppflags '' target-winxp ' /EHsc' -macro_append cppflags '' target-winxp ' /EHa' - -# --- Configure icc build options --- -# Fix linker warning 'feupdateenv is not implemented and will always fail' -# See http://www-lab.imr.edu/~sgi/new/intel/cc9.1/Release_Notes.htm -macro_append cpplinkflags '' target-icc ' -i-dynamic ' -macro_append clinkflags '' target-icc ' -i-dynamic ' -# Remove invalid compiler option '-W' -macro_remove cppflags '' target-icc '-W ' -# Add leading blank before appending options (avoid issues like bug #83825) -macro_append cppflags '' target-icc ' ' -# Disable remark #193: zero used for undefined preprocessing identifier -macro_append cppflags '' target-icc '-wd193 ' -# Disable remark #304: access control not specified ("public" by default) -macro_append cppflags '' target-icc '-wd304 ' -# Disable remark #383: valued copied to temporary, reference to temporary -macro_append cppflags '' target-icc '-wd383 ' -# Disable remark #981: operands are evaluated in unspecified order -macro_append cppflags '' target-icc '-wd981 ' -# Disable remark #1418: external function definition with no prior declaration -macro_append cppflags '' target-icc '-wd1418 ' -# Disable warning #1478: class std::auto_ptr was declared deprecated -macro_append cppflags '' target-icc '-wd1478 ' -# Disable remark #1572: floating-point equality comparisons unreliable -macro_append cppflags '' target-icc '-wd1572 ' -# Disable remark #2259: "int" to "unsigned short" may lose significant bits -# [would prefer to keep it, but there's too many in Boost headers!] -macro_append cppflags '' target-icc '-wd2259 ' -# Keep remark #68: integer conversion resulted in a change of sign -macro_append cppflags '' target-icc '-ww68 ' -# Keep remark #82: storage class is not first -macro_append cppflags '' target-icc '-ww82 ' -# Keep remark #111: statement is unreachable -macro_append cppflags '' target-icc '-ww111 ' -# Keep remark #128: loop is not reachable from preceding code -macro_append cppflags '' target-icc '-ww128 ' -# Keep remark #177: variable "xxx" was declared but never referenced -macro_append cppflags '' target-icc '-ww177 ' -# Keep remark #181: argument incompatible with format string conversion -macro_append cppflags '' target-icc '-ww181 ' -# Keep warning #191: type qualifier is meaningless on cast type -# Keep warning #279: controlling expression is constant -# Keep warning #327: NULL reference is not allowed -# Keep remark #424: extra ";" ignored -macro_append cppflags '' target-icc '-ww424 ' -# Keep remark #444: destructor for base class "xxx" is not virtual -macro_append cppflags '' target-icc '-ww444 ' -# Keep remark #522: function redeclared "inline" after being called -macro_append cppflags '' target-icc '-ww522 ' -# Keep remark #593: variable "xxx" was set but never used -macro_append cppflags '' target-icc '-ww593 ' -# Keep warning #654: overloaded virtual function is only partially overridden -# Keep warning #810: conversion may lose significant bits -# Keep remark #1419: external declaration in primary source file -macro_append cppflags '' target-icc '-ww1419 ' -# Keep remark #1599: declaration hides variable "xxx" (declared at line nnn) -macro_append cppflags '' target-icc '-ww1599 ' -# Keep warning #2165: declaring a reference with "mutable" is nonstandard - -#---------------------------------------------------------------------------- -# Boost additional libraries as in CoralBase (see also bug #96081) -#---------------------------------------------------------------------------- - -macro_append CoolKernel_linkopts ' $(Boost_linkopts)' -macro_append lcg_CoolKernel_shlibflags ' $(Boost_linkopts)' - -macro_append CoolKernel_linkopts ' $(Boost_linkopts_filesystem)' -macro_append lcg_CoolKernel_shlibflags ' $(Boost_linkopts_filesystem)' - -macro_append CoolKernel_linkopts ' $(Boost_linkopts_date_time)' -macro_append lcg_CoolKernel_shlibflags ' $(Boost_linkopts_date_time)' - -macro_append CoolKernel_linkopts ' $(Boost_linkopts_system)' -macro_append lcg_CoolKernel_shlibflags ' $(Boost_linkopts_system)' - -macro_append CoolKernel_linkopts ' $(Boost_linkopts_thread)' -macro_append lcg_CoolKernel_shlibflags ' $(Boost_linkopts_thread)' - -#---------------------------------------------------------------------------- -# Prototype changes in LCG_Policy requirements (SPI-169) -#---------------------------------------------------------------------------- - -# Keep pattern lcg_cond_mkdir unchanged -pattern lcg_cond_mkdir \ - action lcg_mkdir "if [ ! -d <dir> ]; then mkdir -p <dir>; fi" \ - target-winxp 'if not exist "<dir>" mkdir "<dir>"' - -# Redefine pattern lcg_cond_mkdir: add <category> and <name>, remove <tstexp> -pattern lcg_cond_mkdir_with_dep \ - apply_pattern lcg_cond_mkdir dir=<dir> ; \ - macro_append <category>_constituents "lcg_mkdir " ; \ - macro <name>_dependencies "lcg_mkdir" - -# Add new pattern lcg_application_template -# With respect to Benedikt's: replace <category>s by <category> -# With respect to Benedikt's: replace suffix=<name> by suffix=_<appname> (2x) -# With respect to Benedikt's: do not use utilities/bin and utilities/lib -pattern lcg_application_template \ - application <appname> -group=<category> -suffix=_<appname> -import=<import> -import=<import2> <files> bindirname=<bindirname> ;\ - macro_append <appname>linkopts " $(<package>_linkopts) $(<package>_<category>_linkopts) $(gcov_linkopts) $(icc_linkopts) " \ - target-winxp " $(<package>_linkopts) $(<package>_<category>_linkopts) " - -# Add new pattern lcg_application (bindirname=bin) -pattern lcg_application \ - apply_pattern lcg_application_template appname=<appname> import=<import> import2=<import2> files=<files> category=<category> bindirname=bin - -# Redefine pattern lcg_tstexp_application (bindirname=<tstexp>s/bin) -pattern lcg_tstexp_application \ - apply_pattern lcg_cond_mkdir_with_dep dir=$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib category=<tstexp>s name=<tstexp>_<name> ;\ - apply_pattern lcg_application_template appname=<tstexp>_<name> import=<import> import2=<import2> files=<files> category=<tstexp>s bindirname=<tstexp>s/bin ;\ - macro_append <tstexp>_<name>linkopts " -L$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib " target-winxp " /LIBPATH:$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib " - -# Redefine pattern lcg_tstexp_library -pattern lcg_tstexp_library \ - apply_pattern lcg_cond_mkdir_with_dep dir=$(CMTINSTALLAREA)/$(CMTCONFIG)/<category>/lib category=<tstexp>s name=<tstexp>_<name> ;\ - library <tstexp>_<name> -group=<tstexp>s -suffix=<name> <files> libdirname="<tstexp>s/lib" ;\ - macro <tstexp>_<name>_shlibflags "$(libraryshr_linkopts) $(<package>_linkopts) -L$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib $(use_linkopts) $(gcov_linkopts) $(icc_linkopts) " \ - target-winxp "$(libraryshr_linkopts) $(<package>_linkopts) /LIBPATH:$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib $(use_linkopts) " ;\ - macro_append <package>_<tstexp>s_linkopts " -l<tstexp>_<name> " target-winxp " <tstexp>_<name>.lib " - -# Redefine pattern lcg_tstexp_module -pattern lcg_tstexp_module \ - apply_pattern lcg_cond_mkdir_with_dep dir=$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib category=<tstexp>s name=<tstexp>_<name> ;\ - library <tstexp>_<name> -group=<tstexp>s -suffix=<name> <files> libdirname="<tstexp>s/lib" ;\ - macro lib_<tstexp>_<name>_cppflags "" target-winxp "-DPLUGIN_MANAGER_SAMPLE_BUILD_DLL" ;\ - macro <tstexp>_<name>_shlibflags "$(libraryshr_linkopts) $(<package>_linkopts) -L$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib $(<package>_<tstexp>s_linkopts) $(use_linkopts) " \ - target-winxp "$(libraryshr_linkopts) $(<package>_linkopts) /LIBPATH:$(CMTINSTALLAREA)/$(CMTCONFIG)/<tstexp>s/lib $(<package>_<tstexp>s_linkopts) $(use_linkopts) " - -# Redefine pattern lcg_test_application -pattern lcg_test_application \ - apply_pattern lcg_tstexp_application name=<name> files=<files> tstexp=test import=<import> import2=<import2> - -# Redefine pattern lcg_example_application -pattern lcg_example_application \ - apply_pattern lcg_tstexp_application name=<name> files=<files> tstexp=example - -# Remove pattern lcg_unit_test_application -pattern lcg_unit_test_application "" - -#---------------------------------------------------------------------------- -# Define the pattern for unit tests in COOL -#---------------------------------------------------------------------------- - -pattern cool_unit_test \ - apply_pattern lcg_test_application name=<package>_<tname> files=../tests/<tname>/*.cpp import=CppUnit import2=<timport> - -#---------------------------------------------------------------------------- -# Workarounds for LCGCMT issues on MacOSX -#---------------------------------------------------------------------------- - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 in LCG_os on mac109 -macro LCG_os $(LCG_os) target-mac109 mac109 - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 for clang61 on mac1010 -tag x86_64-mac1010-clang61-opt target-x86_64 target-mac1010 target-clang61 target-opt -tag target-clang61 target-c11 -macro LCG_compiler $(LCG_compiler) target-clang61 "clang61" - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 in Boost_compiler_version for clang on mac -macro Boost_compiler_version $(Boost_compiler_version) target-mac xgcc42 - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -# Link the CORAL base libraries -apply_tag NEEDS_CORAL_BASE - -use CppUnit v* LCG_Interfaces -no_auto_imports - -# The unit tests -apply_pattern cool_unit_test tname=FolderSpec -apply_pattern cool_unit_test tname=Record -apply_pattern cool_unit_test tname=RecordAdapter -apply_pattern cool_unit_test tname=RecordSelection - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/CoolKernel/cmt/version.cmt b/src/CoolKernel/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/CoolKernel/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/CoolTest/cmt/requirements b/src/CoolTest/cmt/requirements deleted file mode 100644 index 812796ee1cfd0220becf5b95a720f00e80887a5d..0000000000000000000000000000000000000000 --- a/src/CoolTest/cmt/requirements +++ /dev/null @@ -1,178 +0,0 @@ -package CoolTest - -# Define CMTINSTALLAREA correctly -use LCG_Policy v* - -# Basic dependencies as in CoolKernel -use Boost v* LCG_Interfaces -use CORAL v* LCG_Interfaces - -#---------------------------------------------------------------------------- -# CORAL plugin runtime -#---------------------------------------------------------------------------- - -use XercesC v* LCG_Interfaces - -use oracle v* LCG_Interfaces -use mysql v* LCG_Interfaces -use sqlite v* LCG_Interfaces -use Frontier_Client v* LCG_Interfaces - -# Workaround to set correctly oracle charset (to be put in LCG_Interfaces) -set NLS_LANG american_america.WE8ISO8859P1 - -# New deployment strategy for tnsnames.ora (CORALCOOL-2756, SPI-758, SPI-726). -# Also workaround for obsolete tnsnames.ora in LHCb cvmfs (CORALCOOL-2164). -# Disable Kerberos authentication on mac (CORALCOOL-2763 and CORALCOOL-1244). -set TNS_ADMIN /afs/cern.ch/sw/lcg/app/releases/CORAL/internal/oracle/admin target-mac /afs/cern.ch/sw/lcg/app/releases/CORAL/internal/oracle/admin/adminNoKerberos - -#---------------------------------------------------------------------------- -# Generic test runtime for CORAL and COOL -#---------------------------------------------------------------------------- - -use CppUnit v* LCG_Interfaces -use QMtest v* LCG_Interfaces -use valgrind v* LCG_Interfaces -use igprof v* LCG_Interfaces -use tcmalloc v* LCG_Interfaces # Eventually gperftools (CORALCOOL-2872) - -# Workaround for "failed to start tool 'memcheck'" relocatability issues -# See Rolf's message and also http://daveti.blog.com/2012/08/01/valgrind-dynamic-code-analysis-tool-part-v-valgrind-failed-to-start-tool-memcheck-for-platform -# [NB Set here for standalone valgrind use; redundantly set also in wrappers] -set VALGRIND_LIB "$(valgrind_home)/lib/valgrind" - -#---------------------------------------------------------------------------- -# PyCool runtime -#---------------------------------------------------------------------------- - -use Python * LCG_Interfaces -use Reflex * LCG_Interfaces - -# Try to drop Reflex dependency of PyCool in ROOT6 (bug #102997) -###macro select_reflex $(select_reflex) ROOT_GE_6_00 "ROOT * LCG_Interfaces" -###use $(select_reflex) - -#---------------------------------------------------------------------------- -# PyCool runtime with ROOT6 (fix relocability issues) -# See bug #103539, bug #103298 and CORALCOOL-2729 -#---------------------------------------------------------------------------- - -# Fix ROOT_INCLUDE_PATH for local tests within the COOL build directory -# (for release tests '$(COOL_include)' is prepended by LCG_Interfaces/COOL) -path_prepend ROOT_INCLUDE_PATH $(COOL_home)/../$(tag)/include - -#---------------------------------------------------------------------------- -# ACE runtime -#---------------------------------------------------------------------------- - -use Qt v* LCG_Interfaces - -#---------------------------------------------------------------------------- -# More specific test runtime for COOL -#---------------------------------------------------------------------------- - -path_prepend QMTEST_CLASS_PATH "$(CoolTest_root)/qmtest" - -# These are used within qmtest for logging (and configuring tests if needed) -set COOLSYS $(COOL_home)/../$(tag) -set CORALSYS $(CORAL_home)/../$(tag) - -# Workaround for bug #40326 in SQLite tests -set CORAL_SQLITE_TEMP_STORE_MEMORY 1 - -# Select from sys.xxx$ tables in CORAL data dictionary queries -# [done for avalassi, lcg_cool, lcg_cool_nightly even if this env is not set] -###set CORAL_ORA_SELECT_FROM_SYS_TABLES - -# Force immediate reload of short-lived cached queries (task #3440) -set FRONTIER_FORCERELOAD short -# Force immediate reload of all queries (workaround for Frontier bug #42465) -###set FRONTIER_FORCERELOAD long - -# Useful variables for COOL tests -set COOL_DISABLE_CORALCONNECTIONPOOLCLEANUP 1 -set COOL_ENABLE_COOLMSGREPORTER 1 -set COOL_MSGLEVEL Error -###set COOL_MSGLEVEL Verbose -###set COOL_QMTEST_SKIPEVOLVE 1 - -# [NB Signal handlers for qmtest tests are defined in COOLTests.py too] -# Enable the COOL signal handler (disable the ROOT one in this case!) -###set COOL_ENABLE_COOLSIGNALHANDLER 1 - -# Enable the new algorithm for MV bulk insertion (bug #17903) -# The same value would be used by default if this variable was not set -set COOL_MVINSERTION_PREFETCH_MAXROWS 1000 - -# Workaround for ORA-01466 on Oracle 11g (bug #89735) -###set COOL_TESTSUITE_SLEEPFOR01466 1 - -# Bypass tests that are expected to fail with ROOT6 (CORALCOOL-2741) -set COOL_PYCOOLTEST_SKIP_EXCEPTIONS "" ROOT_GE_6_00 1 -set COOL_PYCOOLTEST_SKIP_ROOT6927 "" ROOT_GE_6_00 1 - -#---------------------------------------------------------------------------- -# Additional runtime for the COOL nightly tests -# Some settings are different on the various slots -#---------------------------------------------------------------------------- - -# Configure which tests are run by QMtest using COOL_QMTEST_TARGET -# [Allowed values: ALL, ALL_nomysql, ALL_sqlite] -# Run only SQLite by default (e.g. for test slots and new dev slots) -# Run all backends on the release, dev (preview) and dev1 (patches) slots -# In LCG_Builders/COOL/scripts/COOL_test.sh: 'qmtest run $COOL_QMTEST_TARGET' -set COOL_QMTEST_TARGET ALL_sqlite \ - lcg_ngt_slt_release ALL \ - lcg_ngt_slt_dev ALL \ - lcg_ngt_slt_dev1 ALL - -#---------------------------------------------------------------------------- -# Workarounds for LCGCMT issues on MacOSX -#---------------------------------------------------------------------------- - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 in LCG_os on mac109 -macro LCG_os $(LCG_os) target-mac109 mac109 - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 for clang61 on mac1010 -tag x86_64-mac1010-clang61-opt target-x86_64 target-mac1010 target-clang61 target-opt -tag target-clang61 target-c11 -macro LCG_compiler $(LCG_compiler) target-clang61 "clang61" - -# === Workaround in both CoolTest and CoolKernel === -# Workaround for SPI-787 in Boost_compiler_version for clang on mac -macro Boost_compiler_version $(Boost_compiler_version) target-mac xgcc42 - -# === Workaround in both CoolTest and PyCool === -# Workaround for SPI-787 in Python_home for clang on mac -macro Python_home $(Python_home) target-mac "${LCG_external}/Python/$(Python_native_version)/$(LCG_system)" - -# === Workaround in CoolTest only === -# Workaround for SPI-787 (using a wrong version of the oracle client) -macro oracle_config_version $(oracle_config_version) target-mac 11.2.0.3.0 -macro oracle_home $(oracle_home) target-mac /afs/cern.ch/sw/lcg/external/oracle/$(oracle_native_version)/macosx64 - -#============================================================================ -# Private actions and build rules -#============================================================================ - -private - -#---------------------------------------------------------------------------- -# Actions and build rules - tests, utilities and examples -#---------------------------------------------------------------------------- - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" - -#============================================================================ diff --git a/src/CoolTest/cmt/version.cmt b/src/CoolTest/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/CoolTest/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/Examples/cmt/requirements b/src/Examples/cmt/requirements deleted file mode 100644 index e96b48ad0838c368741799e4b1998798dcc489a8..0000000000000000000000000000000000000000 --- a/src/Examples/cmt/requirements +++ /dev/null @@ -1,61 +0,0 @@ -package Examples - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -use CoolKernel v* -use CoolApplication v* - -#---------------------------------------------------------------------------- -# Library -#---------------------------------------------------------------------------- - -include_path none - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -#---------------------------------------------------------------------------- -# Examples -#---------------------------------------------------------------------------- - -include_dirs ../Libraries/ExampleBase - -# Link the CORAL relational libraries -apply_tag NEEDS_CORAL_RELATIONAL_ACCESS - -# Library needed by many examples -apply_pattern lcg_example_library name=ExampleBase files=../Libraries/ExampleBase/src/*.cpp - -# Define the pattern for examples in COOL -pattern cool_example \ - apply_pattern lcg_example_application name=Cool_<name> files=../<name>/src/*.cpp ; macro_append example_Cool_<name>_dependencies " example_ExampleBase " - -# The examples -apply_pattern cool_example name=DBAliases -apply_pattern cool_example name=MCBulkRetrieval -apply_pattern cool_example name=MVstorage -apply_pattern cool_example name=ReTag -apply_pattern cool_example name=SharedConnection -apply_pattern cool_example name=SharedConnection2 -apply_pattern cool_example name=SimpleRead -apply_pattern cool_example name=SimpleWrite -apply_pattern cool_example name=SVstorage -apply_pattern cool_example name=UseCases -apply_pattern cool_example name=UseChannels -apply_pattern cool_example name=UseClob -apply_pattern cool_example name=UseFolderSets -apply_pattern cool_example name=UsePayloadQueries -apply_pattern cool_example name=UseTags - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" diff --git a/src/Examples/cmt/version.cmt b/src/Examples/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/Examples/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/PyCool/cmt/_setupPyROOT.sh b/src/PyCool/cmt/_setupPyROOT.sh deleted file mode 100644 index 238e09b6862ae43676d02ae100bfe9e55726f447..0000000000000000000000000000000000000000 --- a/src/PyCool/cmt/_setupPyROOT.sh +++ /dev/null @@ -1,59 +0,0 @@ -# Do not remove this line -if [ "1" != "1" ]; then echo "Force failure and exit if sourced from csh"; fi - -# Software versions -LCG_version='LCG_75root6' -###GCCXML_version='0.9.0_20131026' -Python_version='2.7.9' -Python_twodigit='python2.7' -ROOT_version='6.02.08' -###xrootd_version='3.3.6' - -# Platform (O/S and compiler) -LCG_platform=x86_64-slc6-gcc48-opt -gcc_version='4.8.1' - -#----------------------------------------------------------------------------- - -LCG_releases=/afs/cern.ch/sw/lcg/releases/$LCG_version - -# Software installations -###GCCXML_home=$LCG_releases/gccxml/$GCCXML_version/$LCG_platform -Python_home=$LCG_releases/Python/$Python_version/$LCG_platform -ROOT_base=$LCG_releases/ROOT/$ROOT_version -ROOT_home=$ROOT_base/$LCG_platform -###xrootd_home=$LCG_releases/xrootd/$xrootd_version/$LCG_platform -gcc_home=$LCG_releases/gcc/$gcc_version/x86_64-slc6 - -# === OVERRIDE ROOT VERSION (test ROOT-5698 in dev3 master) === -ROOT_base=/afs/cern.ch/sw/lcg/app/nightlies/dev3/Mon/ROOT/HEAD -ROOT_home=$ROOT_base/$LCG_platform -###ROOT_base=/afs/cern.ch/sw/lcg/app/nightlies/dev4/Mon/ROOT/v6-02-00-patches -###ROOT_home=$ROOT_base/$LCG_platform - -# Set up compiler -export LD_LIBRARY_PATH=$gcc_home/lib64:$LD_LIBRARY_PATH -export COMPILER_PATH=$gcc_home/lib/gcc/x86_64-unknown-linux-gnu/$gcc_version -export PATH=$gcc_home/bin:$PATH - -# Set up Python -export LD_LIBRARY_PATH=$Python_home/lib:$LD_LIBRARY_PATH -export MANPATH=$Python_home/share/man:$MANPATH -export PATH=$Python_home/bin:$PATH -export ROOT_INCLUDE_PATH=$Python_home/include/$Python_twodigit # First in path - -# Set up gccxml (needed by ROOT) -###export MANPATH=$GCCXML_home/share/man:$MANPATH -###export PATH=$GCCXML_home/bin:$PATH - -# Set up xrootd (needed by ROOT) -###export LD_LIBRARY_PATH=$xrootd_home/lib64:$LD_LIBRARY_PATH -###export PATH=$xrootd_home/bin:$PATH -###export ROOT_INCLUDE_PATH=$xrootd_home/include:$ROOT_INCLUDE_PATH - -# Set up ROOT -export ROOTSYS=$ROOT_home -export LD_LIBRARY_PATH=$ROOT_home/lib:$LD_LIBRARY_PATH -export MANPATH=$ROOT_home/man:$MANPATH:$ROOT_base/src/root/man -export PATH=$ROOT_home/bin:$PATH -export PYTHONPATH=$ROOT_home/lib:$PYTHONPATH diff --git a/src/PyCool/cmt/requirements b/src/PyCool/cmt/requirements deleted file mode 100755 index 2bc3fee7b368f28a8139314067e097510b113b43..0000000000000000000000000000000000000000 --- a/src/PyCool/cmt/requirements +++ /dev/null @@ -1,165 +0,0 @@ -package PyCool - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -# Define CMTINSTALLAREA correctly -use LCG_Policy v* - -use CoolKernel * -use CoolApplication * -use Python * LCG_Interfaces - -# Try to drop Reflex dependency of PyCool in ROOT6 (bug #102997) -macro select_reflex "Reflex * LCG_Interfaces" -###macro select_reflex $(select_reflex) ROOT_GE_6_00 "ROOT * LCG_Interfaces" -use $(select_reflex) - -#---------------------------------------------------------------------------- -# Library -#---------------------------------------------------------------------------- - -# Make PyCool_helpers.h visible verbatim in PyCoolDict.so (bug #103539) -# See http://stackoverflow.com/questions/14802807/compare-files-date-bash -action concatenate_headers "if [ ! -e $(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h ] || [ $(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h -ot $(PyCool_root)/dict/PyCool_headers.h ] || [ $(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h -ot $(RelationalCool_root)/src/PyCool_helpers.h ] ; then mkdir -p $(PyCool_root)/$(tag)/dict ; cat $(RelationalCool_root)/src/PyCool_helpers.h $(PyCool_root)/dict/PyCool_headers.h > $(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h ; cp $(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h $(CMTINSTALLAREA)/$(tag)/python/PyCool/_internal/PyCool_headers_and_helpers.h ; fi" -macro concatenate_headers_dependencies install_pythonmods -macro lcg_PyCoolGen_dependencies concatenate_headers - -# Workaround for LCGCMT bug #45934 with CMT v1r20p20070208 -# -> Remove "-import= -import=Reflex" (kills macro <dictionary>_use_linkopts) -# -> Note that Reflex_linkopts are already added to that macro by 'use Reflex' -pattern reflex_dictionary \ - private ;\ - document reflex_dictionary_generator <dictionary>Gen <headerfiles> dictionary=<dictionary> libdirname=lib ; \ - library <dictionary>Dict -s=../$(tag)/dict/<dictionary> *.cpp ; \ - macro <dictionary>_reflex_selection_file " <selectionfile> " ; \ - macro <dictionary>_rootmap $(<PACKAGE>ROOT)/$(tag)/<dictionary>Dict.rootmap \ - <project>_with_installarea $(CMTINSTALLAREA)/$(tag)/lib/<project>Dict.rootmap ;\ - macro <dictionary>_reflex_options " <options> $(gccxmlopts) --select=<selectionfile> --gccxmlpath=$(GCCXML_home)/bin" ; \ - macro <dictionary>Dict_dependencies "$(<package>_linker_library) <dictionary>Gen" ;\ - macro <dictionary>Dict_shlibflags "$(libraryshr_linkopts) $(cmt_installarea_linkopts) $(<package>_linkopts) $(<dictionary>Dict_use_linkopts) " ;\ - end_private - -# Remove gccxml dependency for PyCool in ROOT6 (bug #103971 and SPI-435) -# Generate "barebone" dictionaries for ROOT6 via --interpreteronly (bug #103298) -pattern root6_dictionary \ - private ;\ - document reflex_dictionary_generator <dictionary>Gen <headerfiles> dictionary=<dictionary> libdirname=lib ; \ - library <dictionary>Dict -s=../$(tag)/dict/<dictionary> *.cpp ; \ - macro <dictionary>_reflex_selection_file " <selectionfile> " ; \ - macro <dictionary>_reflex_options " <options> --select=<selectionfile> --interpreteronly" ; \ - macro <dictionary>Dict_dependencies "$(<package>_linker_library) <dictionary>Gen" ;\ - macro <dictionary>Dict_shlibflags "$(libraryshr_linkopts) $(cmt_installarea_linkopts) $(<package>_linkopts) $(<dictionary>Dict_use_linkopts) " ;\ - end_private - -# Use different selections for ROOT6/c++11 and ROOT5/boost -# [This is related to task #48846, bug #103302, bug #103309, bug #103298] -# If ROOT6 is used, we can automatically assume that >=COOL290 is used -macro PyCool_selection_file ../dict/PyCool_selection.xml \ - ROOT_GE_6_00&target-c11 ../dict/PyCool_selection_root6.xml -macro PyCool_dictionary_pattern reflex_dictionary \ - ROOT_GE_6_00&target-c11 root6_dictionary -apply_pattern $(PyCool_dictionary_pattern) dictionary=lcg_PyCool \ - selectionfile=$(PyCool_selection_file) \ - headerfiles=$(PyCool_root)/$(tag)/dict/PyCool_headers_and_helpers.h - -include_path none - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -# 1. Disable c++0x/c++11 for target-c11 on ROOT5 (workaround for bug #97948) -# Use target-c11 instead of target-gccmax (fix bug #98684) -# 2. Reenable c++0x/c++11 for target-c11 on ROOT6 (see ROOT-5559) -macro_remove cppflags "-std=c++0x" ROOT_GE_6_00&target-c11 "" -macro_remove cppflags "-std=c++11" ROOT_GE_6_00&target-c11 "" - -# Add -fpermissive for c++11 on ROOT6 (temporary workaround for bug #103303) -# Use this only on gcc as on clang the option does not exist (SPI-355) -# Disable the workaround as this issue is now fixed in ROOT6 (ROOT-5757) -###macro_append cppflags "" ROOT_GE_6_00&target-c11&target-gcc " -fpermissive " - -# Disable COOL290 API deprecation warnings in PyCool (bug #103338) -macro_append cppflags "" \ - target-gcc " -Wno-deprecated-declarations " \ - target-clang " -Wno-deprecated-declarations " - -# Debug options for genreflex (show the full gccxml invocation) -###macro_prepend gccxmlopts "" target-winxp " --debug=1" - -# Debug options for gccxml in genreflex (print all #define) -###macro_prepend gccxmlopts '' target-winxp ' --gccxmlopt="-E -dM"' - -# Add missing options to genreflex for Windows (MarcoC - Nov 2006) -macro_prepend gccxmlopts "" target-winxp " -D__MT__" - -# Disable vc9 warnings (workaround for bug #45757) -macro_prepend use_cppflags "" target-vc9 " /D_SCL_SECURE_NO_WARNINGS" - -macro_append Boost_linkopts " $(Boost_linkopts_thread)" -macro_append CORAL_linkopts " $(CORAL_libs)" - -# Change the name of the generated rootmap file for ROOT5 -# Do not generate any rootmap for ROOT6 (see bug #103298) -macro lcg_PyCool_rootmap "$(CMTINSTALLAREA)/$(tag)/lib/lcg_PyCool.rootmap" \ - ROOT_GE_6_00&target-c11 "" - -#---------------------------------------------------------------------------- -# Install temporary dictionary files (debug bug #102087) -#---------------------------------------------------------------------------- - -macro tmpdir "$(CMTINSTALLAREA)/$(tag)/tmp" -action install_tmpdict "mkdir -p $(tmpdir); cp -rf ../$(tag)/dict $(tmpdir)/." - -# Copy dictionaries after they are generated but before they are compiled -# This makes it possible to debug ROOT6 dictionary generation (ROOT-5544) -macro install_tmpdict_dependencies lcg_PyCoolGen - -# Append to 'constituents' to execute an action in 'cmt make' -# (append to 'all_constituents' to execute it only in 'cmt make all'). -# Remove the action from cmt_actions_constituents so that the action -# is not executed twice in 'cmt make all_groups' (it executes all actions). -macro_append constituents " install_tmpdict " -macro_remove cmt_actions_constituents "install_tmpdict" - -#---------------------------------------------------------------------------- -# Install an empty pcm (workaround for ROOT-6366) -#---------------------------------------------------------------------------- - -# Install an empty pcm (workaround for ROOT-6366) -###action install_pcm "touch $(CMTINSTALLAREA)/$(tag)/lib/lcg_PyCoolDict_rdict.pcm" - -# Append to 'constituents' to execute an action in 'cmt make' -# (append to 'all_constituents' to execute it only in 'cmt make all'). -# Remove the action from cmt_actions_constituents so that the action -# is not executed twice in 'cmt make all_groups' (it executes all actions). -###macro_append constituents "" ROOT_GE_6_00 " install_pcm " -###macro_remove cmt_actions_constituents "install_pcm" - -#---------------------------------------------------------------------------- -# Tests -#---------------------------------------------------------------------------- - -apply_pattern lcg_test_python -apply_pattern lcg_cond_mkdir dir=$(PyCool_cmtpath)/../$(tag)/tests/bin -macro_append tests_dependencies lcg_mkdir - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" - -#---------------------------------------------------------------------------- -# Workarounds for LCGCMT issues on MacOSX -#---------------------------------------------------------------------------- - -# === Workaround in both CoolTest and PyCool === -# Workaround for SPI-787 in Python_home for clang on mac -macro Python_home $(Python_home) target-mac "${LCG_external}/Python/$(Python_native_version)/$(LCG_system)" diff --git a/src/PyCool/cmt/version.cmt b/src/PyCool/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/PyCool/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/PyCoolUtilities/cmt/requirements b/src/PyCoolUtilities/cmt/requirements deleted file mode 100644 index 41d029d84a9f17bbce18e36ae3f394793b6006ca..0000000000000000000000000000000000000000 --- a/src/PyCoolUtilities/cmt/requirements +++ /dev/null @@ -1,43 +0,0 @@ -package PyCoolUtilities - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -# Define LCG patterns and define CMTINSTALLAREA correctly -use LCG_Policy v* - -# Define host-darwin on Darwin -use LCG_Platforms v* - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -#---------------------------------------------------------------------------- -# Tests -#---------------------------------------------------------------------------- - -# Create the tests/bin directory if it does not exist (bug #103346) -apply_pattern lcg_cond_mkdir dir=$(PyCoolUtilities_cmtpath)/../$(tag)/tests/bin -macro_append tests_constituents " lcg_mkdir " -macro tests_dependencies "lcg_mkdir" - -# Copy Regression/*.py from the tests directory -macro cpdproption "-dpr" host-darwin "-pPR" -action regression "mkdir -p $(PyCoolUtilities_cmtpath)/../$(tag)/tests/bin/Regression; cp $(cpdproption) ../tests/Regression/*.py $(PyCoolUtilities_cmtpath)/../$(tag)/tests/bin/Regression/." -macro_append regression_dependencies " lcg_mkdir " -macro_append tests_dependencies " regression " - -# Copy test_*.py from the tests directory -apply_pattern lcg_test_python - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/PyCoolUtilities/cmt/version.cmt b/src/PyCoolUtilities/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/PyCoolUtilities/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/RelationalCool/cmt/requirements b/src/RelationalCool/cmt/requirements deleted file mode 100755 index a284a1dd968a94ccb90c91e3d625bf6b6ba1a8fb..0000000000000000000000000000000000000000 --- a/src/RelationalCool/cmt/requirements +++ /dev/null @@ -1,117 +0,0 @@ -package RelationalCool - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -# Define CMTINSTALLAREA correctly -use LCG_Policy v* - -use CoolKernel v* - -#---------------------------------------------------------------------------- -# Library -#---------------------------------------------------------------------------- - -include_path none -apply_pattern lcg_shared_library - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -# Link the CORAL relational libraries -apply_tag NEEDS_CORAL_RELATIONAL_ACCESS - -# Temporary hack to avoid c++ deprecation warnings for auto_ptr (bug #98086) -macro_append cppflags "" target-c11 " -Wno-deprecated " - -# Not sure why this was needed on Windows... -###macro_append lcg_RelationalCool_shlibflags '' target-winxp ' PowrProf.lib ' - -#---------------------------------------------------------------------------- -# Tests -#---------------------------------------------------------------------------- - -use CppUnit v* LCG_Interfaces -no_auto_imports - -macro_prepend CppUnit_linkopts " -Wl,--no-as-needed " target-mac "" -macro_append CppUnit_linkopts " -Wl,--as-needed " target-mac "" - -# Unit tests with no database connection -apply_pattern cool_unit_test tname=ChannelSelection -apply_pattern cool_unit_test tname=PayloadSpecification -apply_pattern cool_unit_test tname=VersionNumber -apply_pattern cool_unit_test tname=HvsPathHandler -apply_pattern cool_unit_test tname=RelationalDatabaseId -apply_pattern cool_unit_test tname=ObjectId -apply_pattern cool_unit_test tname=utility_methods - -# Unit tests with a database connection -apply_pattern cool_unit_test tname=Channels -apply_pattern cool_unit_test tname=HvsTags -apply_pattern cool_unit_test tname=RalDatabase -apply_pattern cool_unit_test tname=RalDatabase_extendedSpec -apply_pattern cool_unit_test tname=RalDatabaseSvc -apply_pattern cool_unit_test tname=RalSequence -apply_pattern cool_unit_test tname=RelationalFolder -apply_pattern cool_unit_test tname=RelationalFolderSet -apply_pattern cool_unit_test tname=RelationalObjectIterator -apply_pattern cool_unit_test tname=RelationalObjectMgr -apply_pattern cool_unit_test tname=RelationalObjectSet -apply_pattern cool_unit_test tname=RelationalObjectTable - -# Private unit tests - not to be installed in the release area -###apply_pattern cool_unit_test tname=Bug62634 -###macro_remove tests_constituents test_RelationalCool_Bug62634 - -# Disable deprecation warnings on clang (bug #103338) -macro_append app_test_RelationalCool_RalDatabase_cppflags ""\ - target-clang " -Wno-deprecated-declarations " - -#---------------------------------------------------------------------------- -# Utilities -#---------------------------------------------------------------------------- - -# New version using the new LCG_Policy patterns (SPI-169) -# Inherit gcov/icc linkopts from pattern lcg_application (fix bug #91133) -# Link lcg_<package> needed in lcg_module_library but not in lcg_shared_library -pattern cool_utility \ - apply_pattern lcg_application appname=<uname> files=../utilities/<uname>/*.cpp import2=<timport> category=utilities ; \ - macro <uname>_dependencies ' lcg_<package> ' - -apply_pattern cool_utility uname=coolAuthentication -apply_pattern cool_utility uname=coolDropDB -apply_pattern cool_utility uname=coolDumpSchema -apply_pattern cool_utility uname=coolEvolveSchema -apply_pattern cool_utility uname=coolPrivileges -apply_pattern cool_utility uname=coolReplicateDB -apply_pattern cool_utility uname=coolStat -apply_pattern cool_utility uname=coolValidateSchema - -#---------------------------------------------------------------------------- -# Install the scripts -#---------------------------------------------------------------------------- - -macro scrdir "$(CMTINSTALLAREA)/$(tag)/bin" \ - target-winxp "$(CMTINSTALLAREA)\$(tag)\bin" -action install_scripts "mkdir -p $(scrdir); cp -rf ../scripts/*.* $(scrdir)/.; cp -rf ../scripts/sql $(scrdir)/." \ - target-winxp "xcopy /I/S/Y/Q ..\scripts\*.* $(scrdir)\." - -# Append to 'constituents' to execute an action in 'cmt make' -# (append to 'all_constituents' to execute it only in 'cmt make all'). -# Remove the action from cmt_actions_constituents so that the action -# is not executed twice in 'cmt make all_groups' (it executes all actions). -macro_append constituents "install_scripts" -macro_remove cmt_actions_constituents "install_scripts" - -#---------------------------------------------------------------------------- - -# Do not install the header files -macro_remove constituents 'install_includes' - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/RelationalCool/cmt/version.cmt b/src/RelationalCool/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/RelationalCool/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/Utilities/ACE/cmt/fragments/empty_header b/src/Utilities/ACE/cmt/fragments/empty_header deleted file mode 100644 index 97c303b3ee170d19d70324b6ba89fd93e781457b..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/fragments/empty_header +++ /dev/null @@ -1 +0,0 @@ -# Empty header required for some fragments diff --git a/src/Utilities/ACE/cmt/fragments/moc b/src/Utilities/ACE/cmt/fragments/moc deleted file mode 100644 index d81317d49c9dd1040c7e791064f3a6c09e22d718..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/fragments/moc +++ /dev/null @@ -1,28 +0,0 @@ -# CMT Makefile document fragment to generate Qt "moc" files -# from header files containing Qt (sub)classes. -# -# We check that the header files contain the required Q_OBJECT macro. -# To cope with the difficulties of moving HDMC to CMT, allow a non-ATLAS -# style header file location to be specified for the #include directives -# in the moc files. The default is the ATLAS convention, ie the package name. - -ifneq ($(shell grep Q_OBJECT ${FULLNAME}),) - -hprefix ?= $(package) -mocdir := $(bin)qt/moc - -###ifneq ($(OSTYPE),darwin) - -${CONSTITUENT} :: ${mocdir}/moc${NAME}.cpp - -${mocdir}/moc${NAME}.cpp : ${FULLNAME} - @if test ! -d ${mocdir}; then mkdir -p ${mocdir}; fi - ${QTDIR}/bin/moc -f$(hprefix)/$(<F) -o $@ $< - -else - -${CONSTITUENT} :: ${FULLNAME} - -###endif - -endif diff --git a/src/Utilities/ACE/cmt/fragments/nmake/empty_header b/src/Utilities/ACE/cmt/fragments/nmake/empty_header deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/Utilities/ACE/cmt/fragments/nmake/moc b/src/Utilities/ACE/cmt/fragments/nmake/moc deleted file mode 100644 index 0884f6b9111d35c29f7ea2a5826a03dee409e14d..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/fragments/nmake/moc +++ /dev/null @@ -1 +0,0 @@ -${CONSTITUENT} :: diff --git a/src/Utilities/ACE/cmt/requirements b/src/Utilities/ACE/cmt/requirements deleted file mode 100644 index aa2c8d9951c83deabc7a9bf3be04d2220e11492a..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/requirements +++ /dev/null @@ -1,50 +0,0 @@ -package ACE - -use CoolApplication v* -use Qt v* LCG_Interfaces - -private - -# Link the CORAL base libraries (fix CORALCOOL-2754 on CC7) -apply_tag NEEDS_CORAL_BASE - -# Do not install the header files -macro_remove constituents 'install_includes' - -# Fragment to generate the Qt "moc" files using the Qt "meta object compiler". -# Copied from Murrough Landon's version for Atlas (LVL1/l1calo/qtExternal). -make_fragment moc -header=empty_header - -# Generate the Qt "moc" files using the Qt "meta object compiler". -document moc ace_moc_src -s=../$(package) *.h - -# Build the ace application (on Linux only). -macro ace_dependencies ace_moc_src -macro ace_cppflags " -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED" \ - target-winxp "" -macro ace_sources "*.cpp $(bin)qt/moc/*.cpp" \ - target-winxp "MainWindow.cpp" \ - target-darwin "MainWindow.cpp" -macro Qt_linkopts $(Qt_linkopts) \ - target-winxp "" \ - target-darwin "" - -apply_pattern lcg_application appname=ace files=$(ace_sources) category=utilities - -# Disable 'type qualifiers on function return type' gcc43 warning (bug #42574) -macro_remove cppflags '' target-gcc43 '-Wall -W' - -# Disable warning #82 for Qt (bug #102163): storage class is not first -macro_remove cppflags '' target-icc '-ww82 ' -macro_append cppflags '' target-icc '-wd82 ' - -# Disable gcc51 warning (qInitResources_icons__init_variable__ defined not used) -macro_append cppflags '' target-gcc51 ' -Wno-unused-variable ' - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/Utilities/ACE/cmt/requirements.STANDALONE b/src/Utilities/ACE/cmt/requirements.STANDALONE deleted file mode 100644 index 5ce3845d400c1879deb4ed5e9e2640a2b9268d65..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/requirements.STANDALONE +++ /dev/null @@ -1,43 +0,0 @@ -package ACE - -use LCG_Policy v* -use SEAL v* LCG_Interfaces -use COOL v* LCG_Interfaces -use Qt v* LCG_Interfaces - -private - -# Do not install the header files -macro_remove constituents 'install_includes' - -# Andrea: redefine the Qt version only within the private section -# to avoid interfering with other packages (LCG54 uses Qt 3.3.8). -# Also fix a bug in the Qt link options for 4.3.0. -macro Qt_config_version "4.3.0" -macro Qt_linkopts "-L$(Qt_home)/lib -lQtCore -lQtGui" \ - WIN32 "" \ - osx104 "" - -# Fragment to generate the Qt "moc" files using the Qt "meta object compiler". -# Copied from Murrough Landon's version for Atlas (LVL1/l1calo/qtExternal). -make_fragment moc -header=empty_header - -# Generate the Qt "moc" files using the Qt "meta object compiler". -document moc ace_moc_src -s=../$(package) *.h - -# Build the ace application. -macro_append use_linkopts "$(COOL_applibs)" -macro ace_dependencies ace_moc_src -macro ace_cxxflags " -pipe -g -D_REENTRANT -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED" WIN32 "" -macro ace_sources "*.cpp $(bin)qt/moc/*.cpp" \ - WIN32 "MainWindow.cpp" \ - osx104 "MainWindow.cpp" -application ace $(ace_sources) - -# Fake target for tests. -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for examples. -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/Utilities/ACE/cmt/version.cmt b/src/Utilities/ACE/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/Utilities/ACE/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/Utilities/CoolDBDiscovery/cmt/requirements b/src/Utilities/CoolDBDiscovery/cmt/requirements deleted file mode 100644 index a03426d8afe61de1f5b636e579de587f26cc5132..0000000000000000000000000000000000000000 --- a/src/Utilities/CoolDBDiscovery/cmt/requirements +++ /dev/null @@ -1,26 +0,0 @@ -package CoolDBDiscovery - -#============================================================================ -# Public dependencies and build rules -#============================================================================ - -use CoolKernel v* - -#============================================================================ -# Private dependencies and build rules -#============================================================================ - -private - -apply_pattern lcg_application appname=coolDBDiscovery files=../src/*.cpp category=utilities - -# Link the CORAL relational libraries -apply_tag NEEDS_CORAL_RELATIONAL_ACCESS - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" diff --git a/src/Utilities/CoolDBDiscovery/cmt/version.cmt b/src/Utilities/CoolDBDiscovery/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/Utilities/CoolDBDiscovery/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1 diff --git a/src/cmt/project.cmt b/src/cmt/project.cmt deleted file mode 100644 index bf14c2e5e893693703bb716cf542e3f976fc2e33..0000000000000000000000000000000000000000 --- a/src/cmt/project.cmt +++ /dev/null @@ -1,11 +0,0 @@ -project COOL - -build_strategy with_installarea -setup_strategy no_root no_config - -# Use the configuration from one of the last installed releases -# (default CMTPROJECTPATH is /afs/cern.ch/sw/lcg/app/releases). -use LCGCMT LCGCMT_86-d10d6 - -# Change the above tag to use the configuration from one of the nightly slots -# (nightly CMTPROJECTPATH is /afs/cern.ch/sw/lcg/app/nightlies/<slot>/<day>). diff --git a/src/config/cmt/CMT_env.csh b/src/config/cmt/CMT_env.csh deleted file mode 100644 index 5b0eb3d0063122133d01ac174642c64120b39c32..0000000000000000000000000000000000000000 --- a/src/config/cmt/CMT_env.csh +++ /dev/null @@ -1,137 +0,0 @@ -# Check that CMTCONFIG was set before executing this script -if ( "${?CMTCONFIG}" != "1" ) then - echo "ERROR! CMTCONFIG is not set" > /dev/stderr - exit 1 -endif - -# Check that this script is being sourced in its own directory -if ( ! -e CMT_env.csh ) then - echo "ERROR! Please source CMT_env.csh in its own directory" > /dev/stderr - exit 1 -endif -set thePwd=`pwd` - -# Set the CMT version -if ( "${?OSTYPE}" == "1" && "${OSTYPE}" == "darwin" ) then - setenv CMTVERS v1r20p20090520 - # Upgrade ${CMTROOT}/mgr/cmt_dcc_version.sh on MacOSX to handle clang60? - ###setenv CMTVERS v1r26p20140131 # Gives issues in CORAL Tests/cmt -else - setenv CMTVERS v1r20p20090520 -endif - -# Use CVMSFS (LHCb or SFT) if file 'usecvmfs' is found in this directory -# Set or unset AFS, SITEROOT, CMTROOT, CMTSITE, CMTPROJECTPATH accordingly -# [see /cvmfs/lhcb.cern.ch/group_login.csh for the cvmfs-based LHCb setup] -# Note: SITEROOT is no longer required as of LCGCMT_64 (but does not harm) -if ( -e usecvmfs && -d /cvmfs ) then - if ( { grep -q ^${CMTCONFIG}:afs usecvmfs } ) then - set theCvmfs=afs - else if ( { grep -q ^${CMTCONFIG}:lhcb usecvmfs } ) then - set theCvmfs=lhcb - else if ( { grep -q ^${CMTCONFIG}:sft usecvmfs } ) then - set theCvmfs=sft - else if ( { grep -q ^lhcb usecvmfs } ) then - set theCvmfs=lhcb - else if ( { grep -q ^sft usecvmfs } ) then - set theCvmfs=sft - else - set theCvmfs=afs - endif -else - set theCvmfs=afs -endif -if ( "$theCvmfs" != "afs" ) then - echo "Configure CMT using CVMFS" - unsetenv AFS - setenv CMTSITE LOCAL - if ( "$theCvmfs" == "lhcb" ) then - echo "Configure CMT using /cvmfs/lhcb.cern.ch" - setenv SITEROOT /cvmfs/lhcb.cern.ch/lib - setenv CMTROOT /cvmfs/lhcb.cern.ch/lib/contrib/CMT/$CMTVERS - setenv CMTPROJECTPATH $SITEROOT/lcg/releases:$SITEROOT/lcg/app/releases - else - echo "Configure CMT using /cvmfs/sft.cern.ch" - setenv SITEROOT /cvmfs/sft.cern.ch - setenv CMTROOT /cvmfs/sft.cern.ch/lcg/external/CMT/$CMTVERS - setenv CMTPROJECTPATH $SITEROOT/lcg/releases:$SITEROOT/lcg/app/releases - endif -else - echo "Configure CMT using AFS" - setenv AFS /afs - unsetenv CMTSITE - setenv SITEROOT /afs/cern.ch - setenv CMTROOT /afs/cern.ch/sw/contrib/CMT/$CMTVERS - setenv CMTPROJECTPATH $SITEROOT/sw/lcg/releases:$SITEROOT/sw/lcg/app/releases -endif - -# Setup CMT -source $CMTROOT/mgr/setup.csh - -# Set VERBOSE (verbose build for CMT v1r20p2008xxxx or higher) -setenv VERBOSE 1 - -# Unset LD_LIBRARY_PATH -setenv LD_LIBRARY_PATH - -# Unset CMTPATH (use CMTPROJECTPATH) -setenv CMTPATH - -# Set CMTUSERCONTEXT and user-specific customizations -if ( -d ${thePwd}/../../cmt/USERCONTEXT/${USER} ) then - setenv CMTUSERCONTEXT `cd ${thePwd}/../../cmt/USERCONTEXT/${USER}; pwd` - if ( -e ${CMTUSERCONTEXT}/CMT_userenv.csh ) then - echo "[Customize user environment using ${CMTUSERCONTEXT}/CMT_userenv.csh]" - source ${CMTUSERCONTEXT}/CMT_userenv.csh - echo "[Customize user environment: done]" - endif -else - unsetenv CMTUSERCONTEXT -endif - -# Setup icc13 compiler -if ( "$CMTCONFIG" == "i686-slc6-icc13-dbg" || \ - "$CMTCONFIG" == "i686-slc6-icc13-opt" || \ - "$CMTCONFIG" == "x86_64-slc6-icc13-dbg" || \ - "$CMTCONFIG" == "x86_64-slc6-icc13-opt" ) then - echo "CMTCONFIG set to '$CMTCONFIG': set up icc13 Intel compiler" - set coralhome=`cmt show macro_value CORAL_home` - if ( -e $coralhome/../src/config/cmt/icc13_setup.csh ) then - source $coralhome/../src/config/cmt/icc13_setup.csh - else - echo "WARNING! icc13_setup.csh not found in $coralhome/../src/config/cmt" > /dev/stderr - endif -endif - -# Add system man paths to MANPATH (bug #100774) -set manpath=`which manpath` -###setenv MANPATH `unsetenv MANPATH; unsetenv PATH; $manpath` -setenv MANPATH `unsetenv MANPATH; $manpath` # Do not unsetenv PATH on CC7 - -# Printout CMT environment variables -echo "CMTCONFIG set to '$CMTCONFIG'" -echo "CMTROOT set to '$CMTROOT'" -echo "CMTPATH set to '$CMTPATH'" -echo "CMTPROJECTPATH set to '$CMTPROJECTPATH'" -if ( "${?CMTUSERCONTEXT}" == "1" ) then - echo "CMTUSERCONTEXT set to '$CMTUSERCONTEXT'" -else - echo "CMTUSERCONTEXT is not set" -endif -if ( "${?CMTINSTALLAREA}" == "1" ) then - echo "CMTINSTALLAREA set to '$CMTINSTALLAREA'" -else - echo "CMTINSTALLAREA is not set" -endif -if ( "${?CMTSITE}" == "1" ) then - echo "CMTSITE set to '$CMTSITE'" -else - echo "CMTSITE is not set" -endif -if ( "${?CMTEXTRATAGS}" == "1" ) then - echo "CMTEXTRATAGS set to '$CMTEXTRATAGS'" -else - echo "CMTEXTRATAGS is not set" -endif -echo "LD_LIBRARY_PATH set to '$LD_LIBRARY_PATH'" -echo "MANPATH set to '$MANPATH'" diff --git a/src/config/cmt/CMT_env.sh b/src/config/cmt/CMT_env.sh deleted file mode 100644 index d33b900d7b58dc8cbfdce473a4cfa30cb1620297..0000000000000000000000000000000000000000 --- a/src/config/cmt/CMT_env.sh +++ /dev/null @@ -1,123 +0,0 @@ -# Check that CMTCONFIG was set before executing this script -if [ "$CMTCONFIG" == "" ] ; then - echo "ERROR! CMTCONFIG was not set" > /dev/stderr - return 1 -fi -export CMTCONFIG - -# Check that this script is being sourced in its own directory -if [ ! -e CMT_env.sh ] ; then - echo "ERROR! Please source CMT_env.sh in its own directory" > /dev/stderr - return 1 -fi -thePwd=`pwd` - -# Set the CMT version -if [ "${OSTYPE}" == "darwin" ]; then - export CMTVERS=v1r20p20090520 - # Upgrade ${CMTROOT}/mgr/cmt_dcc_version.sh on MacOSX to handle clang60? - ###export CMTVERS=v1r26p20140131 # Gives issues in CORAL Tests/cmt -else - export CMTVERS=v1r20p20090520 -fi - -# Use CVMSFS (LHCb or SFT) if file 'usecvmfs' is found in this directory -# Set or unset AFS, SITEROOT, CMTROOT, CMTSITE, CMTPROJECTPATH accordingly -# [see /cvmfs/lhcb.cern.ch/group_login.csh for the cvmfs-based LHCb setup] -# Note: SITEROOT is no longer required as of LCGCMT_64 (but does not harm) -if [ -e usecvmfs ] && [ -d /cvmfs ]; then - if grep -q ^${CMTCONFIG}:afs usecvmfs; then - theCvmfs=afs - elif grep -q ^${CMTCONFIG}:lhcb usecvmfs; then - theCvmfs=lhcb - elif grep -q ^${CMTCONFIG}:sft usecvmfs; then - theCvmfs=sft - elif grep -q ^lhcb usecvmfs; then - theCvmfs=lhcb - elif grep -q ^sft usecvmfs; then - theCvmfs=sft - else - theCvmfs=afs - fi -else - theCvmfs=afs -fi -if [ "$theCvmfs" != "afs" ]; then - echo "Configure CMT using CVMFS" - unset AFS - export CMTSITE=LOCAL - if [ "$theCvmfs" == "lhcb" ]; then - echo "Configure CMT using /cvmfs/lhcb.cern.ch" - export SITEROOT=/cvmfs/lhcb.cern.ch/lib - export CMTROOT=/cvmfs/lhcb.cern.ch/lib/contrib/CMT/$CMTVERS - export CMTPROJECTPATH=$SITEROOT/lcg/releases:$SITEROOT/lcg/app/releases - else - echo "Configure CMT using /cvmfs/sft.cern.ch" - export SITEROOT=/cvmfs/sft.cern.ch - export CMTROOT=/cvmfs/sft.cern.ch/lcg/external/CMT/$CMTVERS - export CMTPROJECTPATH=$SITEROOT/lcg/releases:$SITEROOT/lcg/app/releases - fi -else - echo "Configure CMT using AFS" - export AFS=/afs - unset CMTSITE - export SITEROOT=/afs/cern.ch - export CMTROOT=/afs/cern.ch/sw/contrib/CMT/$CMTVERS - export CMTPROJECTPATH=$SITEROOT/sw/lcg/releases:$SITEROOT/sw/lcg/app/releases -fi - -# Setup CMT -. $CMTROOT/mgr/setup.sh - -# Set VERBOSE (verbose build for CMT v1r20p2008xxxx or higher) -export VERBOSE=1 - -# Unset LD_LIBRARY_PATH -unset LD_LIBRARY_PATH - -# Unset CMTPATH (use CMTPROJECTPATH) -unset CMTPATH - -# Set CMTUSERCONTEXT and user-specific customizations -if [ -d ${thePwd}/../../cmt/USERCONTEXT/${USER} ]; then - export CMTUSERCONTEXT=`cd ${thePwd}/../../cmt/USERCONTEXT/${USER}; pwd` - if [ -e ${CMTUSERCONTEXT}/CMT_userenv.sh ] ; then - echo "[Customize user environment using ${CMTUSERCONTEXT}/CMT_userenv.sh]" - . ${CMTUSERCONTEXT}/CMT_userenv.sh - echo "[Customize user environment: done]" - fi -else - unset CMTUSERCONTEXT -fi - -# Setup icc13 compiler -if [ "$CMTCONFIG" == "i686-slc6-icc13-dbg" ] || \ - [ "$CMTCONFIG" == "i686-slc6-icc13-opt" ] || \ - [ "$CMTCONFIG" == "x86_64-slc6-icc13-dbg" ] || \ - [ "$CMTCONFIG" == "x86_64-slc6-icc13-opt" ]; then - echo "CMTCONFIG set to '$CMTCONFIG': set up icc13 Intel compiler" - coralhome=`cmt show macro_value CORAL_home` - if [ -e $coralhome/../src/config/cmt/icc13_setup.sh ]; then - . $coralhome/../src/config/cmt/icc13_setup.sh - else - echo "WARNING! icc13_setup.sh not found in $coralhome/../src/config/cmt" > /dev/stderr - fi -fi - -# Add system man paths to MANPATH (bug #100774) -manpath=`which manpath` -###export MANPATH=`unset MANPATH; unset PATH; $manpath` -export MANPATH=`unset MANPATH; $manpath` # Do not unset PATH on CC7 - -# Printout CMT environment variables -echo "CMTCONFIG set to '${CMTCONFIG}'" -echo "CMTROOT set to '$CMTROOT'" -echo "CMTPATH set to '$CMTPATH'" -echo "CMTPROJECTPATH set to '$CMTPROJECTPATH'" -echo "CMTUSERCONTEXT set to '$CMTUSERCONTEXT'" -echo "CMTINSTALLAREA set to '$CMTINSTALLAREA'" -echo "CMTSITE set to '$CMTSITE'" -echo "CMTEXTRATAGS set to '$CMTEXTRATAGS'" -echo "LD_LIBRARY_PATH set to '$LD_LIBRARY_PATH'" -echo "MANPATH set to '$MANPATH'" - diff --git a/src/config/cmt/_setup.csh b/src/config/cmt/_setup.csh deleted file mode 100644 index ba0d8864854563678acba6bb9ff98407ea92793b..0000000000000000000000000000000000000000 --- a/src/config/cmt/_setup.csh +++ /dev/null @@ -1,80 +0,0 @@ - -if ( "$*" != "" ) then - echo "ERROR! Unexpected parameters '$*'" > /dev/stderr - exit 1 -endif - -# determine the path to this sourced script -# (installed into TOP/<tag>/bin from the stub in TOP/<src>/config/cmt) -set source=($_) -if ( "${source[1]}" != "source" || "${source[2]}" == "" ) then - echo "ERROR! The setup script was not sourced? ('$source')" > /dev/stderr - exit 1 -endif -if ( "${source[3]}" != "" ) then - echo "ERROR! Unexpected parameters ('$source')" > /dev/stderr - exit 1 -endif -set source=`dirname ${source[2]}` -set source=`cd ${source}; pwd` -if ( `basename ${source}` == "cmt" ) then - # original location TOP/<src>/config/cmt - # configure from config/cmt - set config=config -else - # installed location TOP/<tag>/bin - # configure from CoralTest/cmt or CoolTest/cmt - set source=`cd ${source}/..; pwd` - if ( -d ${source}/CoralTest/cmt ) then - set source=${source}/CoralTest/cmt - set config=CoralTest - else if ( -d ${source}/CoolTest/cmt ) then - set source=${source}/CoolTest/cmt - set config=CoolTest - else - echo "ERROR! Neither CoralTest/cmt nor CoolTest/cmt was found in ${source}" - exit 1 - endif -endif -echo "Setting config in ${source} for ${CMTCONFIG}" -pushd ${source} > /dev/null - -# Case 1 : setup from config/cmt -if ( "$config" == "config" ) then - source CMT_env.csh > /dev/null - if ( "$status" != "0" ) then - echo "ERROR! CMT_env.csh failed" > /dev/stderr - popd > /dev/null - exit 1 - endif - if ( $?CMTROOT == 0 ) then - echo "ERROR! CMTROOT is not set?" > /dev/stderr - popd > /dev/null - exit 1 - endif - source ${CMTROOT}/mgr/setup.csh -# Case 2 : setup from CoralTest/cmt or CoolTest/cmt -else - setenv CMTVERS v1r20p20090520 - setenv CMTROOT /afs/cern.ch/sw/contrib/CMT/$CMTVERS - setenv CMTSITE CERN - setenv SITEROOT /afs/cern.ch - setenv CMTPROJECTPATH ${source}/../../../../..:$SITEROOT/sw/lcg/releases:$SITEROOT/sw/lcg/app/releases - setenv CMTPATH - unsetenv CMTEXTRATAGS - unsetenv CMTUSERCONTEXT - unsetenv CMTINSTALLAREA - source ${CMTROOT}/mgr/setup.csh -endif - -# Create and source setup from <config>/cmt -set tempfile=`mktemp /tmp/tmp.$USER.XXXXXXXXXX` -${CMTROOT}/mgr/cmt setup -csh -pack=config -version=v1 -path=${source} -no_cleanup $* >${tempfile} -if ( "$status" != "0" ) then - echo "ERROR! cmt setup failed" > /dev/stderr - popd > /dev/null - exit 1 -endif -popd > /dev/null -source ${tempfile} -/bin/rm -f ${tempfile} diff --git a/src/config/cmt/_setup.sh b/src/config/cmt/_setup.sh deleted file mode 100644 index ef9d7bc980e13d9f7f07a608e7af5e87bdba0833..0000000000000000000000000000000000000000 --- a/src/config/cmt/_setup.sh +++ /dev/null @@ -1,76 +0,0 @@ - -if [ "$*" != "" ]; then - echo "ERROR! Unexpected parameters '$*'" > /dev/stderr - return 1 -fi - -# determine the path to this sourced script -# (installed into TOP/<tag>/bin from the stub in TOP/<src>/config/cmt) -source=$BASH_SOURCE -if [ "$source" == "" ]; then - echo "ERROR! The setup script was not sourced?" # > /dev/stderr - return 1 -fi -source=`dirname ${source}` -source=`cd ${source}; pwd` -if [ `basename ${source}` == "cmt" ]; then - # original location TOP/<src>/config/cmt - # configure from config/cmt - config=config -else - # installed location TOP/<tag>/bin - # configure from CoralTest/cmt or CoolTest/cmt - source=`cd ${source}/..; pwd` - if [ -d ${source}/CoralTest/cmt ]; then - source=${source}/CoralTest/cmt - config=CoralTest - elif [ -d ${source}/CoolTest/cmt ]; then - source=${source}/CoolTest/cmt - config=CoolTest - else - echo "ERROR! Neither CoralTest/cmt nor CoolTest/cmt was found in ${source}" - return 1 - fi -fi -echo "Setting config in ${source} for ${CMTCONFIG}" -pushd ${source} > /dev/null - -# Case 1 : setup from config/cmt -if [ "$config" == "config" ]; then - source CMT_env.sh > /dev/null - if [ "$?" != "0" ]; then - echo "ERROR! CMT_env.sh failed" > /dev/stderr - popd > /dev/null - return 1 - fi - if [ "$CMTROOT" == "" ]; then - echo "ERROR! CMTROOT is not set?" > /dev/stderr - popd > /dev/null - return 1 - fi - source ${CMTROOT}/mgr/setup.sh -# Case 2 : setup from CoralTest/cmt or CoolTest/cmt -else - export CMTVERS=v1r20p20090520 - export CMTROOT=/afs/cern.ch/sw/contrib/CMT/$CMTVERS - export CMTSITE=CERN - export SITEROOT=/afs/cern.ch - export CMTPROJECTPATH=${source}/../../../../..:$SITEROOT/sw/lcg/releases:$SITEROOT/sw/lcg/app/releases - unset CMTPATH - unset CMTEXTRATAGS - unset CMTUSERCONTEXT - unset CMTINSTALLAREA - source ${CMTROOT}/mgr/setup.csh -fi - -# Create and source setup from <config>/cmt -tempfile=`mktemp /tmp/tmp.$USER.XXXXXXXXXX` -${CMTROOT}/mgr/cmt setup -sh -pack=config -version=v1 -path=${source} -no_cleanup $* >${tempfile} -if [ "$?" != "0" ]; then - echo "ERROR! cmt setup failed" > /dev/stderr - popd > /dev/null - return 1 -fi -popd > /dev/null -source ${tempfile} -/bin/rm -f ${tempfile} diff --git a/src/config/cmt/cmtBroadcast.sh b/src/config/cmt/cmtBroadcast.sh deleted file mode 100755 index 2b2205d01dd972405786860eeef1e7d671036c5d..0000000000000000000000000000000000000000 --- a/src/config/cmt/cmtBroadcast.sh +++ /dev/null @@ -1,28 +0,0 @@ -#! /bin/bash -# -# Usage: -# cmtBroadcast [-select="pkg1 pkg2 ..."] cmd -# -# Examples: -# cmtBroadcast make -> lib, utilitlies -# cmtBroadcast make all -> lib, utilities -# cmtBroadcast make tests -> tests -# cmtBroadcast make examples -> examples -# cmtBroadcast make all tests -> lib, utilities, tests -# cmtBroadcast make all tests examples -> lib, utilities, tests, examples -# -CMTPATH="" -if [ "$CMTUSERCONTEXT" == "" ]; then - echo "CMTUSERCONTEXT is not set" - cmt broadcast $* -else - select="" - if [ "${1:0:8}" == "-select=" ]; then - select="$1" - shift - fi - echo "CMTUSERCONTEXT is $CMTUSERCONTEXT" - theCmtUserContext=$CMTUSERCONTEXT - CMTUSERCONTEXT="" - cmt broadcast "$select" "CMTUSERCONTEXT=$theCmtUserContext" $* -fi diff --git a/src/config/cmt/cmtCleanup.sh b/src/config/cmt/cmtCleanup.sh deleted file mode 100755 index b115af222bd1ad292fa5af4975f35bb0206fd4a0..0000000000000000000000000000000000000000 --- a/src/config/cmt/cmtCleanup.sh +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/bash -relTop=`dirname $0` -relTop=`cd ${relTop}/../../..; pwd` -#echo "Release top is ${relTop}" -if [ "$1" == "build" ]; then - echo "Remove all build directories" - set -x - cd ${relTop} - \rm -rf slc* osx* win* - cd ${relTop}/src - \rm -rf */slc* */osx* */win* - cd ${relTop}/src/Utilities - \rm -rf */slc* */osx* */win* - if [ -d ${relTop}/src/CoralServerPrototype ]; then - cd ${relTop}/src/CoralServerPrototype - \rm -rf */slc* */osx* */win* - fi -elif [ "$1" == "config" ]; then - echo "Remove all makefile fragments" - set -x - cd ${relTop}/src - \rm -rf */cmt/*make* - \rm -rf */*/cmt/*make* -else - echo "Usage: `basename $0` config|build" - exit 1 -fi diff --git a/src/config/cmt/coolCopyNightlies.csh b/src/config/cmt/coolCopyNightlies.csh deleted file mode 100755 index 66c806bf6e2b4c80cc535ac2d2c2eaddf7936228..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCopyNightlies.csh +++ /dev/null @@ -1,198 +0,0 @@ -#!/bin/csh -f - -echo "coolCopyNightlies.csh - You must comment out this line!"; exit 1 - -# Choose the slot -###set slot="dev" -###set slot="dev1" -set slot="dev2" -###set slot="dev3" -###set slot="dev4" -###set slot="release" - -# Choose the projects -set projects="" -set projects="${projects} LCGCMT" -#set projects="${projects} ROOT" -#set projects="${projects} CORAL" - -# Choose the platforms to copy (for CORAL and ROOT) -set copyPlatforms="" -###set copyPlatforms="${copyPlatforms} x86_64-mac106-gcc42-opt" -###set copyPlatforms="${copyPlatforms} i686-slc5-gcc43-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-gcc43-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-gccmax-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-icc11-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-icc13-opt" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-gcc47-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc5-gcc47-opt" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-gcc46-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-gcc47-dbg" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-gcc47-opt" -set copyPlatforms="${copyPlatforms} x86_64-slc6-gcc48-opt" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-clang32-opt" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-clang33-opt" -###set copyPlatforms="${copyPlatforms} x86_64-slc6-icc13-opt" -###set copyPlatforms="${copyPlatforms} win32_vc71_dbg" -###set copyPlatforms="${copyPlatforms} i686-winxp-vc9-dbg" - -# Choose to copy ALL platforms (for CORAL and ROOT) -###set copyPlatforms="all" - -# --- do not modify --- - -set lcgNightliesRoot=/afs/cern.ch/sw/lcg/app/nightlies -###set ourNightliesRoot=/afs/cern.ch/sw/lcg/app/releases/COOL/internal/nightlies -set ourNightliesRoot=/home/avalassi/nightlies - -set lcgNightlies=${lcgNightliesRoot}/${slot}/`date -d20130926 +%a` -set ourNightlies=${ourNightliesRoot}/${slot}/`date -d20130926 +%Y%m%d%a` -#set lcgNightlies=${lcgNightliesRoot}/${slot}/`date +%a` -#set ourNightlies=${ourNightliesRoot}/${slot}/`date +%Y%m%d%a` - -echo "Copy nightlies from ${lcgNightlies} to ${ourNightlies}" -if ( -d ${ourNightlies} ) then - echo "WARNING! Directory already exists: ${ourNightlies}" -endif - -foreach project ( ${projects} ) - echo "Copy ${project} to ${ourNightlies}/${project}" - if ( -d ${ourNightlies}/${project} ) then - echo "ERROR! Directory already exists: ${ourNightlies}/${project}" - exit 1 - endif - # Get the project version - if ( "${project}" == "LCGCMT" && ( "${slot}" == "dev" ) ) then - set version=`more ${lcgNightlies}/${project}/LCGCMT-preview/cmt/project.cmt | awk '{if ($1=="use" && $2=="LCGCMT") print $3}'` - else if ( "${project}" == "LCGCMT" && ( "${slot}" == "dev1" ) ) then - set version=`more ${lcgNightlies}/${project}/LCGCMT_61-patches/cmt/project.cmt | awk '{if ($1=="use" && $2=="LCGCMT") print $3}'` - else if ( "${project}" == "LCGCMT" && ( "${slot}" == "dev2" ) ) then - set version=`more ${lcgNightlies}/${project}/LCGCMT_root6/cmt/project.cmt | awk '{if ($1=="use" && $2=="LCGCMT") print $3}'` - else if ( "${project}" == "LCGCMT" && ( "${slot}" == "dev3" ) ) then - set version=`more ${lcgNightlies}/${project}/LCGCMT_65-patches/cmt/project.cmt | awk '{if ($1=="use" && $2=="LCGCMT") print $3}'` - else - set version=`find ${lcgNightlies}/${project} -mindepth 1 -maxdepth 1 -type d` - if ( `echo $version | wc -w` != "1" ) then - echo "WARNING! More than one entry in directory ${lcgNightlies}/${project}:" - echo $version - set version=`\ls -1trd $version | tail -1` - echo "WARNING! Will only copy the most recent one:" - echo $version - endif - set version=`basename ${version}` - endif - # Copy LCGCMT - if ( "${project}" == "LCGCMT" ) then - echo "Copy ${project} from ${lcgNightlies}/${project}/${version}" - mkdir -p ${ourNightlies}/${project}/ - cp -dpr ${lcgNightlies}/${project}/${version} ${ourNightlies}/${project}/ - set projectCmt=`dirname $0`/../../cmt - set projectCmt=`cd ${projectCmt}; pwd`/project.cmt - set lcgcmtVersion=`more ${projectCmt} | awk '{if ($1=="use" && $2=="LCGCMT") print $3}'` - echo COOL uses ${lcgcmtVersion} - if ( ${version} == ${lcgcmtVersion} ) then - echo Directory ${project}/${lcgcmtVersion} already exists - else - echo Create ${project}/${lcgcmtVersion} - pushd ${ourNightlies}/${project} >& /dev/null - \rm -rf ${lcgcmtVersion} - mkdir ${lcgcmtVersion} - cd ${lcgcmtVersion} - ln -sf ../${version}/* . - \mv cmt cmt.old - mkdir cmt - cat cmt.old/project.cmt | sed "s/${version}/${lcgcmtVersion}/" > cmt/project.cmt - \rm -f cmt.old - popd >& /dev/null - endif - # Copy ROOT - else if ( "${project}" == "ROOT" ) then - echo "Copy ${project} from ${lcgNightlies}/${project}/${version}" - if ( "${copyPlatforms}" == "all" ) then - set platforms=`ls ${lcgNightlies}/${project}/${version} | grep -v logs` - else - set platforms="${copyPlatforms}" - endif - foreach platform ( ${platforms} ) - echo "Copy ${project} for platform $platform" - mkdir -p ${ourNightlies}/${project}/${version}/${platform}/root - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/include \ - ${ourNightlies}/${project}/${version}/${platform}/root/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/etc \ - ${ourNightlies}/${project}/${version}/${platform}/root/ - mkdir -p ${ourNightlies}/${project}/${version}/${platform}/root/lib - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libCore* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libCint* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libReflex* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libThread* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libPyROOT* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - if ( "${platform}" != "win32_vc71_dbg" && "${platform}" != "win32_vc9_dbg" ) then - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/*py \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - endif - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/python \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - mkdir -p ${ourNightlies}/${project}/${version}/${platform}/root/bin - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/bin/* \ - ${ourNightlies}/${project}/${version}/${platform}/root/bin/ - # CINT headers are needed by rootcint, eg for POOL (bug #63170) - mkdir -p ${ourNightlies}/${project}/${version}/${platform}/root/cint/cint/lib - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/cint/cint/lib/prec_stl \ - ${ourNightlies}/${project}/${version}/${platform}/root/cint/cint/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/cint/cint/include \ - ${ourNightlies}/${project}/${version}/${platform}/root/cint/cint/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/cint/cint/stl \ - ${ourNightlies}/${project}/${version}/${platform}/root/cint/cint/ - # These 9 libraries should disappear one day (Gpad, Graf, Graf3d, Hist, MathCore, Matrix, Net, RIO, Tree) - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libGpad* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libGraf* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libHist* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libMathCore* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libMatrix* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libMetaTCint.* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libNet* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libRIO* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libTree* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - # These libraries are new in ROOT6 - cp -dpr ${lcgNightlies}/${project}/${version}/${platform}/root/lib/libCling* \ - ${ourNightlies}/${project}/${version}/${platform}/root/lib/ - end - else - echo "Copy ${project} from ${lcgNightlies}/${project}/${version}" - if ( "${copyPlatforms}" == "all" ) then - echo "Copy ${project} for all platforms" - mkdir -p ${ourNightlies}/${project}/ - cp -dpr ${lcgNightlies}/${project}/${version} ${ourNightlies}/${project}/ - else - echo "Copy ${project} include, logs, src" - mkdir -p ${ourNightlies}/${project}/${version}/ - cp -dpr ${lcgNightlies}/${project}/${version}/include \ - ${ourNightlies}/${project}/${version}/ - cp -dpr ${lcgNightlies}/${project}/${version}/logs \ - ${ourNightlies}/${project}/${version}/ - cp -dpr ${lcgNightlies}/${project}/${version}/src \ - ${ourNightlies}/${project}/${version}/ - set platforms="${copyPlatforms}" - foreach platform ( ${platforms} ) - echo "Copy ${project} for platform $platform" - cp -dpr ${lcgNightlies}/${project}/${version}/${platform} \ - ${ourNightlies}/${project}/${version}/ - end - endif - endif -end - diff --git a/src/config/cmt/coolCppClean b/src/config/cmt/coolCppClean deleted file mode 100755 index 218db788e47769682548d40db22c4c2d6bf9cf31..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCppClean +++ /dev/null @@ -1,167 +0,0 @@ -#!/bin/bash - -#============================================================================== - -function cleanFile { - - which indent > /dev/null 2>&1 - if [ "$?" != "0" ]; then - echo "ERROR! no 'indent' tool in PATH!" - return - fi - - which uncrustify > /dev/null 2>&1 - if [ "$?" != "0" ]; then - echo "ERROR! no 'uncrustify' tool in PATH!" - return - fi - - if [ "$1" == "" ] || [ "$2" != "" ]; then - echo "ERROR! Function cleanFile requires one argument ( file )" - return - fi - file=$1 - echo Clean file \'${file}\' - if [ xxx`echo $file | egrep '_tmp\.(h|cpp|py)$'` != xxx ]; then - echo Skip temporary file \'${file}\' - return - else - if [ "$quiet" != "1" ]; then echo Rename and clean file \'${file}\'; fi - fi - fileold=${file} - file=`echo ${file} | sed "s|\.cpp$|_tmp\.cpp|" | sed "s|\.h$|_tmp\.h|" | sed "s|\.py$|_tmp\.py|"` - \cp ${fileold} ${file} - if [ "$quiet" != "1" ]; then echo Clean file \'${file}\'; fi - - #---------------------------------------------------------------------------- - # Step 1a: indent - # Options for indent - # -npro : ignore the indent.pro user's profile - # -npcs : 'f(' instead of 'f (' - # -prs: '( a )' instead of '(a)' [but also '( )' instead of '()'] - #---------------------------------------------------------------------------- - ###if [ "$quiet" != "1" ]; then echo Clean file \'${file}\' \: indent; fi - ###indent -pro -npcs -prs ${file} - - #---------------------------------------------------------------------------- - # Step 1b: sed (fix problems introduced by indent) - # - replace '( )' by '()' to fix overcorrection of 'indent -prs' - #---------------------------------------------------------------------------- - ###if [ "$quiet" != "1" ]; then echo Clean file \'${file}\' \: sed; fi - ###cat ${file} | sed 's|( )|()|' > ${file}.tmp; \mv ${file}.tmp ${file} - - #---------------------------------------------------------------------------- - # Step 2a: uncrustify - #---------------------------------------------------------------------------- - ###cat ${file} # FOR TESTS! - \mv ${file} ${file}.tmp - cat ${file}.tmp \ - | sed 's|\*///$|*/|' \ - | sed "s|/\* COOLCPPCLEAN-NOINDENT-START \*/|/*COOLCPPCLEAN-NOINDENT-START|"\ - | sed "s|/\* COOLCPPCLEAN-NOINDENT-END \*/|COOLCPPCLEAN-NOINDENT-END*/|"\ - > ${file} - scr_uc=${scrdir}/coolCppClean_uncrustify.cfg - ###scr_uc=${scrdir}/coolCppClean_uncr_def055.cfg # FOR COMPARISON! - if [ "${file%.py}" != "${file}" ]; then - echo "WARNING: will not uncrustify python file '${file}'" - elif [ "$quiet" == "1" ]; then - uncrustify -c ${scr_uc} -l CPP --replace ${file} > /dev/null 2>&1 - else - echo Clean file \'${file}\' \: uncrustify - uncrustify -c ${scr_uc} -l CPP --replace ${file} - fi - ###uncrustify -s -L0-80 -c ${scr_uc} -l CPP --replace ${file} # DEBUG MSGS! - \mv ${file} ${file}.tmp - cat ${file}.tmp \ - | sed "s|/\*COOLCPPCLEAN-NOINDENT-START|/* COOLCPPCLEAN-NOINDENT-START */|"\ - | sed "s|COOLCPPCLEAN-NOINDENT-END\*/|/* COOLCPPCLEAN-NOINDENT-END */|"\ - > ${file} - \rm ${file}.tmp - - #---------------------------------------------------------------------------- - # Step 2b: sed (fix problems introduced by uncrustify) - # - replace 'std ::string' by 'std::string' to fix a bug in the tokenizer - #---------------------------------------------------------------------------- - if [ "${file%.py}" == "${file}" ]; then - if [ "$quiet" != "1" ]; then echo Clean file \'${file}\' \: sed; fi - cat ${file} | sed 's|std ::string|std::string|' > ${file}.tmp - \mv ${file}.tmp ${file} - fi - - #---------------------------------------------------------------------------- - # Step 3a: prepare for emacs - # - replace trailing "*/" by "*///" to avoid problems with following comments - #---------------------------------------------------------------------------- - \mv ${file} ${file}.tmp - cat ${file}.tmp | sed 's|\*/$|*///|' > ${file} - \rm ${file}.tmp - - #---------------------------------------------------------------------------- - # Step 3b: emacs - # This step is the last so that manual M-x clean in emacs changes nothing! - # See http://community.livejournal.com/emacs/10446.html - # See http://www.cslab.pepperdine.edu/warford/BatchIndentationEmacs.html - #---------------------------------------------------------------------------- - ###cat ${file} # FOR TESTS! - scr_el=${scrdir}/coolCppClean_emacs.el - if [ "${file%.py}" == "${file}" ]; then emacsclean=emacs-cppclean; else emacsclean=emacs-pyclean; fi - if [ "${file%.py}" != "${file}" ] && [ "$includepython" != "1" ]; then - echo "WARNING: will not clean python file '${file}' (use \"$0 --include-python\")" - elif [ "$quiet" == "1" ]; then - emacs ${file} -batch -l ${scr_el} -f ${emacsclean} > /dev/null 2>&1 - else - echo Clean file \'${file}\' \: ${emacsclean} - emacs ${file} -batch -l ${scr_el} -f ${emacsclean} - fi - - #---------------------------------------------------------------------------- - # Final step: cleanup and compare if needed - #---------------------------------------------------------------------------- - ###cat ${file} # FOR TESTS! - if [ "$quiet" != "1" ]; then echo Clean file \'${file}\' \: DONE\!; fi - echo "Compare NEW '${file}' and OLD '${fileold}' : START" - echo diff ${file} ${fileold} - diff ${file} ${fileold} - echo "Compare NEW '${file}' and OLD '${fileold}' : END" - \rm -f ${file}.unc-backup* - \mv ${file} ${fileold} # DISABLE THIS FOR TESTS! -} - -#============================================================================== - -if [ "$1" == "" ]; then - echo "Usage: $0 (file1|dir1) [(file2|dir2)...]" - exit 1 -fi -scrdir=`which $0`; scrdir=`dirname ${scrdir}` - -quiet=1 # QUIET -#quiet=0 # VERBOSE - -includepython=0 - -while [ "$1" != "" ]; do - if [ "$1" == "--include-python" ]; then - includepython=1 - elif [ -d $1 ]; then - #thefiles=`cd $1; ls *.h *.cpp */*.h */*.cpp */*/*.h */*/*.cpp */*/*/*.h */*/*/*.cpp 2> /dev/null` - #thefiles=`cd $1; ls *.h *.cpp */*.h */*.cpp */*/*.h */*/*.cpp */*/*/*.h */*/*/*.cpp | grep -v CoralServerProxy 2> /dev/null` - thefiles=`cd $1; ls *.h *.c *.cpp *.py */*.h */*.c */*.cpp */*.py */*/*.h */*/*.c */*/*.cpp */*/*.py */*/*/*.h */*/*/*.c */*/*/*.cpp */*/*/*.py | grep -v CoralServerProxy 2> /dev/null` - echo Clean files \'${thefiles}\' in directory \'$1\' - for thefile in ${thefiles}; do - thefile=${1}/${thefile} - cleanFile ${thefile} - done - elif [ -e $1 ]; then - thefile=$1 - if [ "${thefile%.h}" != "${thefile}" ] || [ "${thefile%.c}" != "${thefile}" ] || [ "${thefile%.cpp}" != "${thefile}" ] || [ "${thefile%.py}" != "${thefile}" ]; then - cleanFile ${thefile} - else - echo "WARNING! File '${thefile}' is not a C, C++ or Python file" - fi - else - echo "ERROR! File or directory $1 does not exist" - ###exit 1 - fi - shift -done \ No newline at end of file diff --git a/src/config/cmt/coolCppClean.txt b/src/config/cmt/coolCppClean.txt deleted file mode 100644 index 00850ec12fde343d7df7198882aa6fe071767a49..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCppClean.txt +++ /dev/null @@ -1,59 +0,0 @@ -The tool does two things: - -1. A first pass with uncrustify, tuned to do minimal changes initially. -Most settings are the default hardcoded settings, the others have been tuned -to make sure the result converges (the tool should not add spaces each time). - -We can still build a few more rules in the future into uncrustify, such as -'if()\n{' rather than 'if(){\n', or 'char* i' rather than 'char *i'. Other -rules, like 'sort #includes alphabetically', are beyond the scope of this tool. - -2. The second pass is a batch clean with emacs. It is based on the old LHCb -emacs 'M-x clean' command, largely reflecting the well documented formatting -conventions of LHCb. This only reindents the code (line by line, without -touching the line splitting) and removes trailing whitespaces on each line. - -The emacs pass is the last phase so that if you use emacs with these -settings (or another editor with similar settings, like the vim circulated -by Martin), then every time you save you automatically have the right -indentation. In fact also uncrustify does some indentation, but most of it -is overwritten by the emacs phase, so no need to tune that too much. - -The LHCb emacs have been modified to change the indentation of comments. -- Comments starting with two stars, /** ... */, are indented. - These are meant to be used for multi-line class description comments, - where each comment line starts with one *. -- Comments starting with a single star, /* ... */, are not indented. - These are meant to comment out areas of code and preserve code formatting, -- Real code enclosed between /* COOLCPPCLEAN-NOINDENT-START */ and - /* COOLCPPCLEAN-NOINDENT-END */ tags is not indented, i.e. is treated like - a comment. This is useful to work around bugs of uncrustify or of this tool. - -All of COOL (except two contrib Utilities - ACE and VerificationClient) -has been processed through this tool, committed and tagged. -The results are converging and already show some esthetic improvement. -This will then be used on the CORAL_SERVER code. - -=============================================================================== - -Details for uncrustify. - -This version of uncrustify is tuned to result in no large change -(eg no splitting of lines and realignments of if/else and for blocks), -but it already results in a few useful improvements, such as -- Remove spaces: 'void f()' becomes 'void f()' -- Remove spaces: 'f(); // comment' becomes 'f(); // comment' -- Remove spaces: 'typedef a b;' becomes 'typedef a b;' -- Remove spaces: 'static A a;' becomes 'static A a;' -- Add spaces: 'class A: B' becomes 'class A : B' -- Add spaces: 'default: ...' becomes 'default : ...' -- Add spaces: 'if ( ... ){' becomes 'if ( ... ) {' -- Add spaces: 'catch( ... ){' becomes 'catch( ... ) {' -- Add spaces: '{/* noop */ }' becomes '{ /* noop */ }' -- Align all trailing comments to the code rather than to each other -- Force exactly one newline at the end of the file -- Force exactly one whitespace before trailing continuation characters "\" -I tuned the configuration file a few times until I tested that the process -converges to a stable results (a second run does not change the code!). - -=============================================================================== diff --git a/src/config/cmt/coolCppClean_emacs.el b/src/config/cmt/coolCppClean_emacs.el deleted file mode 100644 index 62773467ec6cb4f16ac512f77d59435f3cdbe08e..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCppClean_emacs.el +++ /dev/null @@ -1,196 +0,0 @@ -;;============================================================================ -;; LHCb customisations -;;============================================================================ - -;; Avoid double indentation at statement opening -;; NB This has no effect here, so it is added to the emacs-cppclean function below -;; NB Alternatively put it in ~/.emacs and load it via 'emacs --batch -u $USER...' -;;(c-set-offset 'substatement-open 0) - -;;(setq c++-fill-column 130 ) ;; not needed? -;;(setq comment-line-start "//") ;; not needed? -(setq-default indent-tabs-mode nil) ;; Never insert an ASCII TAB -(setq tab-width 2) ;; TAB is two spaces - -;; Deletes the whitespace at the end of any line -(defun delete-eol-whitespace () - "Deletes the whitespace at the end of any line" - (interactive) - (save-excursion - (goto-char (point-min)) - (while (< (point) (point-max)) - (forward-line 1) - (end-of-line) - (delete-horizontal-space) - ) - ) - ) - -;;============================================================================ -;; COOL customisations -;;============================================================================ - -(defun myindent-buffer () - "Indent buffer excluding comments." - (interactive) - (save-excursion - (let (pmin pmax commentstart commentend skipstart skipend pskip indcstart pindc)) - (goto-char (point-min)) - (setq pmin (point-min)) - (setq pmax (point-min)) - (setq commentstart "/*") - (setq commentend "*/") - (setq skipstart (concat commentstart " COOLCPPCLEAN-NOINDENT-START " commentend)) - (setq skipend (concat commentstart " COOLCPPCLEAN-NOINDENT-END " commentend)) - (setq pskip nil) - (setq indcstart (concat commentstart "*")) ;; INDENT COMMENTS STARTING WITH "/**"! - (message "Indent buffer (excluding comments) from %d to %d..." (point-min) (point-max)) - (while (< pmax (point-max)) - ;; 1. LOOK FOR START OF COMMENT (OR START OF NOINDENT SECTION) - (setq pindc nil) - (setq pmax (search-forward commentstart (point-max) t)) - (if pmax - ;; Start of comment found: look for indented comments and noindent sections - (progn - ;;(message "DEBUG: '%s' found at %d" commentstart pmax) - ;; Start of comment found: is this the start of an indented comment? - (backward-char 2) - (setq pindc (search-forward indcstart (point-max) t) ) - ;;(if pindc (message "DEBUG: '%s' found at %d" indcstart pindc)) - (if pindc - ;; The start of an indented comment was found: is it here? - (if (not (= (- pindc pmax) (- (length indcstart) 2))) - (progn - (setq pindc nil) - ;;(message "DEBUG: '%s' ignored" indcstart) - (goto-char pmax) ) - ) - ) - ;;(if pindc (message "DEBUG: '%s' confirmed at %d" indcstart pindc)) - ;; Start of comment found: is this the start of a noindent section? - (if pindc () - (progn - (backward-char 2) - (setq pskip (search-forward skipstart (point-max) t) ) - ;;(if pskip (message "DEBUG: '%s' found at %d" skipstart pskip)) - ) - (if pskip - ;; The start of a noindent section was found: is it here? - (if (not (= (- pskip pmax) (- (length skipstart) 2))) - (progn - (setq pskip nil) - ;;(message "DEBUG: '%s' ignored" skipstart) - (goto-char pmax) ) - ) - ) - ;;(if pskip (message "DEBUG: '%s' confirmed at %d" skipstart pskip)) - ) - ) - ;; No comment found: break the loop - (progn - ;;(message "DEBUG: '%s' not found: break the loop" commentstart) - (setq pmax (point-max)) - (setq pskip nil) ) ) - ;; Indent until the start of the comment (or the end of the buffer) - ;;(if (not pindc) (message "Indent from %d to %d" pmin pmax)) - (if (not pindc) (indent-region pmin pmax nil) ) - ;; 2. LOOK FOR END OF COMMENT (OR END OF NOINDENT SECTION) - (if (or pindc (>= pmax (point-max))) - ;; No start of comment/noindent, or indented comment: no need to match end - (progn - ;;(message "DEBUG: no need to find matching '%s'" commentend) - ) - ;; Start of comment or noindent found: look for the matching end - (progn - (let (tagend)) - ;; What is the matching end: are we inside a comment or a noindent section? - (setq tagend (if pskip skipend commentend)) - (setq pmin (search-forward tagend (point-max) t)) - (if (not pmin) - ;; The end was not found (BAD C++ CODE!): break the loop - (progn - (setq pmax (point-max)) - (message "WARNING: matching '%s' not found" tagend) ) - ;; The end was found - ;;(message "DEBUG: matching '%s' found at %d" tagend pmin) - ) - ) - ) - ) - (message "Indent buffer (excluding comments) from %d to %d... done" (point-min) (point-max)) - ) - ) - -;;============================================================================ - -(defun clean () - "Modified LHCb clean() function, avoiding the indentation of comments." - (interactive) - (save-excursion - (delete-eol-whitespace) - ;; TAB replaced by space - (goto-char (point-min)) - (while (and (re-search-forward "\t" nil t ) - (< (point) (point-max))) - (replace-match " " nil nil) ) - ;; CR replaced by nothing (but "\r" should be C-m making this a binary file) - ;;(goto-char (point-min)) - ;;(while (search-forward (string "\r") nil t) - ;; (< (point) (point-max))) - ;;(replace-match "" nil nil) ) - ;; Alternative dos2unix - (set-buffer-file-coding-system 'utf-8-unix) - ;; Re-indent the buffer - (myindent-buffer) - ) - ) - -;;============================================================================ - -(defun emacs-cppclean () - "Clean C++ code." - (widen) - (message "Clean C++ code from %d to %d..." (point-min) (point-max)) - (c++-mode) ;; NB (c++-mode) must be BEFORE (c-set-offset..) - (c-set-offset 'substatement-open 0) ;; Avoid double indentation at statement opening - (clean) - (save-buffer) - (message "Clean C++ code from %d to %d... done" (point-min) (point-max)) - ) - -;;============================================================================ - -(defun emacs-pyclean () - "Clean Python code." - (widen) - (message "Clean Python code from %d to %d..." (point-min) (point-max)) - (python-mode) ;; NB better call (python-mode) BEFORE (untabify...) - (untabify (point-min) (point-max)) - (clean) - (save-buffer) - (message "Clean Python code from %d to %d... done" (point-min) (point-max)) - ) - -;;============================================================================ - -;; Disable Python smart indentation and hardcode offset to 4: -;; by default smart indentation was on and guessed offsets between 2 and 8, -;; so that if an existing file had offset 8, M-x clean did not have any effect. -;; Use M-x describe-variable py-indent-offset to see the buffer local value... -;; See http://svn.python.org/projects/python/trunk/Misc/python-mode.el -;; See http://jesselegg.com/archives/2010/02/25/emacs-python-programmers-part-1 -(setq-default py-indent-offset 4) -(setq-default py-smart-indentation nil) - -;; Just to be sure, disable indent-tabs-mode whenever in python mode, -;; otherwise some tabs may be left in python code instead of spaces. -;; See http://stackoverflow.com/questions/4251159/set-python-indent-to-2-spaces-in-emacs-23 -;; PS: This was DISABLED - instead, call (untabify) before (clean)... -;; Otherwise you may get 'Bad indentation errors' from emacs -batch! -;;(add-hook 'python-mode-hook -;; (lambda () -;; (setq indent-tabs-mode nil) -;; (setq tab-width 4))) - -;;============================================================================ - diff --git a/src/config/cmt/coolCppClean_uncr_def055.cfg b/src/config/cmt/coolCppClean_uncr_def055.cfg deleted file mode 100644 index 911df22d24b481ba6c24224ea279f6a06d7d911b..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCppClean_uncr_def055.cfg +++ /dev/null @@ -1,1298 +0,0 @@ -# Uncrustify 0.55 - -# -# General options -# - -# The type of line endings -newlines = auto # auto/lf/crlf/cr - -# The original size of tabs in the input -input_tab_size = 8 # number - -# The size of tabs in the output (only used if align_with_tabs=true) -output_tab_size = 8 # number - -# The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn) -string_escape_char = 92 # number - -# Alternate string escape char for Pawn. Only works right before the quote char. -string_escape_char2 = 0 # number - -# -# Indenting -# - -# The number of columns to indent per level. -# Usually 2, 3, 4, or 8. -indent_columns = 8 # number - -# How to use tabs when indenting code -# 0=spaces only -# 1=indent with tabs, align with spaces -# 2=indent and align with tabs -indent_with_tabs = 1 # number - -# Whether to indent strings broken by '\' so that they line up -indent_align_string = false # false/true - -# The number of spaces to indent multi-line XML strings. -# Requires indent_align_string=True -indent_xml_string = 0 # number - -# Spaces to indent '{' from level -indent_brace = 0 # number - -# Whether braces are indented to the body level -indent_braces = false # false/true - -# Disabled indenting function braces if indent_braces is true -indent_braces_no_func = false # false/true - -# Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc. -indent_brace_parent = false # false/true - -# Whether the 'namespace' body is indented -indent_namespace = false # false/true - -# The number of spaces to indent a namespace block -indent_namespace_level = 0 # number - -# If the body of the namespace is longer than this number, it won't be indented. -# Requires indent_namespace=true. Default=0 (no limit) -indent_namespace_limit = 0 # number - -# Whether the 'extern "C"' body is indented -indent_extern = false # false/true - -# Whether the 'class' body is indented -indent_class = false # false/true - -# Whether to indent the stuff after a leading class colon -indent_class_colon = false # false/true - -# False=treat 'else\nif' as 'else if' for indenting purposes -# True=indent the 'if' one level -indent_else_if = false # false/true - -# Amount to indent variable declarations after a open brace. neg=relative, pos=absolute -indent_var_def_blk = 0 # number - -# True: indent continued function call parameters one indent level -# False: align parameters under the open paren -indent_func_call_param = false # false/true - -# Same as indent_func_call_param, but for function defs -indent_func_def_param = false # false/true - -# Same as indent_func_call_param, but for function protos -indent_func_proto_param = false # false/true - -# Same as indent_func_call_param, but for class declarations -indent_func_class_param = false # false/true - -# Same as indent_func_call_param, but for class variable constructors -indent_func_ctor_var_param = false # false/true - -# Same as indent_func_call_param, but for templates -indent_template_param = false # false/true - -# Double the indent for indent_func_xxx_param options -indent_func_param_double = false # false/true - -# Indentation column for standalone 'const' function decl/proto qualifier -indent_func_const = 0 # number - -# Indentation column for standalone 'throw' function decl/proto qualifier -indent_func_throw = 0 # number - -# The number of spaces to indent a continued '->' or '.' -# Usually set to 0, 1, or indent_columns. -indent_member = 0 # number - -# Spaces to indent single line ('//') comments on lines before code -indent_sing_line_comments = 0 # number - -# If set, will indent trailing single line ('//') comments relative -# to the code instead of trying to keep the same absolute column -indent_relative_single_line_comments = false # false/true - -# Spaces to indent 'case' from 'switch' -# Usually 0 or indent_columns. -indent_switch_case = 0 # number - -# Spaces to shift the 'case' line, without affecting any other lines -# Usually 0. -indent_case_shift = 0 # number - -# Spaces to indent '{' from 'case'. -# By default, the brace will appear under the 'c' in case. -# Usually set to 0 or indent_columns. -indent_case_brace = 0 # number - -# Whether to indent comments found in first column -indent_col1_comment = false # false/true - -# How to indent goto labels -# >0 : absolute column where 1 is the leftmost column -# <=0 : subtract from brace indent -indent_label = 1 # number - -# Same as indent_label, but for access specifiers that are followed by a colon -indent_access_spec = 1 # number - -# Indent the code after an access specifier by one level. -# If set, this option forces 'indent_access_spec=0' -indent_access_spec_body = false # false/true - -# If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended) -indent_paren_nl = false # false/true - -# Controls the indent of a close paren after a newline. -# 0: Indent to body level -# 1: Align under the open paren -# 2: Indent to the brace level -indent_paren_close = 0 # number - -# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren -indent_comma_paren = false # false/true - -# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren -indent_bool_paren = false # false/true - -# If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended) -indent_square_nl = false # false/true - -# Don't change the relative indent of ESQL/C 'EXEC SQL' bodies -indent_preserve_sql = false # false/true - -# Align continued statements at the '='. Default=True -# If FALSE or the '=' is followed by a newline, the next line is indent one tab. -indent_align_assign = true # false/true - -# -# Spacing options -# - -# Add or remove space around arithmetic operator '+', '-', '/', '*', etc -sp_arith = ignore # ignore/add/remove/force - -# Add or remove space around assignment operator '=', '+=', etc -sp_assign = ignore # ignore/add/remove/force - -# Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign. -sp_before_assign = ignore # ignore/add/remove/force - -# Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign. -sp_after_assign = ignore # ignore/add/remove/force - -# Add or remove space around assignment '=' in enum -sp_enum_assign = ignore # ignore/add/remove/force - -# Add or remove space before assignment '=' in enum. Overrides sp_enum_assign. -sp_enum_before_assign = ignore # ignore/add/remove/force - -# Add or remove space after assignment '=' in enum. Overrides sp_enum_assign. -sp_enum_after_assign = ignore # ignore/add/remove/force - -# Add or remove space around preprocessor '##' concatenation operator. Default=Add -sp_pp_concat = add # ignore/add/remove/force - -# Add or remove space after preprocessor '#' stringify operator. Default=Add -sp_pp_stringify = add # ignore/add/remove/force - -# Add or remove space around boolean operators '&&' and '||' -sp_bool = ignore # ignore/add/remove/force - -# Add or remove space around compare operator '<', '>', '==', etc -sp_compare = ignore # ignore/add/remove/force - -# Add or remove space inside '(' and ')' -sp_inside_paren = ignore # ignore/add/remove/force - -# Add or remove space between nested parens -sp_paren_paren = ignore # ignore/add/remove/force - -# Whether to balance spaces inside nested parens -sp_balance_nested_parens = false # false/true - -# Add or remove space between ')' and '{' -sp_paren_brace = ignore # ignore/add/remove/force - -# Add or remove space before pointer star '*' -sp_before_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space before pointer star '*' that isn't followed by a variable name -# If set to 'ignore', sp_before_ptr_star is used instead. -sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space between pointer stars '*' -sp_between_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space after pointer star '*', if followed by a word. -sp_after_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space after a pointer star '*', if followed by a func proto/def. -sp_after_ptr_star_func = ignore # ignore/add/remove/force - -# Add or remove space before a pointer star '*', if followed by a func proto/def. -sp_before_ptr_star_func = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&' -sp_before_byref = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&' that isn't followed by a variable name -# If set to 'ignore', sp_before_byref is used instead. -sp_before_unnamed_byref = ignore # ignore/add/remove/force - -# Add or remove space after reference sign '&', if followed by a word. -sp_after_byref = ignore # ignore/add/remove/force - -# Add or remove space after a reference sign '&', if followed by a func proto/def. -sp_after_byref_func = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&', if followed by a func proto/def. -sp_before_byref_func = ignore # ignore/add/remove/force - -# Add or remove space between type and word. Default=Force -sp_after_type = force # ignore/add/remove/force - -# Add or remove space in 'template <' vs 'template<'. -# If set to ignore, sp_before_angle is used. -sp_template_angle = ignore # ignore/add/remove/force - -# Add or remove space before '<>' -sp_before_angle = ignore # ignore/add/remove/force - -# Add or remove space inside '<' and '>' -sp_inside_angle = ignore # ignore/add/remove/force - -# Add or remove space after '<>' -sp_after_angle = ignore # ignore/add/remove/force - -# Add or remove space between '<>' and '(' as found in 'new List<byte>();' -sp_angle_paren = ignore # ignore/add/remove/force - -# Add or remove space between '<>' and a word as in 'List<byte> m;' -sp_angle_word = ignore # ignore/add/remove/force - -# Add or remove space before '(' of 'if', 'for', 'switch', and 'while' -sp_before_sparen = ignore # ignore/add/remove/force - -# Add or remove space inside if-condition '(' and ')' -sp_inside_sparen = ignore # ignore/add/remove/force - -# Add or remove space before if-condition ')'. Overrides sp_inside_sparen. -sp_inside_sparen_close = ignore # ignore/add/remove/force - -# Add or remove space after ')' of 'if', 'for', 'switch', and 'while' -sp_after_sparen = ignore # ignore/add/remove/force - -# Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while' -sp_sparen_brace = ignore # ignore/add/remove/force - -# Add or remove space between 'invariant' and '(' in the D language. -sp_invariant_paren = ignore # ignore/add/remove/force - -# Add or remove space after the ')' in 'invariant (C) c' in the D language. -sp_after_invariant_paren = ignore # ignore/add/remove/force - -# Add or remove space before empty statement ';' on 'if', 'for' and 'while' -sp_special_semi = ignore # ignore/add/remove/force - -# Add or remove space before ';'. Default=Remove -sp_before_semi = remove # ignore/add/remove/force - -# Add or remove space before ';' in non-empty 'for' statements -sp_before_semi_for = ignore # ignore/add/remove/force - -# Add or remove space before a semicolon of an empty part of a for statement. -sp_before_semi_for_empty = ignore # ignore/add/remove/force - -# Add or remove space after ';', except when followed by a comment. Default=Add -sp_after_semi = add # ignore/add/remove/force - -# Add or remove space after ';' in non-empty 'for' statements. Default=Force -sp_after_semi_for = force # ignore/add/remove/force - -# Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ). -sp_after_semi_for_empty = ignore # ignore/add/remove/force - -# Add or remove space before '[' (except '[]') -sp_before_square = ignore # ignore/add/remove/force - -# Add or remove space before '[]' -sp_before_squares = ignore # ignore/add/remove/force - -# Add or remove space inside '[' and ']' -sp_inside_square = ignore # ignore/add/remove/force - -# Add or remove space after ',' -sp_after_comma = ignore # ignore/add/remove/force - -# Add or remove space before ',' -sp_before_comma = remove # ignore/add/remove/force - -# Add or remove space before the variadic '...' when preceded by a non-punctuator -sp_before_ellipsis = ignore # ignore/add/remove/force - -# Add or remove space after class ':' -sp_after_class_colon = ignore # ignore/add/remove/force - -# Add or remove space before class ':' -sp_before_class_colon = ignore # ignore/add/remove/force - -# Add or remove space before case ':'. Default=Remove -sp_before_case_colon = remove # ignore/add/remove/force - -# Add or remove space between 'operator' and operator sign -sp_after_operator = ignore # ignore/add/remove/force - -# Add or remove space between the operator symbol and the open paren, as in 'operator ++(' -sp_after_operator_sym = ignore # ignore/add/remove/force - -# Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a' -sp_after_cast = ignore # ignore/add/remove/force - -# Add or remove spaces inside cast parens -sp_inside_paren_cast = ignore # ignore/add/remove/force - -# Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)' -sp_cpp_cast_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'sizeof' and '(' -sp_sizeof_paren = ignore # ignore/add/remove/force - -# Add or remove space after the tag keyword (Pawn) -sp_after_tag = ignore # ignore/add/remove/force - -# Add or remove space inside enum '{' and '}' -sp_inside_braces_enum = ignore # ignore/add/remove/force - -# Add or remove space inside struct/union '{' and '}' -sp_inside_braces_struct = ignore # ignore/add/remove/force - -# Add or remove space inside '{' and '}' -sp_inside_braces = ignore # ignore/add/remove/force - -# Add or remove space inside '{}' -sp_inside_braces_empty = ignore # ignore/add/remove/force - -# Add or remove space between return type and function name -# A minimum of 1 is forced except for pointer return types. -sp_type_func = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function declaration -sp_func_proto_paren = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function definition -sp_func_def_paren = ignore # ignore/add/remove/force - -# Add or remove space inside empty function '()' -sp_inside_fparens = ignore # ignore/add/remove/force - -# Add or remove space inside function '(' and ')' -sp_inside_fparen = ignore # ignore/add/remove/force - -# Add or remove space between ']' and '(' when part of a function call. -sp_square_fparen = ignore # ignore/add/remove/force - -# Add or remove space between ')' and '{' of function -sp_fparen_brace = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function calls -sp_func_call_paren = ignore # ignore/add/remove/force - -# Add or remove space between the user function name and '(' on function calls -# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file. -sp_func_call_user_paren = ignore # ignore/add/remove/force - -# Add or remove space between a constructor/destructor and the open paren -sp_func_class_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'return' and '(' -sp_return_paren = ignore # ignore/add/remove/force - -# Add or remove space between '__attribute__' and '(' -sp_attribute_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'defined' and '(' in '#if defined (FOO)' -sp_defined_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'throw' and '(' in 'throw (something)' -sp_throw_paren = ignore # ignore/add/remove/force - -# Add or remove space between macro and value -sp_macro = ignore # ignore/add/remove/force - -# Add or remove space between macro function ')' and value -sp_macro_func = ignore # ignore/add/remove/force - -# Add or remove space between 'else' and '{' if on the same line -sp_else_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'else' if on the same line -sp_brace_else = ignore # ignore/add/remove/force - -# Add or remove space between '}' and the name of a typedef on the same line -sp_brace_typedef = ignore # ignore/add/remove/force - -# Add or remove space between 'catch' and '{' if on the same line -sp_catch_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'catch' if on the same line -sp_brace_catch = ignore # ignore/add/remove/force - -# Add or remove space between 'finally' and '{' if on the same line -sp_finally_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'finally' if on the same line -sp_brace_finally = ignore # ignore/add/remove/force - -# Add or remove space between 'try' and '{' if on the same line -sp_try_brace = ignore # ignore/add/remove/force - -# Add or remove space between get/set and '{' if on the same line -sp_getset_brace = ignore # ignore/add/remove/force - -# Add or remove space before the '::' operator -sp_before_dc = ignore # ignore/add/remove/force - -# Add or remove space after the '::' operator -sp_after_dc = ignore # ignore/add/remove/force - -# Add or remove around the D named array initializer ':' operator -sp_d_array_colon = ignore # ignore/add/remove/force - -# Add or remove space after the '!' (not) operator. Default=Remove -sp_not = remove # ignore/add/remove/force - -# Add or remove space after the '~' (invert) operator. Default=Remove -sp_inv = remove # ignore/add/remove/force - -# Add or remove space after the '&' (address-of) operator. Default=Remove -# This does not affect the spacing after a '&' that is part of a type. -sp_addr = remove # ignore/add/remove/force - -# Add or remove space around the '.' or '->' operators. Default=Remove -sp_member = remove # ignore/add/remove/force - -# Add or remove space after the '*' (dereference) operator. Default=Remove -# This does not affect the spacing after a '*' that is part of a type. -sp_deref = remove # ignore/add/remove/force - -# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove -sp_sign = remove # ignore/add/remove/force - -# Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove -sp_incdec = remove # ignore/add/remove/force - -# Add or remove space before a backslash-newline at the end of a line. Default=Add -sp_before_nl_cont = add # ignore/add/remove/force - -# Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;' -sp_after_oc_scope = ignore # ignore/add/remove/force - -# Add or remove space after the colon in message specs -# '-(int) f:(int) x;' vs '-(int) f: (int) x;' -sp_after_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space before the colon in message specs -# '-(int) f: (int) x;' vs '-(int) f : (int) x;' -sp_before_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space after the colon in message specs -# '[object setValue:1];' vs '[object setValue: 1];' -sp_after_send_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space before the colon in message specs -# '[object setValue:1];' vs '[object setValue :1];' -sp_before_send_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space after the (type) in message specs -# '-(int)f: (int) x;' vs '-(int)f: (int)x;' -sp_after_oc_type = ignore # ignore/add/remove/force - -# Add or remove space after the first (type) in message specs -# '-(int) f:(int)x;' vs '-(int)f:(int)x;' -sp_after_oc_return_type = ignore # ignore/add/remove/force - -# Add or remove space between '@selector' and '(' -# '@selector(msgName).' vs '@selector (msgName)' -sp_after_oc_at_sel = ignore # ignore/add/remove/force - -# Add or remove space before a block pointer caret -# '^int (int arg){...}' vs. ' ^int (int arg){...}' -sp_before_oc_block_caret = ignore # ignore/add/remove/force - -# Add or remove space after a block pointer caret -# '^int (int arg){...}' vs. '^ int (int arg){...}' -sp_after_oc_block_caret = ignore # ignore/add/remove/force - -# Add or remove space around the ':' in 'b ? t : f' -sp_cond_colon = ignore # ignore/add/remove/force - -# Add or remove space around the '?' in 'b ? t : f' -sp_cond_question = ignore # ignore/add/remove/force - -# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here. -sp_case_label = ignore # ignore/add/remove/force - -# Control the space around the D '..' operator. -sp_range = ignore # ignore/add/remove/force - -# Control the space after the opening of a C++ comment '// A' vs '//A' -sp_cmt_cpp_start = ignore # ignore/add/remove/force - -# Controls the spaces between #else or #endif and a trailing comment -sp_endif_cmt = ignore # ignore/add/remove/force - -# -# Code alignment (not left column spaces/tabs) -# - -# Whether to keep non-indenting tabs -align_keep_tabs = false # false/true - -# Whether to use tabs for aligning -align_with_tabs = false # false/true - -# Whether to bump out to the next tab when aligning -align_on_tabstop = false # false/true - -# Whether to left-align numbers -align_number_left = false # false/true - -# Align variable definitions in prototypes and functions -align_func_params = false # false/true - -# Align parameters in single-line functions that have the same name. -# The function names must already be aligned with each other. -align_same_func_call_params = false # false/true - -# The span for aligning variable definitions (0=don't align) -align_var_def_span = 0 # number - -# How to align the star in variable definitions. -# 0=Part of the type 'void * foo;' -# 1=Part of the variable 'void *foo;' -# 2=Dangling 'void *foo;' -align_var_def_star_style = 0 # number - -# How to align the '&' in variable definitions. -# 0=Part of the type -# 1=Part of the variable -# 2=Dangling -align_var_def_amp_style = 0 # number - -# The threshold for aligning variable definitions (0=no limit) -align_var_def_thresh = 0 # number - -# The gap for aligning variable definitions -align_var_def_gap = 0 # number - -# Whether to align the colon in struct bit fields -align_var_def_colon = false # false/true - -# Whether to align any attribute after the variable name -align_var_def_attribute = false # false/true - -# Whether to align inline struct/enum/union variable definitions -align_var_def_inline = false # false/true - -# The span for aligning on '=' in assignments (0=don't align) -align_assign_span = 0 # number - -# The threshold for aligning on '=' in assignments (0=no limit) -align_assign_thresh = 0 # number - -# The span for aligning on '=' in enums (0=don't align) -align_enum_equ_span = 0 # number - -# The threshold for aligning on '=' in enums (0=no limit) -align_enum_equ_thresh = 0 # number - -# The span for aligning struct/union (0=don't align) -align_var_struct_span = 0 # number - -# The threshold for aligning struct/union member definitions (0=no limit) -align_var_struct_thresh = 0 # number - -# The gap for aligning struct/union member definitions -align_var_struct_gap = 0 # number - -# The span for aligning struct initializer values (0=don't align) -align_struct_init_span = 0 # number - -# The minimum space between the type and the synonym of a typedef -align_typedef_gap = 0 # number - -# The span for aligning single-line typedefs (0=don't align) -align_typedef_span = 0 # number - -# How to align typedef'd functions with other typedefs -# 0: Don't mix them at all -# 1: align the open paren with the types -# 2: align the function type name with the other type names -align_typedef_func = 0 # number - -# Controls the positioning of the '*' in typedefs. Just try it. -# 0: Align on typedef type, ignore '*' -# 1: The '*' is part of type name: typedef int *pint; -# 2: The '*' is part of the type, but dangling: typedef int *pint; -align_typedef_star_style = 0 # number - -# Controls the positioning of the '&' in typedefs. Just try it. -# 0: Align on typedef type, ignore '&' -# 1: The '&' is part of type name: typedef int &pint; -# 2: The '&' is part of the type, but dangling: typedef int &pint; -align_typedef_amp_style = 0 # number - -# The span for aligning comments that end lines (0=don't align) -align_right_cmt_span = 0 # number - -# If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment -align_right_cmt_mix = false # false/true - -# If a trailing comment is more than this number of columns away from the text it follows, -# it will qualify for being aligned. -align_right_cmt_gap = 0 # number - -# Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore) -align_right_cmt_at_col = 0 # number - -# The span for aligning function prototypes (0=don't align) -align_func_proto_span = 0 # number - -# Minimum gap between the return type and the function name. -align_func_proto_gap = 0 # number - -# Align function protos on the 'operator' keyword instead of what follows -align_on_operator = false # false/true - -# Whether to mix aligning prototype and variable declarations. -# If true, align_var_def_XXX options are used instead of align_func_proto_XXX options. -align_mix_var_proto = false # false/true - -# Align single-line functions with function prototypes, uses align_func_proto_span -align_single_line_func = false # false/true - -# Aligning the open brace of single-line functions. -# Requires align_single_line_func=true, uses align_func_proto_span -align_single_line_brace = false # false/true - -# Gap for align_single_line_brace. -align_single_line_brace_gap = 0 # number - -# The span for aligning ObjC msg spec (0=don't align) -align_oc_msg_spec_span = 0 # number - -# Whether to align macros wrapped with a backslash and a newline. -# This will not work right if the macro contains a multi-line comment. -align_nl_cont = false # false/true - -# The minimum space between label and value of a preprocessor define -align_pp_define_gap = 0 # number - -# The span for aligning on '#define' bodies (0=don't align) -align_pp_define_span = 0 # number - -# Align lines that start with '<<' with previous '<<'. Default=true -align_left_shift = true # false/true - -# Span for aligning parameters in an Obj-C message call on the ':' (0=don't align) -align_oc_msg_colon_span = 0 # number - -# -# Newline adding and removing options -# - -# Whether to collapse empty blocks between '{' and '}' -nl_collapse_empty_body = false # false/true - -# Don't split one-line braced assignments - 'foo_t f = { 1, 2 };' -nl_assign_leave_one_liners = false # false/true - -# Don't split one-line braced statements inside a class xx { } body -nl_class_leave_one_liners = false # false/true - -# Don't split one-line enums: 'enum foo { BAR = 15 };' -nl_enum_leave_one_liners = false # false/true - -# Don't split one-line get or set functions -nl_getset_leave_one_liners = false # false/true - -# Don't split one-line function definitions - 'int foo() { return 0; }' -nl_func_leave_one_liners = false # false/true - -# Don't split one-line if/else statements - 'if(a) b++;' -nl_if_leave_one_liners = false # false/true - -# Add or remove newlines at the start of the file -nl_start_of_file = ignore # ignore/add/remove/force - -# The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force' -nl_start_of_file_min = 0 # number - -# Add or remove newline at the end of the file -nl_end_of_file = ignore # ignore/add/remove/force - -# The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force') -nl_end_of_file_min = 0 # number - -# Add or remove newline between '=' and '{' -nl_assign_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '=' and '[' (D only) -nl_assign_square = ignore # ignore/add/remove/force - -# Add or remove newline after '= [' (D only). Will also affect the newline before the ']' -nl_after_square_assign = ignore # ignore/add/remove/force - -# The number of newlines after a block of variable definitions -nl_func_var_def_blk = 0 # number - -# Add or remove newline between a function call's ')' and '{', as in: -# list_for_each(item, &list) { } -nl_fcall_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'enum' and '{' -nl_enum_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'struct and '{' -nl_struct_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'union' and '{' -nl_union_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'if' and '{' -nl_if_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'else' -nl_brace_else = ignore # ignore/add/remove/force - -# Add or remove newline between 'else if' and '{' -# If set to ignore, nl_if_brace is used instead -nl_elseif_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'else' and '{' -nl_else_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'else' and 'if' -nl_else_if = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'finally' -nl_brace_finally = ignore # ignore/add/remove/force - -# Add or remove newline between 'finally' and '{' -nl_finally_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'try' and '{' -nl_try_brace = ignore # ignore/add/remove/force - -# Add or remove newline between get/set and '{' -nl_getset_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'for' and '{' -nl_for_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'catch' and '{' -nl_catch_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'catch' -nl_brace_catch = ignore # ignore/add/remove/force - -# Add or remove newline between 'while' and '{' -nl_while_brace = ignore # ignore/add/remove/force - -# Add or remove newline between two open or close braces. -# Due to general newline/brace handling, REMOVE may not work. -nl_brace_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'do' and '{' -nl_do_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'while' of 'do' statement -nl_brace_while = ignore # ignore/add/remove/force - -# Add or remove newline between 'switch' and '{' -nl_switch_brace = ignore # ignore/add/remove/force - -# Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc. -# Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace. -nl_multi_line_cond = false # false/true - -# Force a newline in a define after the macro name for multi-line defines. -nl_multi_line_define = false # false/true - -# Whether to put a newline before 'case' statement -nl_before_case = false # false/true - -# Add or remove newline between ')' and 'throw' -nl_before_throw = ignore # ignore/add/remove/force - -# Whether to put a newline after 'case' statement -nl_after_case = false # false/true - -# Newline between namespace and { -nl_namespace_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'template<>' and whatever follows. -nl_template_class = ignore # ignore/add/remove/force - -# Add or remove newline between 'class' and '{' -nl_class_brace = ignore # ignore/add/remove/force - -# Add or remove newline after each ',' in the constructor member initialization -nl_class_init_args = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name in a function definition -nl_func_type_name = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name inside a class {} -# Uses nl_func_type_name or nl_func_proto_type_name if set to ignore. -nl_func_type_name_class = ignore # ignore/add/remove/force - -# Add or remove newline between function scope and name in a definition -# Controls the newline after '::' in 'void A::f() { }' -nl_func_scope_name = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name in a prototype -nl_func_proto_type_name = ignore # ignore/add/remove/force - -# Add or remove newline between a function name and the opening '(' -nl_func_paren = ignore # ignore/add/remove/force - -# Add or remove newline after '(' in a function declaration -nl_func_decl_start = ignore # ignore/add/remove/force - -# Overrides nl_func_decl_start when there is only one paramter. -nl_func_decl_start_single = ignore # ignore/add/remove/force - -# Add or remove newline after each ',' in a function declaration -nl_func_decl_args = ignore # ignore/add/remove/force - -# Add or remove newline before the ')' in a function declaration -nl_func_decl_end = ignore # ignore/add/remove/force - -# Overrides nl_func_decl_end when there is only one paramter. -nl_func_decl_end_single = ignore # ignore/add/remove/force - -# Add or remove newline between '()' in a function declaration. -nl_func_decl_empty = ignore # ignore/add/remove/force - -# Add or remove newline between function signature and '{' -nl_fdef_brace = ignore # ignore/add/remove/force - -# Whether to put a newline after 'return' statement -nl_after_return = false # false/true - -# Add or remove a newline between the return keyword and return expression. -nl_return_expr = ignore # ignore/add/remove/force - -# Whether to put a newline after semicolons, except in 'for' statements -nl_after_semicolon = false # false/true - -# Whether to put a newline after brace open. -# This also adds a newline before the matching brace close. -nl_after_brace_open = false # false/true - -# If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is -# placed between the open brace and a trailing single-line comment. -nl_after_brace_open_cmt = false # false/true - -# Whether to put a newline after a virtual brace open with a non-empty body. -# These occur in un-braced if/while/do/for statement bodies. -nl_after_vbrace_open = false # false/true - -# Whether to put a newline after a virtual brace open with an empty body. -# These occur in un-braced if/while/do/for statement bodies. -nl_after_vbrace_open_empty = false # false/true - -# Whether to put a newline after a brace close. -# Does not apply if followed by a necessary ';'. -nl_after_brace_close = false # false/true - -# Whether to alter newlines in '#define' macros -nl_define_macro = false # false/true - -# Whether to not put blanks after '#ifxx', '#elxx', or before '#endif' -nl_squeeze_ifdef = false # false/true - -# Add or remove newline before 'if' -nl_before_if = ignore # ignore/add/remove/force - -# Add or remove newline after 'if' -nl_after_if = ignore # ignore/add/remove/force - -# Add or remove newline before 'for' -nl_before_for = ignore # ignore/add/remove/force - -# Add or remove newline after 'for' -nl_after_for = ignore # ignore/add/remove/force - -# Add or remove newline before 'while' -nl_before_while = ignore # ignore/add/remove/force - -# Add or remove newline after 'while' -nl_after_while = ignore # ignore/add/remove/force - -# Add or remove newline before 'switch' -nl_before_switch = ignore # ignore/add/remove/force - -# Add or remove newline after 'switch' -nl_after_switch = ignore # ignore/add/remove/force - -# Add or remove newline before 'do' -nl_before_do = ignore # ignore/add/remove/force - -# Add or remove newline after 'do' -nl_after_do = ignore # ignore/add/remove/force - -# Whether to double-space commented-entries in struct/enum -nl_ds_struct_enum_cmt = false # false/true - -# Whether to double-space before the close brace of a struct/union/enum -nl_ds_struct_enum_close_brace = false # false/true - -# Add or remove a newline around a class colon. -# Related to pos_class_colon, nl_class_init_args, and pos_comma. -nl_class_colon = ignore # ignore/add/remove/force - -# Change simple unbraced if statements into a one-liner -# 'if(b)\n i++;' => 'if(b) i++;' -nl_create_if_one_liner = false # false/true - -# Change simple unbraced for statements into a one-liner -# 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);' -nl_create_for_one_liner = false # false/true - -# Change simple unbraced while statements into a one-liner -# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);' -nl_create_while_one_liner = false # false/true - -# -# Positioning options -# - -# The position of arithmetic operators in wrapped expressions -pos_arith = ignore # ignore/lead/trail - -# The position of assignment in wrapped expressions. -# Do not affect '=' followed by '{' -pos_assign = ignore # ignore/lead/trail - -# The position of boolean operators in wrapped expressions -pos_bool = ignore # ignore/lead/trail - -# The position of comparison operators in wrapped expressions -pos_compare = ignore # ignore/lead/trail - -# The position of conditional (b ? t : f) operators in wrapped expressions -pos_conditional = ignore # ignore/lead/trail - -# The position of the comma in wrapped expressions -pos_comma = ignore # ignore/lead/trail - -# The position of the comma in the constructor initialization list -pos_class_comma = ignore # ignore/lead/trail - -# The position of colons between constructor and member initialization -pos_class_colon = ignore # ignore/lead/trail - -# -# Line Splitting options -# - -# Try to limit code width to N number of columns -code_width = 0 # number - -# Whether to fully split long 'for' statements at semi-colons -ls_for_split_full = false # false/true - -# Whether to fully split long function protos/calls at commas -ls_func_split_full = false # false/true - -# -# Blank line options -# - -# The maximum consecutive newlines -nl_max = 0 # number - -# The number of newlines after a function prototype, if followed by another function prototype -nl_after_func_proto = 0 # number - -# The number of newlines after a function prototype, if not followed by another function prototype -nl_after_func_proto_group = 0 # number - -# The number of newlines after '}' of a multi-line function body -nl_after_func_body = 0 # number - -# The number of newlines after '}' of a single line function body -nl_after_func_body_one_liner = 0 # number - -# The minimum number of newlines before a multi-line comment. -# Doesn't apply if after a brace open or another multi-line comment. -nl_before_block_comment = 0 # number - -# The minimum number of newlines before a single-line C comment. -# Doesn't apply if after a brace open or other single-line C comments. -nl_before_c_comment = 0 # number - -# The minimum number of newlines before a CPP comment. -# Doesn't apply if after a brace open or other CPP comments. -nl_before_cpp_comment = 0 # number - -# Whether to force a newline after a mulit-line comment. -nl_after_multiline_comment = false # false/true - -# The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. -# Will not change the newline count if after a brace open. -# 0 = No change. -nl_before_access_spec = 0 # number - -# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. -# 0 = No change. -nl_after_access_spec = 0 # number - -# The number of newlines between a function def and the function comment. -# 0 = No change. -nl_comment_func_def = 0 # number - -# The number of newlines after a try-catch-finally block that isn't followed by a brace close. -# 0 = No change. -nl_after_try_catch_finally = 0 # number - -# The number of newlines before and after a property, indexer or event decl. -# 0 = No change. -nl_around_cs_property = 0 # number - -# The number of newlines between the get/set/add/remove handlers in C#. -# 0 = No change. -nl_between_get_set = 0 # number - -# Whether to remove blank lines after '{' -eat_blanks_after_open_brace = false # false/true - -# Whether to remove blank lines before '}' -eat_blanks_before_close_brace = false # false/true - -# -# Code modifying options (non-whitespace) -# - -# Add or remove braces on single-line 'do' statement -mod_full_brace_do = ignore # ignore/add/remove/force - -# Add or remove braces on single-line 'for' statement -mod_full_brace_for = ignore # ignore/add/remove/force - -# Add or remove braces on single-line function definitions. (Pawn) -mod_full_brace_function = ignore # ignore/add/remove/force - -# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'. -mod_full_brace_if = ignore # ignore/add/remove/force - -# Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if. -# If any must be braced, they are all braced. If all can be unbraced, then the braces are removed. -mod_full_brace_if_chain = false # false/true - -# Don't remove braces around statements that span N newlines -mod_full_brace_nl = 0 # number - -# Add or remove braces on single-line 'while' statement -mod_full_brace_while = ignore # ignore/add/remove/force - -# Add or remove unnecessary paren on 'return' statement -mod_paren_on_return = ignore # ignore/add/remove/force - -# Whether to change optional semicolons to real semicolons -mod_pawn_semicolon = false # false/true - -# Add parens on 'while' and 'if' statement around bools -mod_full_paren_if_bool = false # false/true - -# Whether to remove superfluous semicolons -mod_remove_extra_semicolon = false # false/true - -# If a function body exceeds the specified number of newlines and doesn't have a comment after -# the close brace, a comment will be added. -mod_add_long_function_closebrace_comment = 0 # number - -# If a switch body exceeds the specified number of newlines and doesn't have a comment after -# the close brace, a comment will be added. -mod_add_long_switch_closebrace_comment = 0 # number - -# If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after -# the #else, a comment will be added. -mod_add_long_ifdef_endif_comment = 0 # number - -# If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after -# the #endif, a comment will be added. -mod_add_long_ifdef_else_comment = 0 # number - -# If TRUE, will sort consecutive single-line 'import' statements [Java, D] -mod_sort_import = false # false/true - -# If TRUE, will sort consecutive single-line 'using' statements [C#] -mod_sort_using = false # false/true - -# If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C] -# This is generally a bad idea, as it may break your code. -mod_sort_include = false # false/true - -# If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace. -mod_move_case_break = false # false/true - -# Will add or remove the braces around a fully braced case statement. -# Will only remove the braces if there are no variable declarations in the block. -mod_case_brace = ignore # ignore/add/remove/force - -# If TRUE, it will remove a void 'return;' that appears as the last statement in a function. -mod_remove_empty_return = false # false/true - -# -# Comment modifications -# - -# Try to wrap comments at cmt_width columns -cmt_width = 0 # number - -# Set the comment reflow mode (default: 0) -# 0: no reflowing (apart from the line wrapping due to cmt_width) -# 1: no touching at all -# 2: full reflow -cmt_reflow_mode = 0 # number - -# If false, disable all multi-line comment changes, including cmt_width and leading chars. -# Default is true. -cmt_indent_multi = true # false/true - -# Whether to group c-comments that look like they are in a block -cmt_c_group = false # false/true - -# Whether to put an empty '/*' on the first line of the combined c-comment -cmt_c_nl_start = false # false/true - -# Whether to put a newline before the closing '*/' of the combined c-comment -cmt_c_nl_end = false # false/true - -# Whether to group cpp-comments that look like they are in a block -cmt_cpp_group = false # false/true - -# Whether to put an empty '/*' on the first line of the combined cpp-comment -cmt_cpp_nl_start = false # false/true - -# Whether to put a newline before the closing '*/' of the combined cpp-comment -cmt_cpp_nl_end = false # false/true - -# Whether to change cpp-comments into c-comments -cmt_cpp_to_c = false # false/true - -# Whether to put a star on subsequent comment lines -cmt_star_cont = false # false/true - -# The number of spaces to insert at the start of subsequent comment lines -cmt_sp_before_star_cont = 0 # number - -# The number of spaces to insert after the star on subsequent comment lines -cmt_sp_after_star_cont = 0 # number - -# For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of -# the comment are the same length. Default=True -cmt_multi_check_last = true # false/true - -# The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment. -# Will substitute $(filename) with the current file's name. -cmt_insert_file_header = "" # string - -# The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment. -# Will substitute $(filename) with the current file's name. -cmt_insert_file_footer = "" # string - -# The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment. -# Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff. -# Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... } -cmt_insert_func_header = "" # string - -# The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment. -# Will substitute $(class) with the class name. -cmt_insert_class_header = "" # string - -# If a preprocessor is encountered when stepping backwards from a function name, then -# this option decides whether the comment should be inserted. -# Affects cmt_insert_func_header and cmt_insert_class_header. -cmt_insert_before_preproc = false # false/true - -# -# Preprocessor options -# - -# Control indent of preprocessors inside #if blocks at brace level 0 -pp_indent = ignore # ignore/add/remove/force - -# Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false) -pp_indent_at_level = false # false/true - -# If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1. -pp_indent_count = 1 # number - -# Add or remove space after # based on pp_level of #if blocks -pp_space = ignore # ignore/add/remove/force - -# Sets the number of spaces added with pp_space -pp_space_count = 0 # number - -# The indent for #region and #endregion in C# and '#pragma region' in C/C++ -pp_indent_region = 0 # number - -# Whether to indent the code between #region and #endregion -pp_region_indent_code = false # false/true - -# If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level -pp_indent_if = 0 # number - -# Control whether to indent the code between #if, #else and #endif when not at file-level -pp_if_indent_code = false # false/true - -# Whether to indent '#define' at the brace level (true) or from column 1 (false) -pp_define_at_level = false # false/true - -# You can force a token to be a type with the 'type' option. -# Example: -# type myfoo1 myfoo2 -# -# You can create custom macro-based indentation using macro-open, -# macro-else and macro-close. -# Example: -# macro-open BEGIN_TEMPLATE_MESSAGE_MAP -# macro-open BEGIN_MESSAGE_MAP -# macro-close END_MESSAGE_MAP -# -# You can assign any keyword to any type with the set option. -# set func_call_user _ N_ -# -# The full syntax description of all custom definition config entries -# is shown below: -# -# define custom tokens as: -# - embed whitespace in token using '' escape character, or -# put token in quotes -# - these: ' " and ` are recognized as quote delimiters -# -# type token1 token2 token3 ... -# ^ optionally specify multiple tokens on a single line -# define def_token output_token -# ^ output_token is optional, then NULL is assumed -# macro-open token -# macro-close token -# macro-else token -# set id token1 token2 ... -# ^ optionally specify multiple tokens on a single line -# ^ id is one of the names in token_enum.h sans the CT_ prefix, -# e.g. PP_PRAGMA -# -# all tokens are separated by any mix of ',' commas, '=' equal signs -# and whitespace (space, tab) -# diff --git a/src/config/cmt/coolCppClean_uncrustify.cfg b/src/config/cmt/coolCppClean_uncrustify.cfg deleted file mode 100644 index da560aa8b7d3a544f4e9a721c153d290ab60675c..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolCppClean_uncrustify.cfg +++ /dev/null @@ -1,1373 +0,0 @@ -# Uncrustify 0.55 - -#------------------------------------------------------------------------------ -# KNOWN ISSUES (in addition to those mentioned as 'BUG!' explicitly below) -# -# - BUG! In 'operator std::string(){...}' a space is added: 'std ::string'. -# From tokenize_cleanup, only std is OPERATOR, while string is DC_MEMBER (?). -# The space added is probably a consequence of the tokenizer bug. -# <66>Spacing: line 1 [OPERATOR_VAL/OPERATOR] 'std' -# <===> [DC_MEMBER/NONE] '::' : ADD[1258] = ADD @ 1 -# -#------------------------------------------------------------------------------ - -# -# General options -# - -# The type of line endings -newlines = auto # auto/lf/crlf/cr - -# The original size of tabs in the input -input_tab_size = 8 # number - -# The size of tabs in the output (only used if align_with_tabs=true) -output_tab_size = 8 # number - -# The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn) -string_escape_char = 92 # number - -# Alternate string escape char for Pawn. Only works right before the quote char. -string_escape_char2 = 0 # number - -# -# Indenting -# - -# The number of columns to indent per level. -# Usually 2, 3, 4, or 8. -#indent_columns = 8 # number #DEF -indent_columns = 2 # number #COOL (COMMENTS TOO!) - -# How to use tabs when indenting code -# 0=spaces only -# 1=indent with tabs, align with spaces -# 2=indent and align with tabs -#indent_with_tabs = 1 # number #DEF -indent_with_tabs = 0 # number #COOL (COMMENTS TOO!) - -# Whether to indent strings broken by '\' so that they line up -indent_align_string = false # false/true #DEF -#indent_align_string = true # false/true #COOL? - -# The number of spaces to indent multi-line XML strings. -# Requires indent_align_string=True -indent_xml_string = 0 # number - -# Spaces to indent '{' from level -indent_brace = 0 # number - -# Whether braces are indented to the body level -indent_braces = false # false/true - -# Disabled indenting function braces if indent_braces is true -indent_braces_no_func = false # false/true - -# Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc. -indent_brace_parent = false # false/true - -# Whether the 'namespace' body is indented -#indent_namespace = false # false/true #DEF -indent_namespace = true # false/true #COOL (COMMENTS TOO!) - -# The number of spaces to indent a namespace block -indent_namespace_level = 0 # number - -# If the body of the namespace is longer than this number, it won't be indented. -# Requires indent_namespace=true. Default=0 (no limit) -indent_namespace_limit = 0 # number - -# Whether the 'extern "C"' body is indented -#indent_extern = false # false/true #DEF -indent_extern = false # false/true #COOL (COMMENTS TOO!) - -# Whether the 'class' body is indented -#indent_class = false # false/true #DEF -indent_class = true # false/true #COOL (COMMENTS TOO!) - -# Whether to indent the stuff after a leading class colon -indent_class_colon = false # false/true - -# False=treat 'else\nif' as 'else if' for indenting purposes -# True=indent the 'if' one level -indent_else_if = false # false/true - -# Amount to indent variable declarations after a open brace. neg=relative, pos=absolute -indent_var_def_blk = 0 # number - -# True: indent continued function call parameters one indent level -# False: align parameters under the open paren -indent_func_call_param = false # false/true - -# Same as indent_func_call_param, but for function defs -indent_func_def_param = false # false/true - -# Same as indent_func_call_param, but for function protos -indent_func_proto_param = false # false/true - -# Same as indent_func_call_param, but for class declarations -indent_func_class_param = false # false/true - -# Same as indent_func_call_param, but for class variable constructors -indent_func_ctor_var_param = false # false/true - -# Same as indent_func_call_param, but for templates -indent_template_param = false # false/true #DEF -#indent_template_param = true # false/true #COOL? - -# Double the indent for indent_func_xxx_param options -indent_func_param_double = false # false/true - -# Indentation column for standalone 'const' function decl/proto qualifier -indent_func_const = 0 # number - -# Indentation column for standalone 'throw' function decl/proto qualifier -indent_func_throw = 0 # number - -# The number of spaces to indent a continued '->' or '.' -# Usually set to 0, 1, or indent_columns. -indent_member = 0 # number - -# Spaces to indent single line ('//') comments on lines before code -indent_sing_line_comments = 0 # number - -# If set, will indent trailing single line ('//') comments relative -# to the code instead of trying to keep the same absolute column -# NB: Both may produce results that do not converge (add spaces each time) -# === COOL: false === -indent_relative_single_line_comments = false # false/true #DEF - -# Spaces to indent 'case' from 'switch' -# Usually 0 or indent_columns. -indent_switch_case = 0 # number - -# Spaces to shift the 'case' line, without affecting any other lines -# Usually 0. -indent_case_shift = 0 # number - -# Spaces to indent '{' from 'case'. -# By default, the brace will appear under the 'c' in case. -# Usually set to 0 or indent_columns. -indent_case_brace = 0 # number - -# Whether to indent comments found in first column -indent_col1_comment = false # false/true - -# How to indent goto labels -# >0 : absolute column where 1 is the leftmost column -# <=0 : subtract from brace indent -indent_label = 1 # number - -# Same as indent_label, but for access specifiers that are followed by a colon -indent_access_spec = 1 # number - -# Indent the code after an access specifier by one level. -# If set, this option forces 'indent_access_spec=0' -indent_access_spec_body = false # false/true - -# If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended) -indent_paren_nl = false # false/true - -# Controls the indent of a close paren after a newline. -# 0: Indent to body level -# 1: Align under the open paren -# 2: Indent to the brace level -indent_paren_close = 0 # number - -# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren -indent_comma_paren = false # false/true - -# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren -indent_bool_paren = false # false/true - -# If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended) -indent_square_nl = false # false/true - -# Don't change the relative indent of ESQL/C 'EXEC SQL' bodies -indent_preserve_sql = false # false/true - -# Align continued statements at the '='. Default=True -# If FALSE or the '=' is followed by a newline, the next line is indent one tab. -indent_align_assign = true # false/true - -# -# Spacing options -# - -# Add or remove space around arithmetic operator '+', '-', '/', '*', etc -sp_arith = ignore # ignore/add/remove/force - -# Add or remove space around assignment operator '=', '+=', etc -sp_assign = ignore # ignore/add/remove/force - -# Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign. -sp_before_assign = ignore # ignore/add/remove/force - -# Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign. -sp_after_assign = ignore # ignore/add/remove/force - -# Add or remove space around assignment '=' in enum -sp_enum_assign = ignore # ignore/add/remove/force - -# Add or remove space before assignment '=' in enum. Overrides sp_enum_assign. -sp_enum_before_assign = ignore # ignore/add/remove/force - -# Add or remove space after assignment '=' in enum. Overrides sp_enum_assign. -sp_enum_after_assign = ignore # ignore/add/remove/force - -# Add or remove space around preprocessor '##' concatenation operator. Default=Add -sp_pp_concat = add # ignore/add/remove/force - -# Add or remove space after preprocessor '#' stringify operator. Default=Add -sp_pp_stringify = add # ignore/add/remove/force - -# Add or remove space around boolean operators '&&' and '||' -sp_bool = ignore # ignore/add/remove/force - -# Add or remove space around compare operator '<', '>', '==', etc -sp_compare = ignore # ignore/add/remove/force - -# Add or remove space inside '(' and ')' -sp_inside_paren = ignore # ignore/add/remove/force - -# Add or remove space between nested parens -sp_paren_paren = ignore # ignore/add/remove/force - -# Whether to balance spaces inside nested parens -sp_balance_nested_parens = false # false/true - -# Add or remove space between ')' and '{' -# BUG! It is added for 'ignore' in 'for(...){' -sp_paren_brace = ignore # ignore/add/remove/force - -# Add or remove space before pointer star '*' -sp_before_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space before pointer star '*' that isn't followed by a variable name -# If set to 'ignore', sp_before_ptr_star is used instead. -sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space between pointer stars '*' -sp_between_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space after pointer star '*', if followed by a word. -sp_after_ptr_star = ignore # ignore/add/remove/force - -# Add or remove space after a pointer star '*', if followed by a func proto/def. -sp_after_ptr_star_func = ignore # ignore/add/remove/force - -# Add or remove space before a pointer star '*', if followed by a func proto/def. -sp_before_ptr_star_func = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&' -sp_before_byref = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&' that isn't followed by a variable name -# If set to 'ignore', sp_before_byref is used instead. -sp_before_unnamed_byref = ignore # ignore/add/remove/force - -# Add or remove space after reference sign '&', if followed by a word. -sp_after_byref = ignore # ignore/add/remove/force - -# Add or remove space after a reference sign '&', if followed by a func proto/def. -sp_after_byref_func = ignore # ignore/add/remove/force - -# Add or remove space before a reference sign '&', if followed by a func proto/def. -sp_before_byref_func = ignore # ignore/add/remove/force - -# Add or remove space between type and word. Default=Force -sp_after_type = force # ignore/add/remove/force - -# Add or remove space in 'template <' vs 'template<'. -# If set to ignore, sp_before_angle is used. -sp_template_angle = ignore # ignore/add/remove/force - -# Add or remove space before '<>' -sp_before_angle = ignore # ignore/add/remove/force - -# Add or remove space inside '<' and '>' -sp_inside_angle = ignore # ignore/add/remove/force - -# Add or remove space after '<>' -sp_after_angle = ignore # ignore/add/remove/force - -# Add or remove space between '<>' and '(' as found in 'new List<byte>();' -sp_angle_paren = ignore # ignore/add/remove/force - -# Add or remove space between '<>' and a word as in 'List<byte> m;' -sp_angle_word = ignore # ignore/add/remove/force - -# Add or remove space before '(' of 'if', 'for', 'switch', and 'while' -sp_before_sparen = ignore # ignore/add/remove/force - -# Add or remove space inside if-condition '(' and ')' -sp_inside_sparen = ignore # ignore/add/remove/force - -# Add or remove space before if-condition ')'. Overrides sp_inside_sparen. -sp_inside_sparen_close = ignore # ignore/add/remove/force - -# Add or remove space after ')' of 'if', 'for', 'switch', and 'while' -sp_after_sparen = ignore # ignore/add/remove/force - -# Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while' -# BUG! It is added (also for ignore) in 'if(1){}': 'if(1) {}' -sp_sparen_brace = ignore # ignore/add/remove/force - -# Add or remove space between 'invariant' and '(' in the D language. -sp_invariant_paren = ignore # ignore/add/remove/force - -# Add or remove space after the ')' in 'invariant (C) c' in the D language. -sp_after_invariant_paren = ignore # ignore/add/remove/force - -# Add or remove space before empty statement ';' on 'if', 'for' and 'while' -sp_special_semi = ignore # ignore/add/remove/force - -# Add or remove space before ';'. Default=Remove -# === COOL: remove === -#sp_before_semi = remove # ignore/add/remove/force #DEF -sp_before_semi = ignore # ignore/add/remove/force #NOOP - -# Add or remove space before ';' in non-empty 'for' statements -sp_before_semi_for = ignore # ignore/add/remove/force - -# Add or remove space before a semicolon of an empty part of a for statement. -sp_before_semi_for_empty = ignore # ignore/add/remove/force - -# Add or remove space after ';', except when followed by a comment. Default=Add -sp_after_semi = add # ignore/add/remove/force - -# Add or remove space after ';' in non-empty 'for' statements. Default=Force -sp_after_semi_for = force # ignore/add/remove/force - -# Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ). -sp_after_semi_for_empty = ignore # ignore/add/remove/force - -# Add or remove space before '[' (except '[]') -sp_before_square = ignore # ignore/add/remove/force - -# Add or remove space before '[]' -sp_before_squares = ignore # ignore/add/remove/force - -# Add or remove space inside '[' and ']' -sp_inside_square = ignore # ignore/add/remove/force - -# Add or remove space after ',' -sp_after_comma = ignore # ignore/add/remove/force - -# Add or remove space before ',' -# === COOL: remove === -#sp_before_comma = remove # ignore/add/remove/force #DEF -sp_before_comma = ignore # ignore/add/remove/force #NOOP - -# Add or remove space before the variadic '...' when preceded by a non-punctuator -sp_before_ellipsis = ignore # ignore/add/remove/force - -# Add or remove space after class ':' -sp_after_class_colon = ignore # ignore/add/remove/force - -# Add or remove space before class ':' -# BUG! A colon is added for 'ignore' -# === COOL: add === -#sp_before_class_colon = ignore # ignore/add/remove/force #DEF -sp_before_class_colon = add # ignore/add/remove/force #COOL - -# Add or remove space before case ':'. Default=Remove -# === COOL: remove === -# BUG! A space is added for 'ignore' -sp_before_case_colon = remove # ignore/add/remove/force #DEF -#sp_before_case_colon = ignore # ignore/add/remove/force #NOOP - -# Add or remove space between 'operator' and operator sign -sp_after_operator = ignore # ignore/add/remove/force - -# Add or remove space between the operator symbol and the open paren, as in 'operator ++(' -sp_after_operator_sym = ignore # ignore/add/remove/force - -# Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a' -sp_after_cast = ignore # ignore/add/remove/force - -# Add or remove spaces inside cast parens -sp_inside_paren_cast = ignore # ignore/add/remove/force - -# Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)' -sp_cpp_cast_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'sizeof' and '(' -sp_sizeof_paren = ignore # ignore/add/remove/force - -# Add or remove space after the tag keyword (Pawn) -sp_after_tag = ignore # ignore/add/remove/force - -# Add or remove space inside enum '{' and '}' -sp_inside_braces_enum = ignore # ignore/add/remove/force - -# Add or remove space inside struct/union '{' and '}' -sp_inside_braces_struct = ignore # ignore/add/remove/force - -# Add or remove space inside '{' and '}' -sp_inside_braces = ignore # ignore/add/remove/force - -# Add or remove space inside '{}' -sp_inside_braces_empty = ignore # ignore/add/remove/force - -# Add or remove space between return type and function name -# A minimum of 1 is forced except for pointer return types. -sp_type_func = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function declaration -sp_func_proto_paren = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function definition -sp_func_def_paren = ignore # ignore/add/remove/force - -# Add or remove space inside empty function '()' -sp_inside_fparens = ignore # ignore/add/remove/force - -# Add or remove space inside function '(' and ')' -sp_inside_fparen = ignore # ignore/add/remove/force - -# Add or remove space between ']' and '(' when part of a function call. -sp_square_fparen = ignore # ignore/add/remove/force - -# Add or remove space between ')' and '{' of function -sp_fparen_brace = ignore # ignore/add/remove/force - -# Add or remove space between function name and '(' on function calls -sp_func_call_paren = ignore # ignore/add/remove/force - -# Add or remove space between the user function name and '(' on function calls -# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file. -sp_func_call_user_paren = ignore # ignore/add/remove/force - -# Add or remove space between a constructor/destructor and the open paren -sp_func_class_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'return' and '(' -sp_return_paren = ignore # ignore/add/remove/force - -# Add or remove space between '__attribute__' and '(' -sp_attribute_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'defined' and '(' in '#if defined (FOO)' -sp_defined_paren = ignore # ignore/add/remove/force - -# Add or remove space between 'throw' and '(' in 'throw (something)' -sp_throw_paren = ignore # ignore/add/remove/force - -# Add or remove space between macro and value -sp_macro = ignore # ignore/add/remove/force - -# Add or remove space between macro function ')' and value -sp_macro_func = ignore # ignore/add/remove/force - -# Add or remove space between 'else' and '{' if on the same line -sp_else_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'else' if on the same line -sp_brace_else = ignore # ignore/add/remove/force - -# Add or remove space between '}' and the name of a typedef on the same line -sp_brace_typedef = ignore # ignore/add/remove/force - -# Add or remove space between 'catch' and '{' if on the same line -sp_catch_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'catch' if on the same line -sp_brace_catch = ignore # ignore/add/remove/force - -# Add or remove space between 'finally' and '{' if on the same line -sp_finally_brace = ignore # ignore/add/remove/force - -# Add or remove space between '}' and 'finally' if on the same line -sp_brace_finally = ignore # ignore/add/remove/force - -# Add or remove space between 'try' and '{' if on the same line -sp_try_brace = ignore # ignore/add/remove/force - -# Add or remove space between get/set and '{' if on the same line -sp_getset_brace = ignore # ignore/add/remove/force - -# Add or remove space before the '::' operator -sp_before_dc = ignore # ignore/add/remove/force - -# Add or remove space after the '::' operator -sp_after_dc = ignore # ignore/add/remove/force - -# Add or remove around the D named array initializer ':' operator -sp_d_array_colon = ignore # ignore/add/remove/force - -# Add or remove space after the '!' (not) operator. Default=Remove -# === COOL: remove === -#sp_not = remove # ignore/add/remove/force #DEF -sp_not = ignore # ignore/add/remove/force #NOOP - -# Add or remove space after the '~' (invert) operator. Default=Remove -# === COOL: remove === -#sp_inv = remove # ignore/add/remove/force #DEF -sp_inv = ignore # ignore/add/remove/force #NOOP - -# Add or remove space after the '&' (address-of) operator. Default=Remove -# This does not affect the spacing after a '&' that is part of a type. -# === COOL: remove === -#sp_addr = remove # ignore/add/remove/force #DEF -sp_addr = ignore # ignore/add/remove/force #NOOP - -# Add or remove space around the '.' or '->' operators. Default=Remove -# === COOL: remove === -#sp_member = remove # ignore/add/remove/force #DEF -sp_member = ignore # ignore/add/remove/force #NOOP - -# Add or remove space after the '*' (dereference) operator. Default=Remove -# This does not affect the spacing after a '*' that is part of a type. -# === COOL: remove === -#sp_deref = remove # ignore/add/remove/force #DEF -sp_deref = ignore # ignore/add/remove/force #NOOP - -# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove -# === COOL: remove === -#sp_sign = remove # ignore/add/remove/force #DEF -sp_sign = ignore # ignore/add/remove/force #NOOP - -# Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove -# === COOL: remove === -#sp_incdec = remove # ignore/add/remove/force #DEF -sp_incdec = ignore # ignore/add/remove/force #NOOP - -# Add or remove space before a backslash-newline at the end of a line. Default=Add -# NB Instabilities (keep adding new spaces) observed with add -#sp_before_nl_cont = add # ignore/add/remove/force #DEF -sp_before_nl_cont = force # ignore/add/remove/force #COOL - -# Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;' -sp_after_oc_scope = ignore # ignore/add/remove/force - -# Add or remove space after the colon in message specs -# '-(int) f:(int) x;' vs '-(int) f: (int) x;' -sp_after_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space before the colon in message specs -# '-(int) f: (int) x;' vs '-(int) f : (int) x;' -sp_before_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space after the colon in message specs -# '[object setValue:1];' vs '[object setValue: 1];' -sp_after_send_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space before the colon in message specs -# '[object setValue:1];' vs '[object setValue :1];' -sp_before_send_oc_colon = ignore # ignore/add/remove/force - -# Add or remove space after the (type) in message specs -# '-(int)f: (int) x;' vs '-(int)f: (int)x;' -sp_after_oc_type = ignore # ignore/add/remove/force - -# Add or remove space after the first (type) in message specs -# '-(int) f:(int)x;' vs '-(int)f:(int)x;' -sp_after_oc_return_type = ignore # ignore/add/remove/force - -# Add or remove space between '@selector' and '(' -# '@selector(msgName).' vs '@selector (msgName)' -sp_after_oc_at_sel = ignore # ignore/add/remove/force - -# Add or remove space before a block pointer caret -# '^int (int arg){...}' vs. ' ^int (int arg){...}' -sp_before_oc_block_caret = ignore # ignore/add/remove/force - -# Add or remove space after a block pointer caret -# '^int (int arg){...}' vs. '^ int (int arg){...}' -sp_after_oc_block_caret = ignore # ignore/add/remove/force - -# Add or remove space around the ':' in 'b ? t : f' -sp_cond_colon = ignore # ignore/add/remove/force - -# Add or remove space around the '?' in 'b ? t : f' -sp_cond_question = ignore # ignore/add/remove/force - -# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here. -sp_case_label = ignore # ignore/add/remove/force - -# Control the space around the D '..' operator. -sp_range = ignore # ignore/add/remove/force - -# Control the space after the opening of a C++ comment '// A' vs '//A' -sp_cmt_cpp_start = ignore # ignore/add/remove/force - -# Controls the spaces between #else or #endif and a trailing comment -sp_endif_cmt = ignore # ignore/add/remove/force - -# -# Code alignment (not left column spaces/tabs) -# - -# Whether to keep non-indenting tabs -align_keep_tabs = false # false/true - -# Whether to use tabs for aligning -align_with_tabs = false # false/true - -# Whether to bump out to the next tab when aligning -align_on_tabstop = false # false/true - -# Whether to left-align numbers -align_number_left = false # false/true - -# Align variable definitions in prototypes and functions -align_func_params = false # false/true - -# Align parameters in single-line functions that have the same name. -# The function names must already be aligned with each other. -align_same_func_call_params = false # false/true - -# The span for aligning variable definitions (0=don't align) -align_var_def_span = 0 # number - -# How to align the star in variable definitions. -# 0=Part of the type 'void * foo;' -# 1=Part of the variable 'void *foo;' -# 2=Dangling 'void *foo;' -align_var_def_star_style = 0 # number - -# How to align the '&' in variable definitions. -# 0=Part of the type -# 1=Part of the variable -# 2=Dangling -align_var_def_amp_style = 0 # number - -# The threshold for aligning variable definitions (0=no limit) -align_var_def_thresh = 0 # number - -# The gap for aligning variable definitions -align_var_def_gap = 0 # number - -# Whether to align the colon in struct bit fields -align_var_def_colon = false # false/true - -# Whether to align any attribute after the variable name -align_var_def_attribute = false # false/true - -# Whether to align inline struct/enum/union variable definitions -align_var_def_inline = false # false/true - -# The span for aligning on '=' in assignments (0=don't align) -align_assign_span = 0 # number - -# The threshold for aligning on '=' in assignments (0=no limit) -align_assign_thresh = 0 # number - -# The span for aligning on '=' in enums (0=don't align) -align_enum_equ_span = 0 # number - -# The threshold for aligning on '=' in enums (0=no limit) -align_enum_equ_thresh = 0 # number - -# The span for aligning struct/union (0=don't align) -align_var_struct_span = 0 # number - -# The threshold for aligning struct/union member definitions (0=no limit) -align_var_struct_thresh = 0 # number - -# The gap for aligning struct/union member definitions -align_var_struct_gap = 0 # number - -# The span for aligning struct initializer values (0=don't align) -align_struct_init_span = 0 # number - -# The minimum space between the type and the synonym of a typedef -align_typedef_gap = 0 # number - -# The span for aligning single-line typedefs (0=don't align) -align_typedef_span = 0 # number - -# How to align typedef'd functions with other typedefs -# 0: Don't mix them at all -# 1: align the open paren with the types -# 2: align the function type name with the other type names -align_typedef_func = 0 # number - -# Controls the positioning of the '*' in typedefs. Just try it. -# 0: Align on typedef type, ignore '*' -# 1: The '*' is part of type name: typedef int *pint; -# 2: The '*' is part of the type, but dangling: typedef int *pint; -align_typedef_star_style = 0 # number - -# Controls the positioning of the '&' in typedefs. Just try it. -# 0: Align on typedef type, ignore '&' -# 1: The '&' is part of type name: typedef int &pint; -# 2: The '&' is part of the type, but dangling: typedef int &pint; -align_typedef_amp_style = 0 # number - -# The span for aligning comments that end lines (0=don't align) -#align_right_cmt_span = 0 # number #DEF -align_right_cmt_span = 1 # number #COOL - -# If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment -align_right_cmt_mix = false # false/true - -# If a trailing comment is more than this number of columns away from the text it follows, -# it will qualify for being aligned. -# NB Instabilities (back/forward, add/renove spaces) observed with 1 -# === COOL: 0 === -align_right_cmt_gap = 0 # number #DEF - -# Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore) -#align_right_cmt_at_col = 0 # number #DEF -align_right_cmt_at_col = 1 # number #COOL - -# The span for aligning function prototypes (0=don't align) -align_func_proto_span = 0 # number - -# Minimum gap between the return type and the function name. -align_func_proto_gap = 0 # number - -# Align function protos on the 'operator' keyword instead of what follows -align_on_operator = false # false/true - -# Whether to mix aligning prototype and variable declarations. -# If true, align_var_def_XXX options are used instead of align_func_proto_XXX options. -align_mix_var_proto = false # false/true - -# Align single-line functions with function prototypes, uses align_func_proto_span -align_single_line_func = false # false/true - -# Aligning the open brace of single-line functions. -# Requires align_single_line_func=true, uses align_func_proto_span -align_single_line_brace = false # false/true - -# Gap for align_single_line_brace. -align_single_line_brace_gap = 0 # number - -# The span for aligning ObjC msg spec (0=don't align) -align_oc_msg_spec_span = 0 # number - -# Whether to align macros wrapped with a backslash and a newline. -# This will not work right if the macro contains a multi-line comment. -align_nl_cont = false # false/true - -# The minimum space between label and value of a preprocessor define -align_pp_define_gap = 0 # number - -# The span for aligning on '#define' bodies (0=don't align) -align_pp_define_span = 0 # number - -# Align lines that start with '<<' with previous '<<'. Default=true -align_left_shift = true # false/true - -# Span for aligning parameters in an Obj-C message call on the ':' (0=don't align) -align_oc_msg_colon_span = 0 # number - -# -# Newline adding and removing options -# - -# Whether to collapse empty blocks between '{' and '}' -nl_collapse_empty_body = false # false/true - -# Don't split one-line braced assignments - 'foo_t f = { 1, 2 };' -#nl_assign_leave_one_liners = false # false/true #DEF -nl_assign_leave_one_liners = true # false/true #NOOP - -# Don't split one-line braced statements inside a class xx { } body -#nl_class_leave_one_liners = false # false/true #DEF -nl_class_leave_one_liners = true # false/true #NOOP - -# Don't split one-line enums: 'enum foo { BAR = 15 };' -#nl_enum_leave_one_liners = false # false/true #DEF -nl_enum_leave_one_liners = true # false/true #NOOP - -# Don't split one-line get or set functions -#nl_getset_leave_one_liners = false # false/true #DEF -nl_getset_leave_one_liners = true # false/true #NOOP - -# Don't split one-line function definitions - 'int foo() { return 0; }' -#nl_func_leave_one_liners = false # false/true #DEF -nl_func_leave_one_liners = true # false/true #NOOP - -# Don't split one-line if/else statements - 'if(a) b++;' -#nl_if_leave_one_liners = false # false/true #DEF -nl_if_leave_one_liners = true # false/true #NOOP - -# Add or remove newlines at the start of the file -nl_start_of_file = ignore # ignore/add/remove/force - -# The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force' -nl_start_of_file_min = 0 # number - -# Add or remove newline at the end of the file -# NB Instabilities (keep adding new spaces) observed with ignore -#nl_end_of_file = ignore # ignore/add/remove/force #DEF -nl_end_of_file = force # ignore/add/remove/force #COOL - -# The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force') -# NB Instabilities (keep adding new spaces) observed with 0 -#nl_end_of_file_min = 0 # number #DEF -nl_end_of_file_min = 1 # number #COOL - -# Add or remove newline between '=' and '{' -nl_assign_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '=' and '[' (D only) -nl_assign_square = ignore # ignore/add/remove/force - -# Add or remove newline after '= [' (D only). Will also affect the newline before the ']' -nl_after_square_assign = ignore # ignore/add/remove/force - -# The number of newlines after a block of variable definitions -nl_func_var_def_blk = 0 # number - -# Add or remove newline between a function call's ')' and '{', as in: -# list_for_each(item, &list) { } -nl_fcall_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'enum' and '{' -nl_enum_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'struct and '{' -nl_struct_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'union' and '{' -nl_union_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'if' and '{' -nl_if_brace = ignore # ignore/add/remove/force #DEF -#nl_if_brace = add # ignore/add/remove/force #COOL? - -# Add or remove newline between '}' and 'else' -nl_brace_else = ignore # ignore/add/remove/force #DEF -#nl_brace_else = add # ignore/add/remove/force #COOL? - -# Add or remove newline between 'else if' and '{' -# If set to ignore, nl_if_brace is used instead -nl_elseif_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'else' and '{' -nl_else_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'else' and 'if' -nl_else_if = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'finally' -nl_brace_finally = ignore # ignore/add/remove/force - -# Add or remove newline between 'finally' and '{' -nl_finally_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'try' and '{' -nl_try_brace = ignore # ignore/add/remove/force - -# Add or remove newline between get/set and '{' -nl_getset_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'for' and '{' -nl_for_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'catch' and '{' -nl_catch_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'catch' -nl_brace_catch = ignore # ignore/add/remove/force - -# Add or remove newline between 'while' and '{' -nl_while_brace = ignore # ignore/add/remove/force - -# Add or remove newline between two open or close braces. -# Due to general newline/brace handling, REMOVE may not work. -nl_brace_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'do' and '{' -nl_do_brace = ignore # ignore/add/remove/force - -# Add or remove newline between '}' and 'while' of 'do' statement -nl_brace_while = ignore # ignore/add/remove/force - -# Add or remove newline between 'switch' and '{' -nl_switch_brace = ignore # ignore/add/remove/force - -# Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc. -# Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace. -nl_multi_line_cond = false # false/true - -# Force a newline in a define after the macro name for multi-line defines. -nl_multi_line_define = false # false/true - -# Whether to put a newline before 'case' statement -nl_before_case = false # false/true - -# Add or remove newline between ')' and 'throw' -nl_before_throw = ignore # ignore/add/remove/force - -# Whether to put a newline after 'case' statement -nl_after_case = false # false/true - -# Newline between namespace and { -nl_namespace_brace = ignore # ignore/add/remove/force - -# Add or remove newline between 'template<>' and whatever follows. -nl_template_class = ignore # ignore/add/remove/force - -# Add or remove newline between 'class' and '{' -nl_class_brace = ignore # ignore/add/remove/force - -# Add or remove newline after each ',' in the constructor member initialization -nl_class_init_args = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name in a function definition -nl_func_type_name = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name inside a class {} -# Uses nl_func_type_name or nl_func_proto_type_name if set to ignore. -nl_func_type_name_class = ignore # ignore/add/remove/force - -# Add or remove newline between function scope and name in a definition -# Controls the newline after '::' in 'void A::f() { }' -nl_func_scope_name = ignore # ignore/add/remove/force - -# Add or remove newline between return type and function name in a prototype -nl_func_proto_type_name = ignore # ignore/add/remove/force - -# Add or remove newline between a function name and the opening '(' -nl_func_paren = ignore # ignore/add/remove/force - -# Add or remove newline after '(' in a function declaration -nl_func_decl_start = ignore # ignore/add/remove/force - -# Overrides nl_func_decl_start when there is only one paramter. -nl_func_decl_start_single = ignore # ignore/add/remove/force - -# Add or remove newline after each ',' in a function declaration -nl_func_decl_args = ignore # ignore/add/remove/force - -# Add or remove newline before the ')' in a function declaration -nl_func_decl_end = ignore # ignore/add/remove/force - -# Overrides nl_func_decl_end when there is only one paramter. -nl_func_decl_end_single = ignore # ignore/add/remove/force - -# Add or remove newline between '()' in a function declaration. -nl_func_decl_empty = ignore # ignore/add/remove/force - -# Add or remove newline between function signature and '{' -nl_fdef_brace = ignore # ignore/add/remove/force - -# Whether to put a newline after 'return' statement -nl_after_return = false # false/true - -# Add or remove a newline between the return keyword and return expression. -nl_return_expr = ignore # ignore/add/remove/force - -# Whether to put a newline after semicolons, except in 'for' statements -nl_after_semicolon = false # false/true - -# Whether to put a newline after brace open. -# This also adds a newline before the matching brace close. -nl_after_brace_open = false # false/true - -# If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is -# placed between the open brace and a trailing single-line comment. -nl_after_brace_open_cmt = false # false/true - -# Whether to put a newline after a virtual brace open with a non-empty body. -# These occur in un-braced if/while/do/for statement bodies. -nl_after_vbrace_open = false # false/true - -# Whether to put a newline after a virtual brace open with an empty body. -# These occur in un-braced if/while/do/for statement bodies. -nl_after_vbrace_open_empty = false # false/true - -# Whether to put a newline after a brace close. -# Does not apply if followed by a necessary ';'. -nl_after_brace_close = false # false/true - -# Whether to alter newlines in '#define' macros -nl_define_macro = false # false/true - -# Whether to not put blanks after '#ifxx', '#elxx', or before '#endif' -nl_squeeze_ifdef = false # false/true - -# Add or remove newline before 'if' -nl_before_if = ignore # ignore/add/remove/force - -# Add or remove newline after 'if' -nl_after_if = ignore # ignore/add/remove/force - -# Add or remove newline before 'for' -nl_before_for = ignore # ignore/add/remove/force - -# Add or remove newline after 'for' -nl_after_for = ignore # ignore/add/remove/force - -# Add or remove newline before 'while' -nl_before_while = ignore # ignore/add/remove/force - -# Add or remove newline after 'while' -nl_after_while = ignore # ignore/add/remove/force - -# Add or remove newline before 'switch' -nl_before_switch = ignore # ignore/add/remove/force - -# Add or remove newline after 'switch' -nl_after_switch = ignore # ignore/add/remove/force - -# Add or remove newline before 'do' -nl_before_do = ignore # ignore/add/remove/force - -# Add or remove newline after 'do' -nl_after_do = ignore # ignore/add/remove/force - -# Whether to double-space commented-entries in struct/enum -nl_ds_struct_enum_cmt = false # false/true - -# Whether to double-space before the close brace of a struct/union/enum -nl_ds_struct_enum_close_brace = false # false/true - -# Add or remove a newline around a class colon. -# Related to pos_class_colon, nl_class_init_args, and pos_comma. -nl_class_colon = ignore # ignore/add/remove/force - -# Change simple unbraced if statements into a one-liner -# 'if(b)\n i++;' => 'if(b) i++;' -nl_create_if_one_liner = false # false/true - -# Change simple unbraced for statements into a one-liner -# 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);' -nl_create_for_one_liner = false # false/true - -# Change simple unbraced while statements into a one-liner -# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);' -nl_create_while_one_liner = false # false/true - -# -# Positioning options -# - -# The position of arithmetic operators in wrapped expressions -pos_arith = ignore # ignore/lead/trail - -# The position of assignment in wrapped expressions. -# Do not affect '=' followed by '{' -pos_assign = ignore # ignore/lead/trail #DEF -#pos_assign = trail # ignore/lead/trail #COOL? - -# The position of boolean operators in wrapped expressions -pos_bool = ignore # ignore/lead/trail - -# The position of comparison operators in wrapped expressions -pos_compare = ignore # ignore/lead/trail - -# The position of conditional (b ? t : f) operators in wrapped expressions -pos_conditional = ignore # ignore/lead/trail - -# The position of the comma in wrapped expressions -pos_comma = ignore # ignore/lead/trail #DEF -#pos_comma = trail # ignore/lead/trail #COOL? - -# The position of the comma in the constructor initialization list -# BUG! The one above is used also in this case... :-( -pos_class_comma = ignore # ignore/lead/trail #DEF -#pos_class_comma = lead # ignore/lead/trail #COOL? - -# The position of colons between constructor and member initialization -pos_class_colon = ignore # ignore/lead/trail #DEF -#pos_class_colon = lead # ignore/lead/trail #COOL? - -# -# Line Splitting options -# - -# Try to limit code width to N number of columns -code_width = 0 # number #DEF -#code_width = 132 # number #COOL? - -# Whether to fully split long 'for' statements at semi-colons -ls_for_split_full = false # false/true - -# Whether to fully split long function protos/calls at commas -ls_func_split_full = false # false/true - -# -# Blank line options -# - -# The maximum consecutive newlines -nl_max = 0 # number - -# The number of newlines after a function prototype, if followed by another function prototype -nl_after_func_proto = 0 # number - -# The number of newlines after a function prototype, if not followed by another function prototype -nl_after_func_proto_group = 0 # number - -# The number of newlines after '}' of a multi-line function body -nl_after_func_body = 0 # number - -# The number of newlines after '}' of a single line function body -nl_after_func_body_one_liner = 0 # number - -# The minimum number of newlines before a multi-line comment. -# Doesn't apply if after a brace open or another multi-line comment. -nl_before_block_comment = 0 # number - -# The minimum number of newlines before a single-line C comment. -# Doesn't apply if after a brace open or other single-line C comments. -nl_before_c_comment = 0 # number - -# The minimum number of newlines before a CPP comment. -# Doesn't apply if after a brace open or other CPP comments. -nl_before_cpp_comment = 0 # number - -# Whether to force a newline after a mulit-line comment. -nl_after_multiline_comment = false # false/true - -# The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. -# Will not change the newline count if after a brace open. -# 0 = No change. -nl_before_access_spec = 0 # number - -# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. -# 0 = No change. -nl_after_access_spec = 0 # number - -# The number of newlines between a function def and the function comment. -# 0 = No change. -nl_comment_func_def = 0 # number - -# The number of newlines after a try-catch-finally block that isn't followed by a brace close. -# 0 = No change. -nl_after_try_catch_finally = 0 # number - -# The number of newlines before and after a property, indexer or event decl. -# 0 = No change. -nl_around_cs_property = 0 # number - -# The number of newlines between the get/set/add/remove handlers in C#. -# 0 = No change. -nl_between_get_set = 0 # number - -# Whether to remove blank lines after '{' -eat_blanks_after_open_brace = false # false/true - -# Whether to remove blank lines before '}' -eat_blanks_before_close_brace = false # false/true - -# -# Code modifying options (non-whitespace) -# - -# Add or remove braces on single-line 'do' statement -mod_full_brace_do = ignore # ignore/add/remove/force - -# Add or remove braces on single-line 'for' statement -mod_full_brace_for = ignore # ignore/add/remove/force - -# Add or remove braces on single-line function definitions. (Pawn) -mod_full_brace_function = ignore # ignore/add/remove/force - -# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'. -mod_full_brace_if = ignore # ignore/add/remove/force #DEF -#mod_full_brace_if = remove # ignore/add/remove/force #COOL? - -# Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if. -# If any must be braced, they are all braced. If all can be unbraced, then the braces are removed. -# BUG! Unncessary brace is added if body is one single split line -mod_full_brace_if_chain = false # false/true #DEF -#mod_full_brace_if_chain = true # false/true #COOL? - -# Don't remove braces around statements that span N newlines -mod_full_brace_nl = 0 # number - -# Add or remove braces on single-line 'while' statement -mod_full_brace_while = ignore # ignore/add/remove/force - -# Add or remove unnecessary paren on 'return' statement -mod_paren_on_return = ignore # ignore/add/remove/force - -# Whether to change optional semicolons to real semicolons -mod_pawn_semicolon = false # false/true - -# Add parens on 'while' and 'if' statement around bools -mod_full_paren_if_bool = false # false/true - -# Whether to remove superfluous semicolons -mod_remove_extra_semicolon = false # false/true #DEF -#mod_remove_extra_semicolon = true # false/true #COOL? - -# If a function body exceeds the specified number of newlines and doesn't have a comment after -# the close brace, a comment will be added. -mod_add_long_function_closebrace_comment = 0 # number - -# If a switch body exceeds the specified number of newlines and doesn't have a comment after -# the close brace, a comment will be added. -mod_add_long_switch_closebrace_comment = 0 # number - -# If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after -# the #else, a comment will be added. -mod_add_long_ifdef_endif_comment = 0 # number - -# If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after -# the #endif, a comment will be added. -mod_add_long_ifdef_else_comment = 0 # number - -# If TRUE, will sort consecutive single-line 'import' statements [Java, D] -mod_sort_import = false # false/true - -# If TRUE, will sort consecutive single-line 'using' statements [C#] -mod_sort_using = false # false/true - -# If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C] -# This is generally a bad idea, as it may break your code. -mod_sort_include = false # false/true - -# If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace. -mod_move_case_break = false # false/true - -# Will add or remove the braces around a fully braced case statement. -# Will only remove the braces if there are no variable declarations in the block. -mod_case_brace = ignore # ignore/add/remove/force - -# If TRUE, it will remove a void 'return;' that appears as the last statement in a function. -mod_remove_empty_return = false # false/true - -# -# Comment modifications -# - -# Try to wrap comments at cmt_width columns -cmt_width = 0 # number - -# Set the comment reflow mode (default: 0) -# 0: no reflowing (apart from the line wrapping due to cmt_width) -# 1: no touching at all -# 2: full reflow -cmt_reflow_mode = 0 # number - -# If false, disable all multi-line comment changes, including cmt_width and leading chars. -# Default is true. -#cmt_indent_multi = true # false/true #DEF -cmt_indent_multi = false # false/true #NOOP - -# Whether to group c-comments that look like they are in a block -cmt_c_group = false # false/true - -# Whether to put an empty '/*' on the first line of the combined c-comment -cmt_c_nl_start = false # false/true - -# Whether to put a newline before the closing '*/' of the combined c-comment -cmt_c_nl_end = false # false/true - -# Whether to group cpp-comments that look like they are in a block -cmt_cpp_group = false # false/true - -# Whether to put an empty '/*' on the first line of the combined cpp-comment -cmt_cpp_nl_start = false # false/true - -# Whether to put a newline before the closing '*/' of the combined cpp-comment -cmt_cpp_nl_end = false # false/true - -# Whether to change cpp-comments into c-comments -cmt_cpp_to_c = false # false/true - -# Whether to put a star on subsequent comment lines -cmt_star_cont = false # false/true - -# The number of spaces to insert at the start of subsequent comment lines -cmt_sp_before_star_cont = 0 # number - -# The number of spaces to insert after the star on subsequent comment lines -cmt_sp_after_star_cont = 0 # number - -# For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of -# the comment are the same length. Default=True -cmt_multi_check_last = true # false/true - -# The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment. -# Will substitute $(filename) with the current file's name. -cmt_insert_file_header = "" # string - -# The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment. -# Will substitute $(filename) with the current file's name. -cmt_insert_file_footer = "" # string - -# The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment. -# Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff. -# Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... } -cmt_insert_func_header = "" # string - -# The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment. -# Will substitute $(class) with the class name. -cmt_insert_class_header = "" # string - -# If a preprocessor is encountered when stepping backwards from a function name, then -# this option decides whether the comment should be inserted. -# Affects cmt_insert_func_header and cmt_insert_class_header. -cmt_insert_before_preproc = false # false/true - -# -# Preprocessor options -# - -# Control indent of preprocessors inside #if blocks at brace level 0 -pp_indent = ignore # ignore/add/remove/force - -# Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false) -pp_indent_at_level = false # false/true - -# If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1. -pp_indent_count = 1 # number - -# Add or remove space after # based on pp_level of #if blocks -pp_space = ignore # ignore/add/remove/force - -# Sets the number of spaces added with pp_space -pp_space_count = 0 # number - -# The indent for #region and #endregion in C# and '#pragma region' in C/C++ -pp_indent_region = 0 # number - -# Whether to indent the code between #region and #endregion -pp_region_indent_code = false # false/true - -# If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level -pp_indent_if = 0 # number - -# Control whether to indent the code between #if, #else and #endif when not at file-level -pp_if_indent_code = false # false/true - -# Whether to indent '#define' at the brace level (true) or from column 1 (false) -pp_define_at_level = false # false/true - -# You can force a token to be a type with the 'type' option. -# Example: -# type myfoo1 myfoo2 -# -# You can create custom macro-based indentation using macro-open, -# macro-else and macro-close. -# Example: -# macro-open BEGIN_TEMPLATE_MESSAGE_MAP -# macro-open BEGIN_MESSAGE_MAP -# macro-close END_MESSAGE_MAP -# -# You can assign any keyword to any type with the set option. -# set func_call_user _ N_ -# -# The full syntax description of all custom definition config entries -# is shown below: -# -# define custom tokens as: -# - embed whitespace in token using '' escape character, or -# put token in quotes -# - these: ' " and ` are recognized as quote delimiters -# -# type token1 token2 token3 ... -# ^ optionally specify multiple tokens on a single line -# define def_token output_token -# ^ output_token is optional, then NULL is assumed -# macro-open token -# macro-close token -# macro-else token -# set id token1 token2 ... -# ^ optionally specify multiple tokens on a single line -# ^ id is one of the names in token_enum.h sans the CT_ prefix, -# e.g. PP_PRAGMA -# -# all tokens are separated by any mix of ',' commas, '=' equal signs -# and whitespace (space, tab) -# diff --git a/src/config/cmt/coolInstallCoral.csh b/src/config/cmt/coolInstallCoral.csh deleted file mode 100755 index ea70ce68f8d76c9f654ccd10028ce7188d318c29..0000000000000000000000000000000000000000 --- a/src/config/cmt/coolInstallCoral.csh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/csh -f - -echo "coolInstallCoral.csh - You must comment out this line!"; exit 1 - -set ScriptDir=`dirname $0` -set ScriptDir=`cd $ScriptDir; pwd` -echo $ScriptDir -cd $ScriptDir -source CMT_env.csh - -setenv CoralDir CORAL_2_2_0 -setenv CoralCVS HEAD -setenv CoolCVS HEAD - -# Quiet CVS? -#setenv quiet "-Q" -setenv quiet "" - -# -# NB The "/CORAL/" path must always be present if you use this via CMT -# - -#setenv theInstall /afs/cern.ch/sw/lcg/app/releases/COOL/internal/CORAL -setenv theInstall /afs/cern.ch/sw/lcg/app/releases/COOL/internal/avalassi/CORAL - -# Create an empty CORAL project -rm -rf $theInstall/$CoralDir -mkdir -p $theInstall/$CoralDir/src - -# Change the AFS ACL for the private CORAL installation -cd $theInstall -find $CoralDir -type d -exec fs setacl -acl avalassi:cooldev rl \ - -acl lcgapp:coraldev rl -acl lcgapp:coraldev rl -dir {} \; - -# Link the private CORAL installation under myLCG and/or as HEAD -rm -rf ~/myLCG/$CoralDir -if ( "$CoralCVS" == "HEAD" ) then - \rm -rf $theInstall/CORAL_HEAD - ###ln -sf $theInstall/$CoralDir $theInstall/CORAL_HEAD # NO! Confusing backup - ln -sf $CoralDir $theInstall/CORAL_HEAD - ln -sf $theInstall/CORAL_HEAD ~/myLCG -else - ln -sf $theInstall/$CoralDir ~/myLCG -endif - -# Download the CORAL sources -cd $theInstall/$CoralDir -###setenv CVSROOT :pserver:anonymous@coral.cvs.cern.ch:/cvs/coral -setenv CVSROOT :gserver:coral.cvs.cern.ch:/cvs/coral -cvs $quiet co -r $CoralCVS -d src coral.release - -# Download the CORAL config -cd $theInstall/$CoralDir/src -cvs $quiet co -r $CoralCVS cmt -cvs $quiet co -r $CoralCVS config/cmt -cvs $quiet co -r $CoralCVS config/qmtest - -# Delete tests to speed up the build -###\rm -rf $theInstall/$CoralDir/src/*/tests - -# Succcessful installation -echo CORAL installed in $theInstall/$CoralDir - diff --git a/src/config/cmt/disableRootSignalHandler.csh b/src/config/cmt/disableRootSignalHandler.csh deleted file mode 100644 index e0fc458528ef53223c3df59856b5469b7aee6beb..0000000000000000000000000000000000000000 --- a/src/config/cmt/disableRootSignalHandler.csh +++ /dev/null @@ -1,5 +0,0 @@ -unsetenv LD_PRELOAD -unsetenv ROOTSYS -source setup.csh - - diff --git a/src/config/cmt/enableRootSignalHandler.csh b/src/config/cmt/enableRootSignalHandler.csh deleted file mode 100644 index d8aafbdb9706b31fd3ffc9132c4e6745900dbce4..0000000000000000000000000000000000000000 --- a/src/config/cmt/enableRootSignalHandler.csh +++ /dev/null @@ -1,6 +0,0 @@ -source setup.csh -setenv LD_LIBRARY_PATH_OLD $LD_LIBRARY_PATH -setenv ROOTSYS `cmt -use=ROOT:'v*':LCG_Interfaces show set_value ROOTSYS` -setenv LD_LIBRARY_PATH $ROOTSYS/lib:$LD_LIBRARY_PATH -setenv LD_PRELOAD libCore.so:libdl.so - diff --git a/src/config/cmt/requirements b/src/config/cmt/requirements deleted file mode 100755 index 5e8e116494c2f7bc04ad7aa95104f86d556435b5..0000000000000000000000000000000000000000 --- a/src/config/cmt/requirements +++ /dev/null @@ -1,83 +0,0 @@ -package COOL - -# Define CMTINSTALLAREA correctly -use LCG_Policy v* - -#============================================================================ -# Project components -#============================================================================ - -use CoolKernel v* -use CoolApplication v* -use RelationalCool v* - -macro select_pycool "PyCool v*" target-mac "" -use $(select_pycool) - -use PyCoolUtilities v* - -use Examples v* - -use CoolDBDiscovery v* Utilities - -macro select_ace "ACE v* Utilities" target-mac "" -use $(select_ace) - -# These two tools are no longer supported (bug #95364) -###use CoolMiniClient v* Utilities -###use VerificationClient v* Utilities - -include_path none - -#============================================================================ -# Private dependencies, build rules and runtime -#============================================================================ - -private - -#---------------------------------------------------------------------------- -# COOL test runtime -#---------------------------------------------------------------------------- - -use CoolTest v* - -#---------------------------------------------------------------------------- -# Actions and build rules - install setup -#---------------------------------------------------------------------------- - -macro ProjectTest CoolTest -macro ProjectTest_cmtpath $(CoolTest_cmtpath) - -macro cpdproption "-dpr" host-darwin "-pPR" -action install_cmt "if [ ! -d $(CMTINSTALLAREA)/$(tag)/cmt ]; then mkdir -p $(CMTINSTALLAREA)/$(tag)/cmt; cat $(config_cmtpath)/cmt/project.cmt | sed 's/use LCGCMT .*/use LCGCMT $(LCGCMT_config_version)/' > $(CMTINSTALLAREA)/$(tag)/cmt/project.cmt; fi" -action install_ProjectTest "if [ ! -d $(CMTINSTALLAREA)/$(tag)/$(ProjectTest) ]; then mkdir -p $(CMTINSTALLAREA)/$(tag); \cp $(cpdproption) $(ProjectTest_cmtpath)/$(ProjectTest) $(CMTINSTALLAREA)/$(tag)/$(ProjectTest); fi" -macro setupdir $(CMTINSTALLAREA)/$(tag)/bin -macro setupcsh $(setupdir)/setup$(config_project).csh -macro setupsh $(setupdir)/setup$(config_project).sh -action install_setup_scripts "mkdir -p $(setupdir); \rm -f $(setupcsh) $(setupsh); echo setenv CMTCONFIG $(tag) > $(setupcsh); echo export CMTCONFIG=$(tag) > $(setupsh); cat _setup.csh >> $(setupcsh); cat _setup.sh >> $(setupsh)" - -# Append to 'constituents' to execute an action in 'cmt make' -# (append to 'all_constituents' to execute it only in 'cmt make all'). -# Remove the action from cmt_actions_constituents so that the action -# is not executed twice in 'cmt make all_groups' (it executes all actions). -macro_append constituents "install_setup_scripts install_cmt install_ProjectTest" -macro_remove cmt_actions_constituents "install_setup_scripts install_cmt install_ProjectTest" - -#---------------------------------------------------------------------------- -# Actions and build rules - tests, utilities and examples -#---------------------------------------------------------------------------- - -# Fake target for tests -action tests "echo No tests in this package" -macro_remove cmt_actions_constituents "tests" - -# Fake target for utilities -action utilities "echo No utilities in this package" -macro_remove cmt_actions_constituents "utilities" - -# Fake target for examples -action examples "echo No examples in this package" -macro_remove cmt_actions_constituents "examples" - -#============================================================================ - diff --git a/src/config/cmt/sedDotCernDotCh.csh b/src/config/cmt/sedDotCernDotCh.csh deleted file mode 100755 index 7b220980a54ad72e7d82a6eb8f25a315ba99ec19..0000000000000000000000000000000000000000 --- a/src/config/cmt/sedDotCernDotCh.csh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/csh -f -foreach file ( cleanup.csh cleanup.sh setup.csh setup.sh ) - cat ${file} | sed 's/\.cern/cern/' > ${file}.new - \mv ${file}.new ${file} -end diff --git a/src/config/cmt/sedEnum.sh b/src/config/cmt/sedEnum.sh deleted file mode 100755 index 9fd6e91fe44c52b3826db1eac76073866ce91f62..0000000000000000000000000000000000000000 --- a/src/config/cmt/sedEnum.sh +++ /dev/null @@ -1,46 +0,0 @@ -#! /bin/bash -if [ "$1" == "" ]; then - echo "Usage: $0 files" - exit 1 -fi - -echo "$*" - -for file in $*; do - if [ "$file" != "" ]; then - echo "$file" - if [ -e "$file" ]; then - cat ${file} \ - | sed 's|ChannelSelection::sinceB|ChannelSelection::Order::sinceB|g'\ - | sed 's|ChannelSelection::channelB|ChannelSelection::Order::channelB|g'\ - | sed 's|StorageType::B|StorageType::TypeId::B|g'\ - | sed 's|StorageType::C|StorageType::TypeId::C|g'\ - | sed 's|StorageType::D|StorageType::TypeId::D|g'\ - | sed 's|StorageType::F|StorageType::TypeId::F|g'\ - | sed 's|StorageType::I|StorageType::TypeId::I|g'\ - | sed 's|StorageType::S|StorageType::TypeId::S|g'\ - | sed 's|StorageType::U|StorageType::TypeId::U|g'\ - | sed 's|FolderVersioning::NONE|FolderVersioning::Mode::NONE|g'\ - | sed 's|FolderVersioning::MULTI|FolderVersioning::Mode::MULTI|g'\ - | sed 's|FolderVersioning::SINGLE|FolderVersioning::Mode::SINGLE|g'\ - | sed 's|HvsTagLock::L|HvsTagLock::Status::L|g'\ - | sed 's|HvsTagLock::P|HvsTagLock::Status::P|g'\ - | sed 's|HvsTagLock::U|HvsTagLock::Status::U|g'\ - | sed 's|PayloadMode::I|PayloadMode::Mode::I|g'\ - | sed 's|PayloadMode::S|PayloadMode::Mode::S|g'\ - | sed 's|PayloadMode::V|PayloadMode::Mode::V|g'\ - | sed 's|FieldSelection::NE|FieldSelection::Relation::NE|g'\ - | sed 's|FieldSelection::EQ|FieldSelection::Relation::EQ|g'\ - | sed 's|FieldSelection::G|FieldSelection::Relation::G|g'\ - | sed 's|FieldSelection::L|FieldSelection::Relation::L|g'\ - | sed 's|FieldSelection::IS|FieldSelection::Nullness::IS|g'\ - | sed 's|CompositeSelection::A|CompositeSelection::Connective::A|g'\ - | sed 's|CompositeSelection::O|CompositeSelection::Connective::O|g'\ - | sed 's|IHvsNode::I|IHvsNode::Type::I|g'\ - | sed 's|IHvsNode::L|IHvsNode::Type::L|g'\ - > ${file}.new - \mv ${file}.new ${file} - fi - fi -done - diff --git a/src/config/cmt/sedGcc43.csh b/src/config/cmt/sedGcc43.csh deleted file mode 100755 index 6c707955160d6fea953cead60c1bc2d2fd750c2a..0000000000000000000000000000000000000000 --- a/src/config/cmt/sedGcc43.csh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/csh -f -if ( "$1" == "" ) then - echo "Usage: $0 directory" - exit 1 -endif -if ( ! -d "$1" ) then - echo "ERROR! Directory $1 does not exist!" - exit 1 -endif -cd $1 - -# Exceptions to handle individually in CoolKernel -# (all these exception should not be modified, unless otherwise stated): -# - types.h has 'const UInt32 Uint32Min' -# - SealBaseTime.h has 'static const int XXX' -# - ChannelSelection.h has 'const Order&' and 'const int&' -# - Exception.h has 'const ChannelId&' -###set files=`ls *.h *.cpp | grep -v types.h | grep -v ChannelSelection.h | grep -v SealBaseTime.h | grep -v Exception.h` - -# Exceptions to handle individually in RelationalCool -# (all these exception should not be modified, unless otherwise stated): -# - ConstRelationalObjectAdapter.h has 'const unsigned int& m_objectId;' -# - ObjectId.h has 'const int XXX' -# - ProcMemory.h has 'const int XXX' -# - RelationalObjectTable.cpp has 'const int XXX' that is referenced -# - RelationalSequence.h has 'static const int XXX' -# - SealBase_TimeInfo.h/cpp have 'static const int XXX' -# - SealUtil_TimingItem.h has 'static const int XXX' -###set files=`ls *.h *.cpp | grep -v SealUtil_TimingItem.h` -set files=`ls *.h *.cpp | grep -v SealBase_TimeInfo | grep -v SealUtil_TimingItem.h | grep -v ConstRelationalObjectAdapter.h | grep -v RelationalSequence.h | grep -v RelationalObjectTable.cpp | grep -v ObjectId.h | grep -v ProcMemory.h` - -# Exceptions to handle individually: -# -> 'const bool&' should not become 'bool &' -# -> should remove 'const' in 'const bool' that are split over two lines -foreach file ( $files ) - if ( -e $file ) then - cat ${file} \ - | sed 's/const bool/bool/' \ - | sed 's/const int/int/' \ - | sed 's/const unsigned int\*/INTSTAR/' \ - | sed 's/const unsigned int\&/INTREF/' \ - | sed 's/const unsigned/unsigned/' \ - | sed 's/INTSTAR/const unsigned int\*/' \ - | sed 's/INTREF/const unsigned int\&/' \ - | sed 's/const long/long/' \ - | sed 's/const size_t/size_t/' \ - | sed 's/const UInt32/UInt32/' \ - | sed 's/const ChannelId\&/const __CHANNELIDREF__/' \ - | sed 's/const ChannelIdVal/const __CHANNELIDVAL__/' \ - | sed 's/const ChannelId/ChannelId/' \ - | sed 's/const __CHANNELIDREF__/const ChannelId\&/' \ - | sed 's/const __CHANNELIDVAL__/const ChannelIdVal/' \ - | sed 's/const ObjectId\&/const __OBJECTIDREF__/' \ - | sed 's/const ObjectIdIncr/const __OBJECTIDINCR__/' \ - | sed 's/const ObjectId/ObjectId/' \ - | sed 's/const __OBJECTIDREF__/const ObjectId\&/' \ - | sed 's/const __OBJECTIDINCR__/const ObjectIdIncr/' \ - | sed 's/const FolderVersioning::Mode/FolderVersioning::Mode/' \ - | sed 's/const HvsTagLock::Status/HvsTagLock::Status/' \ - | sed 's/const IHvsNode::Type/IHvsNode::Type/' \ - | sed 's/const MSG::Level/MSG::Level/' \ - | sed 's/const Order/Order/' \ - | sed 's/const Nullness/Nullness/' \ - | sed 's/const FieldSelection::Nullness/FieldSelection::Nullness/' \ - | sed 's/const Relational/const RELATIONAL/' \ - | sed 's/const Relation/Relation/' \ - | sed 's/const RELATIONAL/const Relational/' \ - | sed 's/const FieldSelection::Relation/FieldSelection::Relation/' \ - | sed 's/const Connective/Connective/' \ - | sed 's/const CompositeSelection::Connective/CompositeSelection::Connective/' \ - > ${file}.new - \mv ${file}.new ${file} - endif -end diff --git a/src/config/cmt/usecvmfsLHCb b/src/config/cmt/usecvmfsLHCb deleted file mode 100644 index a57cb4ad5eefe07247b616d2cf75a4ce2e188f0f..0000000000000000000000000000000000000000 --- a/src/config/cmt/usecvmfsLHCb +++ /dev/null @@ -1 +0,0 @@ -lhcb diff --git a/src/config/cmt/usecvmfsOPT b/src/config/cmt/usecvmfsOPT deleted file mode 100644 index d6eba11ae183a971fb2d2fdc9894a7b7beb7c5cf..0000000000000000000000000000000000000000 --- a/src/config/cmt/usecvmfsOPT +++ /dev/null @@ -1 +0,0 @@ -opt diff --git a/src/config/cmt/usecvmfsSFT b/src/config/cmt/usecvmfsSFT deleted file mode 100644 index 393fce7009506b1095dbc906acaa327f7e2ce3c9..0000000000000000000000000000000000000000 --- a/src/config/cmt/usecvmfsSFT +++ /dev/null @@ -1 +0,0 @@ -sft diff --git a/src/config/cmt/version.cmt b/src/config/cmt/version.cmt deleted file mode 100644 index 626799f0f85326a8c1fc522db584e86cdfccd51f..0000000000000000000000000000000000000000 --- a/src/config/cmt/version.cmt +++ /dev/null @@ -1 +0,0 @@ -v1