文档首页/ 代码检查 CodeArts Check/ 常见问题/ 使用代码检查/ Cppcheck cannot tokenize the code correctly
更新时间:2023-11-30 GMT+08:00

Cppcheck cannot tokenize the code correctly

问题现象

代码检查提示“Cppcheck cannot tokenize the code correctly”

原因分析

是Cppcheck的一条检查规则,在代码里面有语法错误,用Java语法写C代码造成的。

处理方法

要按照C语言的编码规范写代码,不能包含其他语言的编码规则。