smatch icon indicating copy to clipboard operation
smatch copied to clipboard

Contributions to make it easier to use smatch with generic projects

Open chrissamuel opened this issue 5 months ago • 2 comments

Hi there,

I was very interested to read about smatch on LWN and as I work in HPC I was curious to trial it on Slurm, the batch scheduler that a lot of sites (including everywhere I've worked since 2010) use. It took a little bit to figure out how to make it work well with it so I thought I'd try and give back by putting in two fairly trivial changes to help others out.

  • https://github.com/error27/smatch/pull/18
  • https://github.com/error27/smatch/pull/19

Thanks for smatch!

All the best, Chris

chrissamuel avatar Jul 02 '25 00:07 chrissamuel

Thanks for merging those two! I've just added a third so smatch emits full paths to source files as code bases might have files with the same name in different directories.

  • https://github.com/error27/smatch/pull/21

chrissamuel avatar Jul 03 '25 20:07 chrissamuel

Thanks for taking that change, I've just done another to suppress some Perl errors for generic projects where the files they try to open don't exist.

  • https://github.com/error27/smatch/pull/22

chrissamuel avatar Jul 04 '25 21:07 chrissamuel