hanchenye-llvm-project/clang-tools-extra/pp-trace
Fangrui Song 560a45a3c4 [pp-trace] Delete -ignore and add a new option -callbacks
Summary:
-ignore specifies a list of PP callbacks to ignore. It cannot express a
whitelist, which may be more useful than a blacklist.
Add a new option -callbacks to replace it.

-ignore= (default) => -callbacks='*' (default)
-ignore=FileChanged,FileSkipped => -callbacks='*,-FileChanged,-FileSkipped'

-callbacks='Macro*' : print only MacroDefined,MacroExpands,MacroUndefined,...

Reviewers: juliehockett, aaron.ballman, alexfh, ioeric

Reviewed By: aaron.ballman

Subscribers: nemanjai, kbarton, jsji, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59296

llvm-svn: 356366
2019-03-18 13:30:17 +00:00
..
CMakeLists.txt Add explicit dependency on clangSerialization after rC348911 2018-12-12 08:25:16 +00:00
PPCallbacksTracker.cpp [pp-trace] Delete -ignore and add a new option -callbacks 2019-03-18 13:30:17 +00:00
PPCallbacksTracker.h [pp-trace] Delete -ignore and add a new option -callbacks 2019-03-18 13:30:17 +00:00
PPTrace.cpp [pp-trace] Delete -ignore and add a new option -callbacks 2019-03-18 13:30:17 +00:00