summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDeclCXX.cpp
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
commit9b01ca1f5a6a413d4e31504ee1684dbb61727612 (patch)
treebe0e2c4d908348c0debe77764511fde9d0aa3a4e /clang/lib/Parse/ParseDeclCXX.cpp
parent697867dadd2741747368b90ec3efd4c6283fa70d (diff)
downloadbcm5719-llvm-9b01ca1f5a6a413d4e31504ee1684dbb61727612.tar.gz
bcm5719-llvm-9b01ca1f5a6a413d4e31504ee1684dbb61727612.zip
minor code cleanups, reduce indentation since 'if' block can't fall through.
llvm-svn: 61795
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r--clang/lib/Parse/ParseDeclCXX.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index 0b06006d9d0..3dabf2e40eb 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud