summaryrefslogtreecommitdiff
path: root/source/slang/source-loc.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/source-loc.h')
-rw-r--r--source/slang/source-loc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/source-loc.h b/source/slang/source-loc.h
index 8bb89c645..83ad87633 100644
--- a/source/slang/source-loc.h
+++ b/source/slang/source-loc.h
@@ -117,9 +117,12 @@ struct ExpandedSourceLoc : public SourceLoc
// Get the original source file that holds this location
SourceFile* getSourceFile() const;
-};
+ // Get a "humane" version of a source location
+ HumaneSourceLoc getHumaneLoc();
+};
+HumaneSourceLoc getHumaneLoc(ExpandedSourceLoc const& loc);
struct SourceManager
{
@@ -142,7 +145,6 @@ struct SourceManager
ExpandedSourceLoc expandSourceLoc(SourceLoc const& loc);
// Get a "humane" version of a source location
- HumaneSourceLoc getHumaneLoc(ExpandedSourceLoc const& loc);
HumaneSourceLoc getHumaneLoc(SourceLoc const& loc);