[PATCH] D46062: [clang-format] Start formatting cpp code in raw strings in google style
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 25 08:01:18 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC330832: [clang-format] Start formatting cpp code in raw strings in google style (authored by krasimir, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46062?vs=143931&id=143933#toc
Repository:
rC Clang
https://reviews.llvm.org/D46062
Files:
lib/Format/Format.cpp
Index: lib/Format/Format.cpp
===================================================================
--- lib/Format/Format.cpp
+++ lib/Format/Format.cpp
@@ -718,20 +718,39 @@
GoogleStyle.ObjCSpaceAfterProperty = false;
GoogleStyle.ObjCSpaceBeforeProtocolList = true;
GoogleStyle.PointerAlignment = FormatStyle::PAS_Left;
- GoogleStyle.RawStringFormats = {{
- FormatStyle::LK_TextProto,
- /*Delimiters=*/
+ GoogleStyle.RawStringFormats = {
{
- "pb",
- "PB",
- "proto",
- "PROTO",
+ FormatStyle::LK_Cpp,
+ /*Delimiters=*/
+ {
+ "cc",
+ "CC",
+ "cpp",
+ "Cpp",
+ "CPP",
+ "c++",
+ "C++",
+ },
+ /*EnclosingFunctionNames=*/
+ {},
+ /*CanonicalDelimiter=*/"",
+ /*BasedOnStyle=*/"google",
},
- /*EnclosingFunctionNames=*/
- {},
- /*CanonicalDelimiter=*/"",
- /*BasedOnStyle=*/"google",
- }};
+ {
+ FormatStyle::LK_TextProto,
+ /*Delimiters=*/
+ {
+ "pb",
+ "PB",
+ "proto",
+ "PROTO",
+ },
+ /*EnclosingFunctionNames=*/
+ {},
+ /*CanonicalDelimiter=*/"",
+ /*BasedOnStyle=*/"google",
+ },
+ };
GoogleStyle.SpacesBeforeTrailingComments = 2;
GoogleStyle.Standard = FormatStyle::LS_Auto;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46062.143933.patch
Type: text/x-patch
Size: 1474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180425/6bc90f23/attachment.bin>
More information about the cfe-commits
mailing list