Skip to content

Commit 33daeec

Browse files
committed
Fix lints
1 parent f215bcf commit 33daeec

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

lldb/packages/Python/lldbsuite/test/builders/builder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def getLLDBObjRoot(self):
247247
def _getDebugInfoArgs(self, debug_info):
248248
if debug_info is None:
249249
return []
250-
250+
251251
debug_options = debug_info if isinstance(debug_info, list) else [debug_info]
252252
option_flags = {
253253
"dwarf": {"MAKE_DSYM": "NO"},
@@ -256,15 +256,15 @@ def _getDebugInfoArgs(self, debug_info):
256256
"debug_names": {"MAKE_DEBUG_NAMES": "YES"},
257257
"dwp": {"MAKE_DSYM": "NO", "MAKE_DWP": "YES"},
258258
}
259-
259+
260260
# Collect all flags, with later options overriding earlier ones
261261
flags = {}
262-
262+
263263
for option in debug_options:
264264
if not option or option not in option_flags:
265-
return None # Invalid options
265+
return None # Invalid options
266266
flags.update(option_flags[option])
267-
267+
268268
return [f"{key}={value}" for key, value in flags.items()]
269269

270270
def getBuildCommand(

lldb/test/API/commands/statistics/basic/TestStats.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,11 @@ def test_non_split_dwarf_has_no_dwo_files(self):
540540
debug_stats = self.get_stats()
541541
self.assertIn("totalDwoFileCount", debug_stats)
542542
self.assertIn("totalLoadedDwoFileCount", debug_stats)
543-
543+
544544
# Verify that the dwo file count is zero
545545
self.assertEqual(debug_stats["totalDwoFileCount"], 0)
546546
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 0)
547-
547+
548548
@add_test_categories(["dwo"])
549549
def test_no_debug_names_eager_loads_dwo_files(self):
550550
"""
@@ -554,7 +554,7 @@ def test_no_debug_names_eager_loads_dwo_files(self):
554554
- With debug_names: DebugNamesDWARFIndex allows for lazy loading.
555555
DWO files are loaded on-demand when symbols are actually looked up
556556
- Without debug_names: ManualDWARFIndex uses eager loading.
557-
All DWO files are loaded upfront during the first symbol lookup to build a manual index.
557+
All DWO files are loaded upfront during the first symbol lookup to build a manual index.
558558
"""
559559
da = {"CXX_SOURCES": "third.cpp baz.cpp", "EXE": self.getBuildArtifact("a.out")}
560560
self.build(dictionary=da, debug_info=["dwo"])
@@ -564,7 +564,7 @@ def test_no_debug_names_eager_loads_dwo_files(self):
564564
debug_stats = self.get_stats()
565565
self.assertIn("totalDwoFileCount", debug_stats)
566566
self.assertIn("totalLoadedDwoFileCount", debug_stats)
567-
567+
568568
# Verify that all DWO files are loaded
569569
self.assertEqual(debug_stats["totalDwoFileCount"], 2)
570570
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 2)
@@ -594,13 +594,13 @@ def test_split_dwarf_dwo_file_count(self):
594594
self.assertIn("totalDwoFileCount", debug_stats)
595595
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 0)
596596
self.assertEqual(debug_stats["totalDwoFileCount"], 2)
597-
597+
598598
# Since there's only one module, module stats should have the same counts as total counts
599599
self.assertIn("dwoFileCount", debug_stats["modules"][0])
600600
self.assertIn("loadedDwoFileCount", debug_stats["modules"][0])
601601
self.assertEqual(debug_stats["modules"][0]["loadedDwoFileCount"], 0)
602602
self.assertEqual(debug_stats["modules"][0]["dwoFileCount"], 2)
603-
603+
604604
# 2) Setting breakpoint in main triggers loading of third.dwo (contains main function)
605605
self.runCmd("b main")
606606
debug_stats = self.get_stats()
@@ -609,7 +609,7 @@ def test_split_dwarf_dwo_file_count(self):
609609

610610
self.assertEqual(debug_stats["modules"][0]["loadedDwoFileCount"], 1)
611611
self.assertEqual(debug_stats["modules"][0]["dwoFileCount"], 2)
612-
612+
613613
# 3) Type lookup forces loading of baz.dwo (contains struct Baz definition)
614614
self.runCmd("type lookup Baz")
615615
debug_stats = self.get_stats()
@@ -618,7 +618,7 @@ def test_split_dwarf_dwo_file_count(self):
618618

619619
self.assertEqual(debug_stats["modules"][0]["loadedDwoFileCount"], 2)
620620
self.assertEqual(debug_stats["modules"][0]["dwoFileCount"], 2)
621-
621+
622622
@add_test_categories(["dwo"])
623623
def test_dwp_dwo_file_count(self):
624624
"""
@@ -627,7 +627,7 @@ def test_dwp_dwo_file_count(self):
627627
verifies the loaded dwo file count is the expected count after running
628628
various commands.
629629
630-
We expect the DWO file counters to reflect the number of compile units
630+
We expect the DWO file counters to reflect the number of compile units
631631
loaded from the DWP file (each representing what was originally a separate DWO file)
632632
"""
633633
da = {"CXX_SOURCES": "third.cpp baz.cpp", "EXE": self.getBuildArtifact("a.out")}
@@ -642,19 +642,18 @@ def test_dwp_dwo_file_count(self):
642642
self.assertIn("totalDwoFileCount", debug_stats)
643643
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 0)
644644
self.assertEqual(debug_stats["totalDwoFileCount"], 2)
645-
645+
646646
# Setting breakpoint in main triggers parsing of the CU within a.dwp corresponding to third.dwo (contains main function)
647647
self.runCmd("b main")
648648
debug_stats = self.get_stats()
649649
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 1)
650650
self.assertEqual(debug_stats["totalDwoFileCount"], 2)
651-
651+
652652
# Type lookup forces parsing of the CU within a.dwp corresponding to baz.dwo (contains struct Baz definition)
653653
self.runCmd("type lookup Baz")
654654
debug_stats = self.get_stats()
655655
self.assertEqual(debug_stats["totalDwoFileCount"], 2)
656656
self.assertEqual(debug_stats["totalLoadedDwoFileCount"], 2)
657-
658657

659658
@skipUnlessDarwin
660659
@no_debug_info_test

0 commit comments

Comments
 (0)