summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/FormatToken.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-07-09 07:50:33 +0000
committerDaniel Jasper <djasper@google.com>2014-07-09 07:50:33 +0000
commit4355e7f0effc788f1af2b48a531f650e1e40db39 (patch)
treeac6f8ba9d24bf11533cbc84e7031767f34422d7f /clang/lib/Format/FormatToken.h
parent696b4a089cde5513973dc8e2cf17684d44e74aa5 (diff)
downloadbcm5719-llvm-4355e7f0effc788f1af2b48a531f650e1e40db39.tar.gz
bcm5719-llvm-4355e7f0effc788f1af2b48a531f650e1e40db39.zip
clang-format: Revamp function declaration/definition indentation.
Key changes: - Correctly (well ...) distinguish function declarations and variable declarations with ()-initialization. - Don't indent when breaking function declarations/definitions after the return type. - Indent variable declarations and typedefs when breaking after the type. This fixes llvm.org/PR17999. llvm-svn: 212591
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
-rw-r--r--clang/lib/Format/FormatToken.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h
index 26fa061767b..d83804e2e04 100644
--- a/clang/lib/Format/FormatToken.h
+++ b/clang/lib/Format/FormatToken.h
@@ -40,6 +40,7 @@ enum TokenType {
TT_CtorInitializerComma,
TT_DesignatedInitializerPeriod,
TT_DictLiteral,
+ TT_FunctionDeclarationName,
TT_FunctionLBrace,
TT_FunctionTypeLParen,
TT_ImplicitStringLiteral,
OpenPOWER on IntegriCloud