File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
clang/lib/Tooling/DumpTool Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,16 @@ def main():
156
156
157
157
use_empty_implementation = options .empty_implementation
158
158
159
- if not os .path .exists (options .json_input_path ):
160
- use_empty_implementation = True
159
+ if (not use_empty_implementation
160
+ and not os .path .exists (options .json_input_path )):
161
+ use_empty_implementation = True
161
162
162
- with open (options .json_input_path ) as f :
163
- jsonData = json .load (f )
163
+ if not use_empty_implementation :
164
+ with open (options .json_input_path ) as f :
165
+ jsonData = json .load (f )
164
166
165
- if not 'classesInClade' in jsonData or not jsonData ["classesInClade" ]:
166
- use_empty_implementation = True
167
+ if not 'classesInClade' in jsonData or not jsonData ["classesInClade" ]:
168
+ use_empty_implementation = True
167
169
168
170
if use_empty_implementation :
169
171
with open (os .path .join (os .getcwd (),
You can’t perform that action at this time.
0 commit comments