[PATCH] D103286: [clang-format] Add PPIndentWidth option

Gerhard Gappmeier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 27 14:01:38 PDT 2021


gergap created this revision.
gergap added reviewers: klimek, Richard.
Herald added a subscriber: krytarowski.
gergap requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This allows to set a different indent width for preprocessor statements.

Example:

  #ifdef __linux_
  # define FOO
  #endif
  
  int main(void)
  {
      return 0;
  }


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103286

Files:
  clang/docs/ClangFormatStyleOptions.rst
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/lib/Format/UnwrappedLineFormatter.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103286.348386.patch
Type: text/x-patch
Size: 4996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210527/8239100b/attachment.bin>


More information about the cfe-commits mailing list