• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/

Lines Matching defs:LM

134   LexedMethod* LM = new LexedMethod(this, FnD);
135 getCurrentClass().LateParsedDeclarations.push_back(LM);
136 CachedTokens &Toks = LM->Toks;
328 void Parser::ParseLexedMethodDeclaration(LateParsedMethodDeclaration &LM) {
330 ReenterTemplateScopeRAII InFunctionTemplateScope(*this, LM.Method);
333 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
340 for (unsigned I = 0, N = LM.DefaultArgs.size(); I != N; ++I) {
341 auto Param = cast<ParmVarDecl>(LM.DefaultArgs[I].Param);
345 std::unique_ptr<CachedTokens> Toks = std::move(LM.DefaultArgs[I].Toks);
408 FunctionDecl *Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl();
420 if (CachedTokens *Toks = LM.ExceptionSpecTokens) {
429 ExceptionSpecEnd.setEofData(LM.Method);
447 = dyn_cast<FunctionTemplateDecl>(LM.Method))
450 Method = cast<CXXMethodDecl>(LM.Method);
469 if (Tok.isNot(tok::eof) || Tok.getEofData() != LM.Method)
473 Actions.actOnDelayedExceptionSpecification(LM.Method, EST,
486 if (Tok.is(tok::eof) && Tok.getEofData() == LM.Method)
490 LM.ExceptionSpecTokens = nullptr;
496 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method);
509 void Parser::ParseLexedMethodDef(LexedMethod &LM) {
511 ReenterTemplateScopeRAII InFunctionTemplateScope(*this, LM.D);
515 assert(!LM.Toks.empty() && "Empty body!");
516 Token LastBodyToken = LM.Toks.back();
521 BodyEnd.setEofData(LM.D);
522 LM.Toks.push_back(BodyEnd);
525 LM.Toks.push_back(Tok);
526 PP.EnterTokenStream(LM.Toks, true, /*IsReinject*/true);
537 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D);
540 ParseFunctionTryBlock(LM.D, FnScope);
545 if (Tok.is(tok::eof) && Tok.getEofData() == LM.D)
550 ParseConstructorInitializer(LM.D);
555 Actions.ActOnFinishFunctionBody(LM.D, nullptr);
560 if (Tok.is(tok::eof) && Tok.getEofData() == LM.D)
565 Actions.ActOnDefaultCtorInitializers(LM.D);
568 !isa<FunctionTemplateDecl>(LM.D) ||
569 cast<FunctionTemplateDecl>(LM.D)->getTemplateParameters()->getDepth()
574 ParseFunctionStatementBody(LM.D, FnScope);
579 if (Tok.is(tok::eof) && Tok.getEofData() == LM.D)
582 if (auto *FD = dyn_cast_or_null<FunctionDecl>(LM.D))