Skip to content

Use emplace_back for filesystem paths - #88

Merged
jwillemsen merged 1 commit into
DOCGroup:masterfrom
jwillemsen:dance-config-handlers-xsd
Oct 23, 2026
Merged

jwillemsen merged 1 commit into
DOCGroup:masterfrom
jwillemsen:dance-config-handlers-xsd

Conversation

@jwillemsen

@jwillemsen jwillemsen commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Improvements
    • Parser search paths retain their configured order, including the default path and any paths supplied by users. This provides consistent ordering when the parser searches for files.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e97a0617-5ff1-4920-9cd7-acf8e794450d
📥 Commits

Reviewing files that changed from the base of the PR and between b4a4c1d and 702ae16.

📒 Files selected for processing: 1
  • XSC/xsc.cpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The parser search-path list now receives the default empty entry and user-supplied paths as strings, without converting them to std::filesystem::path objects.

Changes

Search-path handling

Layer / File(s) Summary
Append search-path values
XSC/xsc.cpp
The default empty entry and each supplied search path are appended as strings. The existing exception handling and error return remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Refactor

Possibly related PRs

  • DOCGroup/XSC#84: Changes the same search-path handling and precedes this string-insertion refinement.
Merge Risk: ⚪ Minimal · up to 702ae

The search-path insertion change is mergeable with no identified blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title accurately and concisely describes the main change: using emplace_back to add filesystem paths.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the paths in line,
The empty entry starts the sign.
Each string hops in without a guise,
No path conversion meets its eyes.
The list stays ordered, neat, and bright.

Comment @coderabbitai help to get the list of available commands.

@jwillemsen
jwillemsen merged commit 3d7331d into DOCGroup:master Oct 23, 2026
4 checks passed
@jwillemsen
jwillemsen deleted the dance-config-handlers-xsd branch October 23, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant