forked from phoedos/pmd

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 : "\'"
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
Languages
Java
75.5%
Apex
9.7%
Kotlin
9.1%
ANTLR
2.7%
PLSQL
1%
Other
1.8%