summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-09 16:47:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-09 16:47:52 +0000
commit8407df72a3b7a6bee199ce321fa4731dc8be241b (patch)
treef8b9822aa347c52ebe19ddb213caf297edf54c0f /clang/lib/Format
parent58ea3e35d0139c3afd5a07a0ca9a7fcf70ac6eb2 (diff)
downloadbcm5719-llvm-8407df72a3b7a6bee199ce321fa4731dc8be241b.tar.gz
bcm5719-llvm-8407df72a3b7a6bee199ce321fa4731dc8be241b.zip
Make helper functions static. NFC.
Found by -Wmissing-prototypes. llvm-svn: 231668
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp
index 800ec77f3ea..52224180d5b 100644
--- a/clang/lib/Format/UnwrappedLineParser.cpp
+++ b/clang/lib/Format/UnwrappedLineParser.cpp
@@ -605,7 +605,7 @@ void UnwrappedLineParser::parsePPUnknown() {
// Here we blacklist certain tokens that are not usually the first token in an
// unwrapped line. This is used in attempt to distinguish macro calls without
// trailing semicolons from other constructs split to several lines.
-bool tokenCanStartNewLine(clang::Token Tok) {
+static bool tokenCanStartNewLine(const clang::Token &Tok) {
// Semicolon can be a null-statement, l_square can be a start of a macro or
// a C++11 attribute, but this doesn't seem to be common.
return Tok.isNot(tok::semi) && Tok.isNot(tok::l_brace) &&
OpenPOWER on IntegriCloud