summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-09-25 22:27:52 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-09-25 22:27:52 +0000
commitcb8f82a8e590c8951b752d5c026acd1dda3d9597 (patch)
treed569124f32f86cfd80c237a0414fb5a564b38804 /clang/lib/Basic/SourceManager.cpp
parentdf977fedb6dfb4389c40ea2998fa872cf69a8f31 (diff)
downloadbcm5719-llvm-cb8f82a8e590c8951b752d5c026acd1dda3d9597.tar.gz
bcm5719-llvm-cb8f82a8e590c8951b752d5c026acd1dda3d9597.zip
Sink the logic for suppressing some macro expansion notes from the
TextDiagnosticPrinter into the CaretDiagnostic class. Several interesting results from this: - This removes a significant per-diagnostic bit of state from the CaretDiagnostic class, which should eventually allow us to re-use the object. - It removes a redundant recursive walk of the macro expansion stack just to compute the depth. We don't need the depth until we're unwinding anyways, so we can just mark when we reach it. - It also paves the way for several simplifications we can do to how we implement the suppression. llvm-svn: 140474
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud