Home
last modified time | relevance | path

Searched refs:SemiLoc (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp37 SourceLocation SemiLoc = S->getSemiLoc(); in isEmptyARCMTMacroStatement() local
38 if (SemiLoc.isInvalid() || SemiLoc.isMacroID()) in isEmptyARCMTMacroStatement()
46 MacroLocs, SemiLoc, BeforeThanCompare<SourceLocation>(SM)); in isEmptyARCMTMacroStatement()
52 if (AfterMacroLoc == SemiLoc) in isEmptyARCMTMacroStatement()
56 if (!SM.isInSameSLocAddrSpace(AfterMacroLoc, SemiLoc, &RelOffs)) in isEmptyARCMTMacroStatement()
69 return AfterMacroSemiLoc == SemiLoc; in isEmptyARCMTMacroStatement()
H A DTransforms.cpp119 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl); in findLocationAfterSemi() local
120 if (SemiLoc.isInvalid()) in findLocationAfterSemi()
122 return SemiLoc.getLocWithOffset(1); in findLocationAfterSemi()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h486 SourceLocation SemiLoc = P.ConsumeToken(); in consumeClose() local
487 P.Diag(SemiLoc, diag::err_unexpected_semi) in consumeClose()
488 << Close << FixItHint::CreateRemoval(SourceRange(SemiLoc, SemiLoc)); in consumeClose()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp1200 SourceLocation SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport() local
1201 if (SemiLoc.isMacroID()) in LexAfterModuleImport()
1202 Diag(SemiLoc, diag::err_header_import_semi_in_macro); in LexAfterModuleImport()
1213 /*HashLoc*/ SourceLocation(), ImportTok, Suffix.front(), SemiLoc); in LexAfterModuleImport()
1223 Suffix.back().setLocation(SemiLoc); in LexAfterModuleImport()
1224 Suffix.back().setAnnotationEndLoc(SemiLoc); in LexAfterModuleImport()
1282 SourceLocation SemiLoc = Result.getLocation(); in LexAfterModuleImport() local
1291 SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport()
1320 makeModuleVisible(Imported, SemiLoc); in LexAfterModuleImport()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp2179 SourceLocation SemiLoc = Tok.getLocation(); in ParseCXXCondition() local
2180 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) { in ParseCXXCondition()
2181 Diag(SemiLoc, diag::warn_empty_init_statement) in ParseCXXCondition()
2183 << FixItHint::CreateRemoval(SemiLoc); in ParseCXXCondition()
2186 *InitStmt = Actions.ActOnNullStmt(SemiLoc); in ParseCXXCondition()
H A DParseStmt.cpp2071 SourceLocation SemiLoc = Tok.getLocation(); in ParseForStatement() local
2072 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) in ParseForStatement()
2073 EmptyInitStmtSemiLoc = SemiLoc; in ParseForStatement()
H A DParser.cpp2482 SourceLocation SemiLoc = ConsumeToken(); in ParseModuleDecl() local
2485 << SourceRange(StartLoc, SemiLoc); in ParseModuleDecl()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp3515 SMLoc SemiLoc = Lex.getLoc(); in ParseBody() local
3517 PrintError(SemiLoc, "A class or def body should not end with a semicolon"); in ParseBody()
4185 SMLoc SemiLoc = Lex.getLoc(); in ParseMultiClass() local
4187 PrintError(SemiLoc, "A multiclass body should not end with a semicolon"); in ParseMultiClass()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h140 SourceLocation SemiLoc;
1580 SourceLocation getSemiLoc() const { return NullStmtBits.SemiLoc; }
1581 void setSemiLoc(SourceLocation L) { NullStmtBits.SemiLoc = L; }
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp74 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument
76 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
H A DSemaDeclCXX.cpp16735 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument
16736 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h5943 SourceLocation SemiLoc);
10669 StmtResult ActOnNullStmt(SourceLocation SemiLoc,