[all-commits] [llvm/llvm-project] 587859: clang-format: use `pb` as a canonical raw string d...
Krasimir Georgiev via All-commits
all-commits at lists.llvm.org
Tue Mar 9 00:08:11 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 587859d977e88648bee1888dce5175ef827f212e
https://github.com/llvm/llvm-project/commit/587859d977e88648bee1888dce5175ef827f212e
Author: Krasimir Georgiev <krasimir at google.com>
Date: 2021-03-09 (Tue, 09 Mar 2021)
Changed paths:
M clang/lib/Format/ContinuationIndenter.cpp
M clang/lib/Format/Format.cpp
M clang/unittests/Format/FormatTestRawStrings.cpp
Log Message:
-----------
clang-format: use `pb` as a canonical raw string delimiter for google style
This updates the canonical text proto raw string delimiter to `pb` for Google style, moving codebases towards a simpler and more consistent style.
Also updates a behavior where the canonical delimiter was not applied for raw strings with empty delimiters detected via well-known enclosing functions that expect a text proto, effectively making the canonical delimiter more viral. This feature is not widely used so this should be safe and more in line with promoting the canonicity of the canonical delimiter.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D97688
More information about the All-commits
mailing list