diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-09-26 11:38:46 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-09-26 11:38:46 +0000 |
commit | e6d1dff47d17154e99a98c499ee399df70a4bcf1 (patch) | |
tree | b8c2873f5d18faf6a0e00d0cb1c7ac7668e70e4f /lib/CodeGen/CGStmt.cpp | |
parent | 0ef898865aaec8c99addee23d01e03c7abdbd2b3 (diff) |
Hoist and beef up the asserts about the level of infrastructure expected
when working with a diagnostic attached to a source location. Also
comment more thoroughly why its important to handle non-location
diagnostic messages separately.
Finally, hoist the creation of the TextDiagnostic object up to the
beginning of the location-based diagnostics. This paves the way for
sinking more and more of the logic into this class. When everything
below this constructor is sunk into the TextDiagnostic class it should
be sufficiently "feature complete" to accomplish my two goals:
1) Have the printing of a macro expansion note use the exact same code
as any other note.
2) Be able to implement clang_formatDiagnostic in terms of this class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
0 files changed, 0 insertions, 0 deletions