summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/exploded-graph-rewriter.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/utils/analyzer/exploded-graph-rewriter.py')
-rwxr-xr-xclang/utils/analyzer/exploded-graph-rewriter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/utils/analyzer/exploded-graph-rewriter.py b/clang/utils/analyzer/exploded-graph-rewriter.py
index 99f5403189b..baf1be8de06 100755
--- a/clang/utils/analyzer/exploded-graph-rewriter.py
+++ b/clang/utils/analyzer/exploded-graph-rewriter.py
@@ -16,6 +16,7 @@ import collections
import difflib
import json
import logging
+import os
import re
@@ -50,8 +51,8 @@ class SourceLocation(object):
super(SourceLocation, self).__init__()
self.line = json_loc['line']
self.col = json_loc['column']
- self.filename = json_loc['filename'] \
- if 'filename' in json_loc else '(main file)'
+ self.filename = os.path.basename(json_loc['file']) \
+ if 'file' in json_loc else '(main file)'
# A deserialized program point.
OpenPOWER on IntegriCloud