/external/llvm-project/clang/lib/ARCMigrate/ |
D | TransEmptyStatementsAndDealloc.cpp | 37 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()
|
D | Transforms.cpp | 120 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/ |
D | TransEmptyStatementsAndDealloc.cpp | 38 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()
|
D | Transforms.cpp | 125 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/ |
D | RAIIObjectsForParser.h | 451 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/ |
D | RAIIObjectsForParser.h | 433 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/ |
D | Preprocessor.cpp | 1179 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/ |
D | RangeSelectorTest.cpp | 182 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/ |
D | Stmt.h | 512 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/ |
D | ParseExprCXX.cpp | 2015 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()
|
D | ParseStmt.cpp | 1835 SourceLocation SemiLoc = Tok.getLocation(); in ParseForStatement() local 1836 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) in ParseForStatement() 1837 EmptyInitStmtSemiLoc = SemiLoc; in ParseForStatement()
|
D | Parser.cpp | 2299 SourceLocation SemiLoc = ConsumeToken(); in ParseModuleDecl() local 2302 << SourceRange(StartLoc, SemiLoc); in ParseModuleDecl()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Stmt.h | 121 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/ |
D | SemaStmt.cpp | 67 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument 69 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
|
D | SemaDeclCXX.cpp | 12172 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument 12173 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaStmt.cpp | 67 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt() argument 69 return new (Context) NullStmt(SemiLoc, HasLeadingEmptyMacro); in ActOnNullStmt()
|
D | SemaDeclCXX.cpp | 15822 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument 15823 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1847 SourceLocation SemiLoc); 3343 StmtResult ActOnNullStmt(SourceLocation SemiLoc,
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 2718 SourceLocation SemiLoc); 4463 StmtResult ActOnNullStmt(SourceLocation SemiLoc,
|