summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-09-03 02:41:17 +0000
committerNico Weber <nicolasweber@gmx.de>2016-09-03 02:41:17 +0000
commitcb7f722ffaa5b93625b48feca87115234dc99efb (patch)
tree98cc1a1729893d5b4bde14041669257c22eaac93 /clang
parent522e4d9d66c08b7f7471e7093622f3be0ef1c9a3 (diff)
downloadbcm5719-llvm-cb7f722ffaa5b93625b48feca87115234dc99efb.tar.gz
bcm5719-llvm-cb7f722ffaa5b93625b48feca87115234dc99efb.zip
Remove function name from comment.
The comment starting with "ParseDeclarationOrFunctionDefinition -" is above a function called ParseDeclOrFunctionDefInternal. Fix the comment by not mentioning a function name, like the style guide requests nowadays. No behavior change. llvm-svn: 280572
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Parse/Parser.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 0bc4680e78a..9494a138cfb 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -892,11 +892,10 @@ bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
Tok.is(tok::kw_try); // X() try { ... }
}
-/// ParseDeclarationOrFunctionDefinition - Parse either a function-definition or
-/// a declaration. We can't tell which we have until we read up to the
-/// compound-statement in function-definition. TemplateParams, if
-/// non-NULL, provides the template parameters when we're parsing a
-/// C++ template-declaration.
+/// Parse either a function-definition or a declaration. We can't tell which
+/// we have until we read up to the compound-statement in function-definition.
+/// TemplateParams, if non-NULL, provides the template parameters when we're
+/// parsing a C++ template-declaration.
///
/// function-definition: [C99 6.9.1]
/// decl-specs declarator declaration-list[opt] compound-statement
@@ -991,7 +990,7 @@ Parser::ParseDeclarationOrFunctionDefinition(ParsedAttributesWithRange &attrs,
// parsing c constructs and re-enter objc container scope
// afterwards.
ObjCDeclContextSwitch ObjCDC(*this);
-
+
return ParseDeclOrFunctionDefInternal(attrs, PDS, AS);
}
}
OpenPOWER on IntegriCloud