Candidate_v1.6.1
Last change
on this file was 9eb71b3, checked in by Frederik Heber <frederik.heber@…>, 8 years ago |
Commented out MemDebug include and Memory::ignore.
- MemDebug clashes with various allocation operators that use a specific
placement in memory. It is so far not possible to wrap new/delete fully.
Hence, we stop this effort which so far has forced us to put ever more
includes (with clashes) into MemDebug and thereby bloat compilation time.
- MemDebug does not add that much usefulness which is not also provided by
valgrind.
|
-
Property mode
set to
100644
|
File size:
757 bytes
|
Line | |
---|
1 | AT_SETUP([Checking for present, deactivated MemDebug.hpp include])
|
---|
2 | AT_KEYWORDS([CodeCheck MemDebug])
|
---|
3 | ok=""
|
---|
4 | echo `pwd`
|
---|
5 | echo "${#ok[*]} are ok to not contain MemDebug.hpp: ${ok[0]} ${ok[1]}."
|
---|
6 | liste=`find ${abs_top_srcdir}/src -name '*.cpp'`
|
---|
7 | for file in $liste
|
---|
8 | do
|
---|
9 | # check whether its one of the excluded ones
|
---|
10 | found=0
|
---|
11 | for item in $ok
|
---|
12 | do
|
---|
13 | if test "$item" == "`basename $file`"
|
---|
14 | then
|
---|
15 | found=1
|
---|
16 | break
|
---|
17 | fi
|
---|
18 | done
|
---|
19 | # if not, check whether it contains the include if its NOT a unit test
|
---|
20 | if test -z `echo $file | grep unittests`
|
---|
21 | then
|
---|
22 | if test $found -eq 0
|
---|
23 | then
|
---|
24 | AT_CHECK([egrep -q '^//#include.*MemDebug.hpp' $file], 0, [ignore], [ignore], [echo "Could not find MemDebug.hpp include in $file."])
|
---|
25 | fi
|
---|
26 | fi
|
---|
27 | done
|
---|
28 | AT_CLEANUP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.