pdfium/.clang-format
Lei Zhang 7c84cdac7e Sync .clang-format with the Chromium copy.
Set the InsertBraces and Standard rules.

Change-Id: I0791c89eae05c4191c71a2c762619f89706599c2
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/103222
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2023-01-17 22:36:58 +00:00

13 lines
578 B
YAML

# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
# This defaults to 'Auto'. Explicitly set it for a while, so that
# 'vector<vector<int> >' in existing files gets formatted to
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
# 'int>>' if the file already contains at least one such instance.)
Standard: Cpp11
# TODO(crbug.com/1392808): Remove when InsertBraces has been upstreamed into
# the Chromium style (is implied by BasedOnStyle: Chromium).
InsertBraces: true