WithColor.h - reduce CommandLine.h include to forward declaration. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 23 Jun 2020 15:55:59 +0000 (16:55 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 23 Jun 2020 16:07:53 +0000 (17:07 +0100)
commitddc6ec9470bd081c358dea78e5c5d9babb20e034
tree66554948c02d38f664436f1683259e2bae1f94a8
parentf3c61b56e6d33f4f461191696328c74274a00ee1
WithColor.h - reduce CommandLine.h include to forward declaration. NFC.

WithColor.h is one of the most common headers, we can severely reduce its frontend impact (in ClangBuildAnalyzer reports) by removing the bulky CommandLine.h include, forward declaring llvm::cl::OptionCategory and just including raw_ostream.h instead.
llvm/include/llvm/Support/WithColor.h
llvm/lib/Support/WithColor.cpp