.gitignore: ignore smatch generated files
PATCH 1/1 .gitignore: ignore smatch generated files
ignore smatch generated files.
---
New to development and looking for tasks to work on to get familiar with code, I noticed smatch generates some files at the root. Since this tool seems frequent for newbies like myself I thought it would be worth getting rid of the chance of accidentally committing these files.
--- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+)
.gitignore +8 -0
@@ -173,3 +173,11 @@ sphinx_*/ # Rust analyzer configuration /rust-project.json + +# Smatch tree outputs +smatch_compile.warns +smatch_db.sqlite +smatch_warns.txt +smatch_warns.txt.caller_info +smatch_warns.txt.sql +trinity_smatch.[ch]
Signature · 1 line
2.40.1.495.gc816e09b53d-goog
Hi Brandon,
Quoted 2 lines · Brandon Pollack
ignore smatch generated files.
Cc'ing Dan who is the smatch author.
Also, when sending a v2 of a series, please mark it as such -- git-format-patch can do it for you with e.g. -v2.
Cheers,
Miguel
Thanks for this. To be honest, I hadn't remembered that Smatch still generates trinity_smatch.[ch]. I would prefer to just delete that stuff. Another idea is maybe Smatch could put everything in a smatch/ directory? That feels like maybe it would be nicer?
regards,
dan carpenter
Quoted 5 lines · Dan Carpenter
Thanks for this. To be honest, I hadn't remembered that Smatch still generates trinity_smatch.[ch]. I would prefer to just delete that stuff. Another idea is maybe Smatch could put everything in a smatch/ directory? That feels like maybe it would be nicer?
Sure, that'd be great as well. I'm pretty sure that smatch outputs these files from whatever directory you run from, that's why I did the overall pattern rather than a path pattern.
Should we just patch smatch to not output trinity* files and output to a directory and change this patch to mask out the directory?
Quoted 3 lines
regards,
dan carpenter
Quoted 7 lines · Brandon Ross Pollack
Quoted 5 lines · Dan Carpenter
Thanks for this. To be honest, I hadn't remembered that Smatch still generates trinity_smatch.[ch]. I would prefer to just delete that stuff. Another idea is maybe Smatch could put everything in a smatch/ directory? That feels like maybe it would be nicer?
Quoted 6 lines
Sure, that'd be great as well. I'm pretty sure that smatch outputs these files from whatever directory you run from, that's why I did the overall pattern rather than a path pattern.
Should we just patch smatch to not output trinity* files and output to a directory and change this patch to mask out the directory?
I've deleted the trinity stuff. Let's just apply the rest as-is.
regards,
dan carpenter
A message that is not in the archive (sent off-list or not yet received): CALWYx-ayGvg0iuRi15+JyGrThmiOqzwxPNfEfpqUpbsknkcpgg@mail.gmail.com
Quoted 3 lines · Brandon Ross Pollack
This is actually my first patch, is there anything else I need to do to apply it or should I let the maintainers handle it from here?
You need to send a v2 patch without the trinity stuff. (I removed it from Smatch already).
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
regards,
dan carpenter