Skip to content

docs(pch): link the upstream clang report (#4849) - #4855

Merged
zackees merged 1 commit into
masterfrom
docs/pch-llvm-upstream-4849
Oct 16, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/pch-llvm-upstream-4849

Conversation

@zackees

@zackees zackees commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Closes #4849. Part of #4844.

I reproduced the bug on stock clang 21.1.8 using the minimal repro in agents/docs/testing-commands.md. The fresh PCH compiles; after touch a.h, the same compile fails with template parameter redefines default argument / redefinition of 'f'. I searched for an existing LLVM issue (none), then filed llvm/llvm-project#232564.

This PR links the upstream report from the Precompiled Header Invariant docs section and from inputs_newer_than() in ci/compile_pch.py, and says to keep the mtime rule even after an upstream fix, because FastLED's toolchain may not include it. No code behavior changes.

Summary by CodeRabbit

  • Documentation
    • Added references to the upstream LLVM issue and FastLED issue #4849 for the PCH invariant.
    • Clarified that the modification-time rule remains in effect even if a future Clang release fixes the upstream issue.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6bc806f3-977c-461e-8888-267cc1757ff4
📥 Commits

Reviewing files that changed from the base of the PR and between 647c0d1 and 613c7c1.

📒 Files selected for processing: 2
  • agents/docs/testing-commands.md
  • ci/compile_pch.py

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

📝 Walkthrough

The PCH testing documentation and inputs_newer_than comment now reference an LLVM issue and FastLED issue #4849. The documentation also states that the mtime rule remains in effect if a later Clang release fixes the issue.

Changes: PCH invariant references

Layer / File(s) Summary
Document the PCH mtime invariant
agents/docs/testing-commands.md, ci/compile_pch.py
The documentation adds the issue references and retains the mtime rule if a later Clang release fixes the issue. The inputs_newer_than comment adds the LLVM issue and FastLED issue references.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: ⚪ Minimal · up to 613c7

The PR adds issue references and guidance without changing build behavior. The existing mtime rule remains consistent with the implementation, and no actionable merge risk is identified.

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 clearly describes the main change: linking the upstream Clang report for the PCH issue. It is concise and specific.
Linked Issues check Passed Issue #4849 requires filing the Clang PCH bug with a minimal repro and linking the upstream report. The supplied PR evidence states that llvm/llvm-project#232564 was filed with the reported clang 21.1…
Out of Scope Changes check Passed The reported changes add upstream issue references and explanatory documentation in agents/docs/testing-commands.md and ci/compile_pch.py. These changes directly support issue #4849 and do not add…
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. (1 skipped: 1 …
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • 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

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

@zackees
zackees merged commit c00f6e1 into master Oct 16, 2026
119 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Oct 16, 2026
@zackees
zackees deleted the docs/pch-llvm-upstream-4849 branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

upstream: report clang PCH bug (touched header breaks #pragma once with -fpch-validate-input-files-content)

1 participant