aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/VerifyDiagnosticsClient.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
commitb9c398b25b9c24769fb30b90c3805a500806e06f (patch)
tree79eb0dece69764f3ddeeb4d8d1e0388234c26022 /lib/Frontend/VerifyDiagnosticsClient.cpp
parenta02a8a984f338076c87fd5aa61dca46ab90f27f4 (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