nickdiego / compiledb

Tool for generating Clang's JSON Compilation Database files for make-based build systems.
GNU General Public License v3.0
1.38k stars 123 forks source link

(idea/suggestion) quiet/silent flag #66

Closed Falkgaard closed 5 years ago

Falkgaard commented 5 years ago

Hi,

It would be nice if there were an argument like "-s" to tell compiledb not to print the lines starting with ## or the line with the ().

At the moment I'm using:

compiledb make | grep -v "## *\|()"

when compiling from my terminal, but if I run the build in my editor (Sublime Text 3) the grep fucks up the output (instead of getting real-time printing, it won't print anything until it's done with the whole build).

Regards, -Falk

agnjunio commented 5 years ago

I believe I already suggested this feature in #63, it's simple but useful.

If you're feeling like creating a pull request, feel free to do so. Otherwise, I can implement it in my spare time.

nickdiego commented 5 years ago

That would be nice. If possible, we could take the opportunity to get rid of if (verbose) print(..) in favor of logging APIs.

Marking this as part of the release 0.10.0 milestone.

nickdiego commented 5 years ago

Closing this as #68 has landed.