summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-08-21 08:39:01 +0000
committerDaniel Jasper <djasper@google.com>2013-08-21 08:39:01 +0000
commitf110e201e42742318199576d7009d5bc6a22f990 (patch)
tree22b3055891d2da897c0d230a0f6fb9d99f855af8 /clang/lib/Format/Format.cpp
parent179264794242e3fe322ef287e2687c980b2609c5 (diff)
downloadbcm5719-llvm-f110e201e42742318199576d7009d5bc6a22f990.tar.gz
bcm5719-llvm-f110e201e42742318199576d7009d5bc6a22f990.zip
clang-format: Indent relative to unary operators.
Before: if (!aaaaaaaaaa( // break aaaaa)) { } After: if (!aaaaaaaaaa( // break aaaaa)) { } Also cleaned up formatting using clang-format. llvm-svn: 188891
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c4a5e88de77..1bc0562bc0b 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -138,8 +138,7 @@ template <> struct MappingTraits<clang::format::FormatStyle> {
IO.mapOptional("IndentFunctionDeclarationAfterType",
Style.IndentFunctionDeclarationAfterType);
IO.mapOptional("SpacesInParentheses", Style.SpacesInParentheses);
- IO.mapOptional("SpaceInEmptyParentheses",
- Style.SpaceInEmptyParentheses);
+ IO.mapOptional("SpaceInEmptyParentheses", Style.SpaceInEmptyParentheses);
IO.mapOptional("SpacesInCStyleCastParentheses",
Style.SpacesInCStyleCastParentheses);
IO.mapOptional("SpaceAfterControlStatementKeyword",
@@ -318,8 +317,7 @@ namespace {
class NoColumnLimitFormatter {
public:
- NoColumnLimitFormatter(ContinuationIndenter *Indenter)
- : Indenter(Indenter) {}
+ NoColumnLimitFormatter(ContinuationIndenter *Indenter) : Indenter(Indenter) {}
/// \brief Formats the line starting at \p State, simply keeping all of the
/// input's line breaking decisions.
@@ -332,6 +330,7 @@ public:
Indenter->addTokenToState(State, Newline, /*DryRun=*/false);
}
}
+
private:
ContinuationIndenter *Indenter;
};
OpenPOWER on IntegriCloud