[all-commits] [llvm/llvm-project] 024f45: [clang-format] Simplify the AfterPlacementOperator...

Owen Pan via All-commits all-commits at lists.llvm.org
Tue Feb 6 16:07:58 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 024f45e9ed23da66802c49847b82151dfdb70766
      https://github.com/llvm/llvm-project/commit/024f45e9ed23da66802c49847b82151dfdb70766
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/ConfigParseTest.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Simplify the AfterPlacementOperator option (#79796)

Change AfterPlacementOperator to a boolean and deprecate SBPO_Never,
which meant never inserting a space except when after new/delete.

Fixes #78892.

(cherry picked from commit 908fd09a13b2e89a52282478544f7f70cf0a887f)




More information about the All-commits mailing list