summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaFixItUtils.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-04-29 22:55:28 +0000
committerZachary Turner <zturner@google.com>2015-04-29 22:55:28 +0000
commitc1592658d574e5fe693fc4ba2cd7537b1b72671e (patch)
tree7bf895d0121e5049b0140afc3776438a9fb2a799 /clang/lib/Sema/SemaFixItUtils.cpp
parent2688a499817d51ed865201e3320f5433826a2cee (diff)
downloadbcm5719-llvm-c1592658d574e5fe693fc4ba2cd7537b1b72671e.tar.gz
bcm5719-llvm-c1592658d574e5fe693fc4ba2cd7537b1b72671e.zip
Introduce a NullLog class, which ignores all messages.
The purpose of this class is so that GetLogIfAllCategoriesSet can always return an instance of some class, whether it be a real logging class or a "null" class, which ignores messages. Code that is littered with if statements that only log if the pointer is non-null can get very unwieldy very quickly, so this should help code readability in such circumstances. Since I'm in this code anyway, I'm also deleting the PrintfWithFlags methods, as well as all the flags, since they appear to be dead code that have been superceded by newer mechanisms and all the flags are simply ignored. llvm-svn: 236174
Diffstat (limited to 'clang/lib/Sema/SemaFixItUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud