]> granicus.if.org Git - clang/commit
[NFC] Refactor DiagnosticRenderer to use FullSourceLoc
authorChristof Douma <Christof.Douma@arm.com>
Mon, 19 Jun 2017 12:05:58 +0000 (12:05 +0000)
committerChristof Douma <Christof.Douma@arm.com>
Mon, 19 Jun 2017 12:05:58 +0000 (12:05 +0000)
commit121eb4635e5ad68938f4598befb9eee3dfc73dc9
tree0146d45d3a1574349ab251a4d5f64dc7fdd8d06e
parent6ee5ac604b35db8d381cfe8ab1f5883615f20b22
[NFC] Refactor DiagnosticRenderer to use FullSourceLoc

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
llvm::SMLocs or clang::SourceLocations.

Patch by Sanne Wouda

Review: https://reviews.llvm.org/D31709

Change-Id: If351a112cdf6718e2d3ef6721b8da9c6376b32dd

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305684 91177308-0d34-0410-b5e6-96231b3b80d8
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