Skip to contentSkip to conversation

.gitignore: ignore smatch generated files

PATCH Superseded Brandon Pollack 4 participants 6 messages Apr 27, 2023 – May 8, 2023 1 message not in the archive

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 70ec6037fa7a..04472c37b6df 100644
@@ -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
#1 lore raw

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

#2 lore raw

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

#3 lore raw
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

#4 lore raw
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