File: CheckForOutdatedDefines.sh

package info (click to toggle)
insighttoolkit5 5.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704,404 kB
  • sloc: cpp: 783,697; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 461; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (27 lines) | stat: -rwxr-xr-x 862 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# \author Hans J. Johnson
#
# This script simply checks a codebase for pre-processor
# macros that have been deprecated since ITKv5.
#
# This is intended to assist developers with
# cleaning up and removing conditional code
# that now consistently set.


for oudatedvalue in \
ITK_HAS_CXX11_STATIC_ASSERT \
ITK_HAS_CPP11_ALIGNAS \
ITK_HAS_CPP11_TYPETRAITS \
ITK_HAS_CXX11_RVREF \
ITK_HAS_STD_COPY_N \
ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_TEMPLATE_ARGUMENTS \
ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_EMPTY_BRACKETS \
ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_NULL_STRING \
ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT \
ITK_HAS_STLTR1_TR1_TYPE_TRAITS \
ITK_HAS_STLTR1_TYPE_TRAITS \
; do
  echo "FOUND OUTDATED CONDITIONAL ${oudatedvalue} in:======================================="
  git grep -l ${oudatedvalue} |fgrep -v  ITKv5Preparation
done