Skip to content

Commit 4cee0d7

Browse files
committed
[lldb] [disassembler] chore: enhance VariableAnnotator to return structured data: update comments to be Doxygen-style
Signed-off-by: Nikita B <[email protected]>
1 parent 13afa00 commit 4cee0d7

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

lldb/include/lldb/Core/Disassembler.h

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -569,16 +569,22 @@ class Disassembler : public std::enable_shared_from_this<Disassembler>,
569569
/// Structured data for a single variable annotation.
570570
struct VariableAnnotation {
571571
std::string variable_name;
572-
std::string location_description; // e.g., "r15", "undef", "const_0"
573-
lldb::addr_t start_address; // Where this annotation starts being valid
574-
lldb::addr_t end_address; // Where this annotation ends being valid
575-
bool is_live; // Whether variable is live at this instruction
576-
lldb::RegisterKind
577-
register_kind; // Register numbering scheme for location interpretation
578-
std::optional<std::string>
579-
decl_file; // Source file where variable was declared
580-
std::optional<uint32_t> decl_line; // Line number where variable was declared
581-
std::optional<std::string> type_name; // Variable's type name
572+
/// Location description (e.g., "r15", "undef", "const_0").
573+
std::string location_description;
574+
/// Where this annotation starts being valid.
575+
lldb::addr_t start_address;
576+
/// Where this annotation ends being valid.
577+
lldb::addr_t end_address;
578+
/// Whether variable is live at this instruction.
579+
bool is_live;
580+
/// Register numbering scheme for location interpretation.
581+
lldb::RegisterKind register_kind;
582+
/// Source file where variable was declared.
583+
std::optional<std::string> decl_file;
584+
/// Line number where variable was declared.
585+
std::optional<uint32_t> decl_line;
586+
/// Variable's type name.
587+
std::optional<std::string> type_name;
582588
};
583589

584590
/// Tracks live variable annotations across instructions and produces

0 commit comments

Comments
 (0)