Unverified Commit 95403b42 authored by Dmitry Polukhin's avatar Dmitry Polukhin Committed by GitHub
Browse files

Apply format only if --format is specified (#79466)

clang-apply-replacements used to apply format even without --format is
specified. This because, methods like createReplacementsForHeaders only
takes the Spec.Style and would re-order the headers even when it was not
requested. The fix is to set up Spec.Style only if --format is provided.

Also added note to ReleaseNotes.rst

Based on https://github.com/llvm/llvm-project/pull/70801



---------

Co-authored-by: default avatarKugan <34810920+kuganv@users.noreply.github.com>
Co-authored-by: default avatarAaron Ballman <aaron@aaronballman.com>
parent 3e230bb6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment