Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36ec2ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried to use this tools.
It is strong in most time, but when I run it with
cppcheck * 2>err.txt
in a directory in which include a.md
file, it would check the.md
file too.So why do you think this as a normal case?
36ec2ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cppcheck will try to parse all files you pass to it as argument.
The wildcard will expand to everything in the current folder, so also non-c{pp} files, thus the .md file is checked as well.
If you want to check the current directory recursively but only files that cppcheck thinks it can understand, try "cpcheck ."
36ec2ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand.
when I run
cppcheck
, it shows below:It says that it will only check c or c++ file.
By the way, I have run
cpcheck .
like your tips, but I only get error of'cpcheck' 不是内部或外部命令,也不是可运行的程序或批处理文件。
36ec2ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi there was a typo. Try:
36ec2ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get it, tks very much! @danmar