aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-06 06:55:51 +0000
committerChris Lattner <sabre@nondot.org>2009-01-06 06:55:51 +0000
commit2f27477a29b6f5365ee545c1cac666cc8b95f518 (patch)
treeb8aea8ba161e87eceed38b04400e2723ece63dec /lib/Parse
parent1dd2adabee75eca42b3d5e4556b13efc6898ff4f (diff)
minor code cleanups, reduce indentation since 'if' block can't fall through.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse')
-rw-r--r--lib/Parse/ParseDeclCXX.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp
index 0b06006d9d..3dabf2e40e 100644
--- a/lib/Parse/ParseDeclCXX.cpp
+++ b/lib/Parse/ParseDeclCXX.cpp
@@ -134,20 +134,18 @@ Parser::DeclTy *Parser::ParseLinkage(unsigned Context) {
/// ParseUsingDirectiveOrDeclaration - Parse C++ using using-declaration or
/// using-directive. Assumes that current token is 'using'.
-Parser::DeclTy *Parser::ParseUsingDirectiveOrDeclaration(unsigned Context)
-{
+Parser::DeclTy *Parser::ParseUsingDirectiveOrDeclaration(unsigned Context) {
assert(Tok.is(tok::kw_using) && "Not using token");
// Eat 'using'.
SourceLocation UsingLoc = ConsumeToken();
- if (Tok.is(tok::kw_namespace)) {
+ if (Tok.is(tok::kw_namespace))
// Next token after 'using' is 'namespace' so it must be using-directive
return ParseUsingDirective(Context, UsingLoc);
- } else {
- // Otherwise, it must be using-declaration.
- return ParseUsingDeclaration(Context, UsingLoc); //FIXME: It is just stub.
- }
+
+ // Otherwise, it must be using-declaration.
+ return ParseUsingDeclaration(Context, UsingLoc);
}
/// ParseUsingDirective - Parse C++ using-directive, assumes