|
Posted
almost 11 years
ago
by
Bassam Abdul-Baki
Unzipping this and running it without an install does not work on Win 7 32-bit OS. I've installed it at home on Win 10 64-bit OS and it works great. However, I do not have admin rights at work and in the past, I've had to unzip it and run it
... [More]
manually and it worked. I currently get the error message:
[Window Title]
...\cppcheck-1.70\cppcheckgui.exe
[Content]
The version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
[OK] [Less]
|
|
Posted
almost 11 years
ago
by
Daniel Marjamäki
Cppcheck-1.70 has been released
General changes:
- New version of .cfg file format, adding support for namespaces and declaring several functions at once
- Support building x64 installer for Windows; Both x64 and x86 builds are now provided
- Warn
... [More]
about deprecated options --suppressions and --exitcode-suppressions. They will be removed in future
- Added debugging option --debug-normal, which prints out debug output before second stage simplification
New checks:
- Warn about modifying string literals
- Detect declaration of variable length arrays with negative size
- Warn about implicit type conversion from int to long
- Warn about redundant code in conditions like (y || (!y && z))
- Detect conditions with known result
- Race condition: non-interlocked access after InterlockedDecrement()
- Detect unused 'goto' labels
Removed checks:
- Do no longer warn about a bug in scanf implementation of ancient glibc versions
- Multifile analysis (added in 1.69) has been removed because it did not work
- Removed ExecutionPath checker, which has been superseeded by ValueFlow analysis
Improvements:
- Support hexadecimal floating point numbers (C99)
- Support [[deprecated]] (C++14)
- Improved handling of sizeof()
- Improved handling of reserved keywords
- Better handling of C declaration specifiers; support complex/_Complex (C99)
- Better handling of ternary operator in ValueFlow analysis
- Lots of improvements to .cfg files, especially std.cfg, which now supports namespace std
- Improved performance and memory usage of Preprocessor
- Improved performance of matchcompiler
- Reduced Disk IO when ignoring paths
- Removed several obsolete simplifications
- Added python addons: naming.py, threadsafety.py and cert.py
GUI:
- Support printing
- Added item "Open containing folder" to context menu
Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved. [Less]
|
|
Posted
about 11 years
ago
by
Daniel Marjamäki
Cppcheck-1.69 has been released
General changes:
- Added flag --platform=native, when it is used type sizes and behaviour of host system are used
- Backward compatibility for Libary files is now working. Future cppcheck versions will be able to use
... [More]
libraries written for previous versions
- Windows 32 bit builds now set /LARGEADDRESSAWARE, so that they can use up to 4 GiB
New checks:
- Detect bad bitmask checks (usage of | where & should be used)
- Suggest usage of "explicit" for constructors with a single parameter
- Suggest usage of make_shared/make_unique
- Warn about usage of malloc with auto_ptr
- Detect redundant pointer operations like &*ptr
Improvements:
- Support std::array (C++11)
- Detect same expressions in both branches of a ternary operator
- New <container>-tags in libraries to configure STL (and similar) container types
- Several improvements to ValueFlow analysis (for example support for default function arguments)
- Improved buffer overrun and memory leak checking
- Removed a bunch of redundant checking code
- Removed several simplifications
- Stronger matching of library functions
- Lots of additions to std.cfg and posix.cfg
- New library for Microsoft SAL (microsoft_sal.cfg)
- Improved C++11 template parsing (">>" as closing brackets, variadic templates)
- Added statistics to htmlreport
GUI:
- Fixed language selection
Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved. [Less]
|
|
Posted
over 11 years
ago
by
Daniel Marjamäki
Cppcheck-1.68 has been released
General changes:
New checks:
- Multifile checking for buffer overruns and uninitialized variables
Improvements:
- Libraries are now able to contain platform specific types
- Improved handling of function overloads
-
... [More]
Improved handling of integer literal suffixes
- Improved stability of template parsing
- Improved accuracy of ValueFlow analysis
- Improved checking of pointer overflow
- Support noexcept(false)
- Support attribute((noreturn))
- A bunch of additions to several Libraries, especially posix.cfg and qt.cfg
Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved. [Less]
|
|
Posted
over 11 years
ago
by
Daniel Marjamäki
Cppcheck-1.67 has been released.
General changes:
- Library files have now a 'format' attribute. Format version 1 is assumed by default
- Cppcheck does no longer abort checking if unhandled characters (Non-ASCII) are found
New checks:
- Check for
... [More]
unused return values
- Detect shift by too many bits, signed integer overflow and dangerous sign conversion
- Recommend usage of expm1(), log1p(), erfc()
- Division by sizeof() as parameter to memset/memcpy/memmove/etc. as they expect a size in bytes
- Several new va_arg related checks:
-- Wrong parameter passed to va_start()
-- Reference passed to va_start()
-- Missing va_end()
-- Using va_list before it is opened
-- Subsequent calls to va_start/va_copy()
- Initialization by itself in initializer list
- Dead pointer usage when pointer alias local variable that has gone out of scope
Improvements:
- Support uniform initialization syntax (C++11)
- Much improvements to value flow analysis
- Improved AST creation (support placement new, C++-style casts, templates, operator new[], ...)
- Improved lambda support
- Support GCC extension attriute((used)) and MSVC extension __declspec(property)
- Better support for static member variables, inherited variables and namespaces
- Improved typedef support where multiple variables are declared at once
- Avoid checking code multiple times by calculating a checksum. Duplicate preprocessor configurations are eliminated by this.
- Support C++03/C 'auto' keyword
- HTML report: display 'verbose' message using clickable expandable divs
Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved. [Less]
|
|
Posted
almost 12 years
ago
by
Alexander Mai
See http://trac.cppcheck.net/wiki for instructions.
|
|
Posted
almost 12 years
ago
by
00bins
Hi
I'd like to contribute / submit a trac report but don't seem to be able to create an account - what do I need to do?
thanks
Rob
|
|
Posted
almost 12 years
ago
by
atulya
Thanks for Reply Bassam,
Got it working after copying into cppcheck directory.
Thanks and Regards
Atulya
|
|
Posted
almost 12 years
ago
by
Bassam Abdul-Baki
Atulya,
The only file that needs to be in the platforms directory is qwindows.dll. All the other DLLs need to be in the root folder with the Cppcheck executable.
Bassam
|
|
Posted
almost 12 years
ago
by
atulya
Hi CPPCheck Team,
Greetings !!
I have copied a cppcheck installed folder on a machine, where I don't have admin rights to install.
While running cppcheck from command prompt I am getting below error
msvcp120.dll is missing on my system.
I have
... [More]
copied the above missing dll in platforms directory.
But still, I am getting same above error.
Any suggestions how I can resolve this problem?
Regards
Atulya [Less]
|