bloomberg / clangmetatool

A framework for reusing code in Clang tools
https://bloomberg.github.io/clangmetatool/
Apache License 2.0
119 stars 25 forks source link

Add suppress warnings #41

Closed HaltCatchFire closed 5 years ago

HaltCatchFire commented 5 years ago

Describe your changes Add ToolApplicationSupport::suppressWarnings, which takes a tool and appends an ArgumentsAdjuster that adds '-w' to the arguments. This suppresses the warnings output by clang, but still allows a tool to output its own warnings.

Testing performed Added a unit test, and tested the functionality with an existing clangmetatool-based tool.

cc: @dbeer1 @ruoso