aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2022-08-11 15:30:05 +0800
committerJun Zhang <jun@junz.org>2022-08-11 21:47:19 +0800
commitefc75a2baedc7405193e3e0f5ea9aaa881783cec (patch)
tree388f00f9c9a8a0626bbb2ad481ecd941de3fc220 /clang/lib/Parse/ParseDecl.cpp
parent55e511f9f61992ff57741148a92cd2f6b6a21337 (diff)
downloadllvm-efc75a2baedc7405193e3e0f5ea9aaa881783cec.zip
llvm-efc75a2baedc7405193e3e0f5ea9aaa881783cec.tar.gz
llvm-efc75a2baedc7405193e3e0f5ea9aaa881783cec.tar.bz2
Remove redundant condition check, NFC
Signed-off-by: Jun Zhang <jun@junz.org>
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 72d4804..39ba93e 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2078,10 +2078,8 @@ Parser::DeclGroupPtrTy Parser::ParseDeclGroup(ParsingDeclSpec &DS,
<< (Fixit ? FixItHint::CreateInsertion(D.getBeginLoc(), "_Noreturn ")
: FixItHint());
}
- }
- // Check to see if we have a function *definition* which must have a body.
- if (D.isFunctionDeclarator()) {
+ // Check to see if we have a function *definition* which must have a body.
if (Tok.is(tok::equal) && NextToken().is(tok::code_completion)) {
cutOffParsing();
Actions.CodeCompleteAfterFunctionEquals(D);