Topic: Find "Deprecated" C++ Automatically
Author: "Support" <pat@abxsoft.com>
Date: 1999/10/27 Raw View
We have created a sample application that implements the 'Kalev' suggestions
for Deprecated C++,
***
FTP directory /deprec/ at ftp.abraxas-software.com
----------------------------------------------------------------------------
----
Up to higher level directory
10/25/99 10:56PM 209,111 deprec.ZIP
10/25/99 10:57PM 1,229 deprec.txt
**
// Deprecated C++ Features per Danny Kalev "The Ansi/Iso C++ Handbook" [QUE]
// as referenced from the 9xC++ ANSI/ISO Standard @ www.ansi.org
// 1 - the use of bool with a postfix operator '++' is deprecated
// 2 - the use of 'static' in file space is deprecated
// 3 - the modification of a baseclass by a derived class is deprecated
// 4 - implicit conversion of const "string" to non-const is deprecated
// 5 - header suffix [.h] is deprecated & prefix must begin with 'c'
// 6 - implicit 'int' is deprecated, typename must be explicit
// 7 - old fashion style casting may be deprecated in future
// 8 - typedef "bool" or "BOOL" has been deprecated, use new intrinsic type
'bool
****
>ccd -k4 4.cpp
Abraxas Software (R) CodeCheck NT version 8.03 B4 DEMO
Copyright (c) 1988-99 by Abraxas Software, Inc. All rights reserved.
Checking C++ file 4.c with rules from deprec.cc[default.cco]:
4.c(1): Warning W0004: implicit conversion of const "string" to non-const is
deprecated
File 4.c check complete.
**
Test case 4.cpp has code example from Rule Four above [4],
Note -k4 switch is used to indicate emulation of microsoft C++, see ccd<cr>
for list of other compiler emulations,
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]