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

Support skipping compiler flags through a regex command line option #47

Open nickdiego opened 6 years ago

nickdiego commented 6 years ago

After a recent cleanup in parsing code, the hardcoded logic for ignoring some compiler flags has been completely removed. For most use cases it should be enough to pass the exact build command line, however it may be desirable to skip/ignore some compiler flag to specific use cases (indexing source code, etc..).

A regex-like command line option should work well for this.