projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbaafe6
)
[clang-format] Support additional common functions for text proto formatting
author
Krasimir Georgiev
<krasimir@google.com>
Fri, 29 Jun 2018 14:25:25 +0000
(14:25 +0000)
committer
Krasimir Georgiev
<krasimir@google.com>
Fri, 29 Jun 2018 14:25:25 +0000
(14:25 +0000)
Summary: This adds a few more common function names expecting a text proto argument.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D48760
llvm-svn: 335978
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
741584d
..
59d3430
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/lib/Format/Format.cpp
@@
-775,8
+775,11
@@
FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
},
/*EnclosingFunctionNames=*/
{
- "PARSE_TEXT_PROTO",
"EqualsProto",
+ "EquivToProto",
+ "PARSE_TEST_PROTO",
+ "PARSE_TEXT_PROTO",
+ "ParseTextOrDie",
},
/*CanonicalDelimiter=*/"",
/*BasedOnStyle=*/"google",