]> granicus.if.org Git - clang/commit
Create a CaretDiagnostic class to hold the logic for emitting
authorChandler Carruth <chandlerc@gmail.com>
Wed, 31 Aug 2011 23:59:23 +0000 (23:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 31 Aug 2011 23:59:23 +0000 (23:59 +0000)
commit50c909bd837f00265034d876736e2db47686be38
tree4a15f4010af7aaaa59359cadd1a7592588f5b3da
parent0d6b893c0d66813fad5d9b9193e7af1058e4742e
Create a CaretDiagnostic class to hold the logic for emitting
(unsurprisingly) caret diagnostics. This is designed to bring some
organization to the monstrous EmitCaretDiagnostic function, and allow
factoring it more easily and with less mindless parameter passing.

Currently this just lifts the existing function into a method, and
splits off the obviously invariant arguments to be class members. No
functionality is changed, and there are still lots of warts to let
existing code continue functioning as-is. Definitely WIP, more cleanups
to follow.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138921 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/TextDiagnosticPrinter.h
lib/Frontend/TextDiagnosticPrinter.cpp