Skip to content

LLViewerObjectList documentation pass #4464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Geenz
Copy link
Collaborator

@Geenz Geenz commented Jul 30, 2025

Description

Establishes some new documentation standards, and starts implementing them with LLViewerObjectList. Please focus on LLViewerObjectList's accuracy.

Geenz added 4 commits July 29, 2025 13:28
Still a work in progress for documentation guidelines for the viewer.
Expanded the documentation section to better distinguish between API and implementation documentation. Added guidance on documenting legacy code, clarified where to place implementation-specific comments, and emphasized the importance of verifying claims and preserving historical context.
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR establishes comprehensive documentation standards for the Second Life Viewer project and applies them to the LLViewerObjectList class. The documentation approach emphasizes practical, engineer-focused explanations with real-world context rather than just technical descriptions.

  • Creates a detailed documentation style guide focused on conversational, practical documentation
  • Extensively documents LLViewerObjectList with 650+ lines of comprehensive API documentation
  • Adds implementation comments explaining performance optimizations and design decisions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
DOCUMENTATION.md Establishes new documentation standards with style guidelines, tone requirements, and examples
llviewerobjectlist.h Comprehensive documentation of all public and private APIs with practical usage examples
llviewerobjectlist.cpp Implementation comments explaining algorithms, performance optimizations, and design choices
Comments suppressed due to low confidence (2)

indra/newview/llviewerobjectlist.cpp:857

  • Method name contains a typo: 'fetchPhisicsFlagsCoro' should be 'fetchPhysicsFlagsCoro'. While the comment at line 852-854 acknowledges this typo and states it's kept for compatibility, this represents a technical debt that should be addressed.
    } func;

indra/newview/llviewerobjectlist.cpp:847

  • Parameter name 'objectList' is inconsistent with the similar method 'reportObjectCostFailure' which uses 'objectList' in the implementation but the comment refers to it as 'obejectList' (which contains a typo).
    struct f : public LLSelectedObjectFunctor

Copy link
Contributor

@marchcat marchcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants