[pp-trace] Modernize the code
authorFangrui Song <maskray@google.com>
Sun, 24 Mar 2019 06:55:08 +0000 (06:55 +0000)
committerFangrui Song <maskray@google.com>
Sun, 24 Mar 2019 06:55:08 +0000 (06:55 +0000)
commit10f69948fb9d9c266bd80c81011e4e951743f6ed
tree85f292b5874f989c67b9906cdbfa6acf7708f291
parent88f4054f48c56b816a555569ccd6e94c7072ab26
[pp-trace] Modernize the code

Use InitLLVM and WithColor
Delete PPTraceConsumer, add the callback in PPTraceAction
Migrae to tooling::createExecutorFromCommandLineArgs
Don't specialize empty OutputFileName

llvm-svn: 356849
clang-tools-extra/pp-trace/PPTrace.cpp
clang-tools-extra/test/pp-trace/pp-trace-conditional.cpp
clang-tools-extra/test/pp-trace/pp-trace-filter.cpp
clang-tools-extra/test/pp-trace/pp-trace-ident.cpp
clang-tools-extra/test/pp-trace/pp-trace-include.cpp
clang-tools-extra/test/pp-trace/pp-trace-macro.cpp
clang-tools-extra/test/pp-trace/pp-trace-modules.cpp
clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp
clang-tools-extra/test/pp-trace/pp-trace-pragma-ms.cpp
clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp