Jan van Nunen
ceef6cd236
Fixed lexical eror when a preprocessor directive is followed by a single line comment that starts with "//*".
This commit fixes a lexical eror when a preprocessor directive is followed by a single line comment that starts with "//*". The following code could not be tokenized: #define LSTFVLES_CPP //* It triggers the following error: net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file 'foo.cpp' at line 2, column 0. Encountered: <EOF> 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%