[PATCH] D136100: [clang-format] Do not parse certain characters in pragma directives

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 12 06:09:47 PST 2022


jhuber6 added a comment.

In D136100#3988424 <https://reviews.llvm.org/D136100#3988424>, @hans wrote:

> Chromium is seeing a formatting regression after this: https://github.com/llvm/llvm-project/issues/59473

My guess is from this line, we could be more specific on the type of pragma.

  if (State.Line->InPragmaDirective)
    return CurrentState.Indent + Style.ContinuationIndentWidth;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136100/new/

https://reviews.llvm.org/D136100



More information about the cfe-commits mailing list