From a7a87cec8c98872299e5dbe4c47a852a954b692b Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 12 Oct 2018 22:02:09 -0400 Subject: Feature/source loc review (#672) * Fixes/improvements based around review comments. * SourceUnit -> SourceView * * Removed the HumaneSourceLoc as it's POD-like ness seemed to make that unnecessary * Made exposed member variables in SourceManager protected - so make clear where/how can be accesed * Improved description about SourceLoc and associated structures * Changed SourceLocType to 'Actual' and 'Nominal'. * Improved a comment. --- source/slang/diagnostics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/diagnostics.cpp') diff --git a/source/slang/diagnostics.cpp b/source/slang/diagnostics.cpp index 24019e4aa..ff664e81b 100644 --- a/source/slang/diagnostics.cpp +++ b/source/slang/diagnostics.cpp @@ -171,7 +171,7 @@ static void formatDiagnostic( auto humaneLoc = sourceManager->getHumaneLoc(diagnostic.loc); - sb << humaneLoc.getPath(); + sb << humaneLoc.path; sb << "("; sb << humaneLoc.line; sb << "): "; -- cgit v1.2.3