Jan van Nunen d830974842 Fixed lexical error when a C++ file contains an empty character literal L''.
This commit fixes a lexical error when a C++ file contains an empty
character literal L''. The following code could not be tokenized:

std::wstring wsMessage( sMessage.length(), L'');

It triggers the following error:

net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file
'foo.cpp' at line 1, column 46.  Encountered: "\'" (39), after : "\'"
2015-01-13 11:36:54 +01:00
2014-10-03 21:00:28 +02:00
2014-10-03 21:00:28 +02:00
2013-05-01 14:56:22 +02:00

PMD - Don't shoot the messenger

PMD

About

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL. Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript.

Source

Our latest source of PMD can be found on GitHub. Fork us! The current status of this repo can be seen at BuildHive.

News and Website

More information can be found on our Website and on SourceForge.

Description
An extensible multilanguage static code analyzer.
Readme Apache-2.0 510 MiB
Languages
Java 75.5%
Apex 9.7%
Kotlin 9.1%
ANTLR 2.7%
PLSQL 1%
Other 1.8%