summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/exploded-graph-rewriter.py
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2019-07-11 21:27:42 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2019-07-11 21:27:42 +0000
commitfc6059e8b987489579b40f32ba50cfdb1cb0cb2d (patch)
tree3e8f8091b9b50fc63354950bfe4497a419bdb448 /clang/utils/analyzer/exploded-graph-rewriter.py
parentb83e283e65598de04d406790f2d1de66943cde67 (diff)
downloadbcm5719-llvm-fc6059e8b987489579b40f32ba50cfdb1cb0cb2d.tar.gz
bcm5719-llvm-fc6059e8b987489579b40f32ba50cfdb1cb0cb2d.zip
[analyzer] exploded-graph-rewriter: Fix filenames in program point.
Fix a typo in JSON field name. llvm-svn: 365827
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