[英]cppcheck: function definitions in headers
I'm trying to add a rule to a cppcheck for a function definitions (outside of class, or without inline) which are in .h/ .hpp.我正在尝试为.h/ .hpp 中的函数定义(在类之外或没有内联)的 cppcheck 添加规则。
It looks like it's not doable without going into a cppcheck source code or without processing headers separately is that true?如果不进入 cppcheck 源代码或不单独处理标头,它看起来是不可行的,是真的吗?
sorry for late reply.抱歉回复晚了。 It is true that you can't create a
rule
that is run by --rule
.这是事实,你不能创建一个
rule
由运行--rule
。 But you can create a addon
.. python script that reads the xml output generated by --dump
.但是您可以创建一个
addon
.. python 脚本来读取--dump
生成的 xml 输出。 See the manual for more information about addons.有关插件的更多信息,请参阅手册。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.