diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-09-25 22:27:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-09-25 22:27:52 +0000 |
commit | b9c398b25b9c24769fb30b90c3805a500806e06f (patch) | |
tree | 79eb0dece69764f3ddeeb4d8d1e0388234c26022 /lib/Frontend/VerifyDiagnosticsClient.cpp | |
parent | a02a8a984f338076c87fd5aa61dca46ab90f27f4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/VerifyDiagnosticsClient.cpp')
0 files changed, 0 insertions, 0 deletions