Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp118 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl); in findLocationAfterSemi() local
119 if (SemiLoc.isInvalid()) in findLocationAfterSemi()
121 return SemiLoc.getLocWithOffset(1); in findLocationAfterSemi()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h454 SourceLocation SemiLoc = P.ConsumeToken(); in consumeClose() local
455 P.Diag(SemiLoc, diag::err_unexpected_semi) in consumeClose()
456 << Close << FixItHint::CreateRemoval(SourceRange(SemiLoc, SemiLoc)); in consumeClose()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessor.cpp1209 SourceLocation SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport() local
1210 if (SemiLoc.isMacroID()) in LexAfterModuleImport()
1211 Diag(SemiLoc, diag::err_header_import_semi_in_macro); in LexAfterModuleImport()
1222 /*HashLoc*/ SourceLocation(), ImportTok, Suffix.front(), SemiLoc); in LexAfterModuleImport()
1232 Suffix.back().setLocation(SemiLoc); in LexAfterModuleImport()
1233 Suffix.back().setAnnotationEndLoc(SemiLoc); in LexAfterModuleImport()
1291 SourceLocation SemiLoc = Result.getLocation(); in LexAfterModuleImport() local
1300 SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport()
1327 makeModuleVisible(Imported, SemiLoc); in LexAfterModuleImport()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp182 const SourceLocation SemiLoc = Range.getEnd().getLocWithOffset(1); in TEST() local
183 const auto ExpectedAfter = CharSourceRange::getCharRange(SemiLoc, SemiLoc); in TEST()
186 auto CharRange = CharSourceRange::getCharRange(Range.getBegin(), SemiLoc); in TEST()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExprCXX.cpp2019 SourceLocation SemiLoc = Tok.getLocation(); in ParseCXXCondition() local
2020 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) { in ParseCXXCondition()
2021 Diag(SemiLoc, diag::warn_empty_init_statement) in ParseCXXCondition()
2023 << FixItHint::CreateRemoval(SemiLoc); in ParseCXXCondition()
2026 *InitStmt = Actions.ActOnNullStmt(SemiLoc); in ParseCXXCondition()
H A DParseStmt.cpp1983 SourceLocation SemiLoc = Tok.getLocation(); in ParseForStatement() local
1984 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) in ParseForStatement()
1985 EmptyInitStmtSemiLoc = SemiLoc; in ParseForStatement()
H A DParser.cpp2365 SourceLocation SemiLoc = ConsumeToken(); in ParseModuleDecl() local
2368 << SourceRange(StartLoc, SemiLoc); in ParseModuleDecl()
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGParser.cpp3000 SMLoc SemiLoc = Lex.getLoc(); in ParseBody() local
3002 PrintError(SemiLoc, "A class or def body should not end with a semicolon"); in ParseBody()
3602 SMLoc SemiLoc = Lex.getLoc(); in ParseMultiClass() local
3604 PrintError(SemiLoc, "A multiclass body should not end with a semicolon"); in ParseMultiClass()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h123 SourceLocation SemiLoc; in alignas() local
1382 SourceLocation getSemiLoc() const { return NullStmtBits.SemiLoc; } in getSemiLoc()
1383 void setSemiLoc(SourceLocation L) { NullStmtBits.SemiLoc = L; } in setSemiLoc()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp68 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument
70 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
H A DSemaDeclCXX.cpp16352 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument
16353 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h3067 SourceLocation SemiLoc);
4895 StmtResult ActOnNullStmt(SourceLocation SemiLoc,