
This commit fixes a lexical error when a C++ file contains ASM with the '@' character. The following code cannot be tokenized and triggers a lexical error: asm void eSPI_boot() { // setup stack pointer lis r1, _stack_addr@h ori r1, r1, _stack_addr@l } The error that occurs: net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file CODE_LOADED_FROM_STRING at line 4, column 22. Encountered: "@" (64), 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%