[PATCH] D31709: [NFC] Refactor DiagnosticRenderer to use FullSourceLoc

Sanne Wouda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 07:29:36 PDT 2017


sanwou01 created this revision.

Move the DiagnosticRenderer and its dependents to using FullSourceLocs
instead of a SourceLocation and SourceManager pointer.  The changeset is
rather large but entirely mechanical.

This is step one to allow DiagnosticRenderer to take either
llvmn::SMLocs or clang::SourceLocations. The end goal is https://reviews.llvm.org/D31501.


https://reviews.llvm.org/D31709

Files:
  include/clang/Basic/SourceLocation.h
  include/clang/Frontend/DiagnosticRenderer.h
  include/clang/Frontend/TextDiagnostic.h
  lib/Basic/SourceLocation.cpp
  lib/Frontend/DiagnosticRenderer.cpp
  lib/Frontend/SerializedDiagnosticPrinter.cpp
  lib/Frontend/TextDiagnostic.cpp
  lib/Frontend/TextDiagnosticPrinter.cpp
  tools/libclang/CIndexDiagnostic.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31709.94226.patch
Type: text/x-patch
Size: 57889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170405/a6bd10e0/attachment-0001.bin>


More information about the cfe-commits mailing list