Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Merge requests
!168
Simplify backtrace output
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Simplify backtrace output
feature/error-handling
into
develop
Overview
0
Commits
6
Pipelines
0
Changes
3
Merged
Simplify backtrace output
Stéphane Del Pino
requested to merge
feature/error-handling
into
develop
Jun 1, 2023
Overview
0
Commits
6
Pipelines
0
Changes
3
This makes backtrace readable
0
0
Merge request reports
Viewing commit
71d2f3a5
Prev
Next
Show latest version
3 files
+
70
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
71d2f3a5
Add SourceLocation to store C++ or pgs source locations
· 71d2f3a5
Stéphane Del Pino
authored
May 31, 2023
src/language/ast/ASTBacktrace.cpp
+
9
−
0
View file @ 71d2f3a5
Edit in single-file editor
Open in Web IDE
Show full file
@@ -26,6 +26,15 @@ ASTBacktrace::errorMessageAt(const std::string& message) const
return
error_msg
.
str
();
}
SourceLocation
ASTBacktrace
::
sourceLocation
()
const
{
auto
&
stack
=
ASTBacktrace
::
getInstance
().
m_stack
;
auto
p
=
stack
[
stack
.
size
()
-
1
]
->
begin
();
return
SourceLocation
(
p
.
source
,
p
.
line
,
p
.
column
);
}
void
ASTBacktrace
::
create
()
{
Loading