Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/ARCMigrate/
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()
DTransforms.cpp120 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl); in findLocationAfterSemi() local
121 if (SemiLoc.isInvalid()) in findLocationAfterSemi()
123 return SemiLoc.getLocWithOffset(1); in findLocationAfterSemi()
/external/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp38 SourceLocation SemiLoc = S->getSemiLoc(); in isEmptyARCMTMacroStatement() local
39 if (SemiLoc.isInvalid() || SemiLoc.isMacroID()) in isEmptyARCMTMacroStatement()
47 I = std::upper_bound(MacroLocs.begin(), MacroLocs.end(), SemiLoc, in isEmptyARCMTMacroStatement()
54 if (AfterMacroLoc == SemiLoc) in isEmptyARCMTMacroStatement()
58 if (!SM.isInSameSLocAddrSpace(AfterMacroLoc, SemiLoc, &RelOffs)) in isEmptyARCMTMacroStatement()
71 return AfterMacroSemiLoc == SemiLoc; in isEmptyARCMTMacroStatement()
DTransforms.cpp125 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl); in findLocationAfterSemi() local
126 if (SemiLoc.isInvalid()) in findLocationAfterSemi()
128 return SemiLoc.getLocWithOffset(1); in findLocationAfterSemi()
/external/llvm-project/clang/include/clang/Parse/
DRAIIObjectsForParser.h451 SourceLocation SemiLoc = P.ConsumeToken(); in consumeClose() local
452 P.Diag(SemiLoc, diag::err_unexpected_semi) in consumeClose()
453 << Close << FixItHint::CreateRemoval(SourceRange(SemiLoc, SemiLoc)); in consumeClose()
/external/clang/lib/Parse/
DRAIIObjectsForParser.h433 SourceLocation SemiLoc = P.ConsumeToken(); in consumeClose() local
434 P.Diag(SemiLoc, diag::err_unexpected_semi) in consumeClose()
435 << Close << FixItHint::CreateRemoval(SourceRange(SemiLoc, SemiLoc)); in consumeClose()
/external/llvm-project/clang/lib/Lex/
DPreprocessor.cpp1179 SourceLocation SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport() local
1180 if (SemiLoc.isMacroID()) in LexAfterModuleImport()
1181 Diag(SemiLoc, diag::err_header_import_semi_in_macro); in LexAfterModuleImport()
1192 /*HashLoc*/ SourceLocation(), ImportTok, Suffix.front(), SemiLoc); in LexAfterModuleImport()
1202 Suffix.back().setLocation(SemiLoc); in LexAfterModuleImport()
1203 Suffix.back().setAnnotationEndLoc(SemiLoc); in LexAfterModuleImport()
1260 SourceLocation SemiLoc = Result.getLocation(); in LexAfterModuleImport() local
1269 SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport()
1296 makeModuleVisible(Imported, SemiLoc); in LexAfterModuleImport()
/external/llvm-project/clang/unittests/Tooling/
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()
/external/clang/include/clang/AST/
DStmt.h512 SourceLocation SemiLoc; variable
522 : Stmt(NullStmtClass), SemiLoc(L), in Stmt()
529 SourceLocation getSemiLoc() const { return SemiLoc; } in getSemiLoc()
530 void setSemiLoc(SourceLocation L) { SemiLoc = L; } in setSemiLoc()
534 SourceLocation getLocStart() const LLVM_READONLY { return SemiLoc; } in getLocStart()
535 SourceLocation getLocEnd() const LLVM_READONLY { return SemiLoc; } in getLocEnd()
/external/llvm-project/clang/lib/Parse/
DParseExprCXX.cpp2015 SourceLocation SemiLoc = Tok.getLocation(); in ParseCXXCondition() local
2016 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) { in ParseCXXCondition()
2017 Diag(SemiLoc, diag::warn_empty_init_statement) in ParseCXXCondition()
2019 << FixItHint::CreateRemoval(SemiLoc); in ParseCXXCondition()
2022 *InitStmt = Actions.ActOnNullStmt(SemiLoc); in ParseCXXCondition()
DParseStmt.cpp1835 SourceLocation SemiLoc = Tok.getLocation(); in ParseForStatement() local
1836 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) in ParseForStatement()
1837 EmptyInitStmtSemiLoc = SemiLoc; in ParseForStatement()
DParser.cpp2299 SourceLocation SemiLoc = ConsumeToken(); in ParseModuleDecl() local
2302 << SourceRange(StartLoc, SemiLoc); in ParseModuleDecl()
/external/llvm-project/clang/include/clang/AST/
DStmt.h121 SourceLocation SemiLoc; variable
1374 SourceLocation getSemiLoc() const { return NullStmtBits.SemiLoc; } in getSemiLoc()
1375 void setSemiLoc(SourceLocation L) { NullStmtBits.SemiLoc = L; } in setSemiLoc()
/external/clang/lib/Sema/
DSemaStmt.cpp67 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument
69 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
DSemaDeclCXX.cpp12172 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument
12173 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp67 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument
69 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
DSemaDeclCXX.cpp15822 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument
15823 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
/external/clang/include/clang/Sema/
DSema.h1847 SourceLocation SemiLoc);
3343 StmtResult ActOnNullStmt(SourceLocation SemiLoc,
/external/llvm-project/clang/include/clang/Sema/
DSema.h2718 SourceLocation SemiLoc);
4463 StmtResult ActOnNullStmt(SourceLocation SemiLoc,