projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408456f
)
[llvm][utils] Rename lldb dict variables to internal_dict
author
Dave Lee
<davelee.com@gmail.com>
Fri, 26 Feb 2021 15:45:04 +0000
(07:45 -0800)
committer
Dave Lee
<davelee.com@gmail.com>
Fri, 26 Feb 2021 15:46:54 +0000
(07:46 -0800)
Most lldb scripts use `internal_dict`. Also, `dict` is a builtin constructor,
it's good habit to avoid using it as a variable name.
llvm/utils/lldbDataFormatters.py
patch
|
blob
|
history
diff --git
a/llvm/utils/lldbDataFormatters.py
b/llvm/utils/lldbDataFormatters.py
index
b95bf84
..
b759ee0
100644
(file)
--- a/
llvm/utils/lldbDataFormatters.py
+++ b/
llvm/utils/lldbDataFormatters.py
@@
-35,7
+35,7
@@
def __lldb_init_module(debugger, internal_dict):
# Pretty printer for llvm::SmallVector/llvm::SmallVectorImpl
class SmallVectorSynthProvider:
- def __init__(self, valobj, dict):
+ def __init__(self, valobj,
internal_
dict):
self.valobj = valobj;
self.update() # initialize this provider
@@
-74,7
+74,7
@@
class SmallVectorSynthProvider:
class ArrayRefSynthProvider:
""" Provider for llvm::ArrayRef """
- def __init__(self, valobj, dict):
+ def __init__(self, valobj,
internal_
dict):
self.valobj = valobj;
self.update() # initialize this provider