Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.cpp120 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl); in findLocationAfterSemi() local
121 if (SemiLoc.isInvalid()) in findLocationAfterSemi()
123 return SemiLoc.getLocWithOffset(1); in findLocationAfterSemi()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPreprocessor.cpp1175 SourceLocation SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport() local
1176 if (SemiLoc.isMacroID()) in LexAfterModuleImport()
1177 Diag(SemiLoc, diag::err_header_import_semi_in_macro); in LexAfterModuleImport()
1188 /*HashLoc*/ SourceLocation(), ImportTok, Suffix.front(), SemiLoc); in LexAfterModuleImport()
1198 Suffix.back().setLocation(SemiLoc); in LexAfterModuleImport()
1199 Suffix.back().setAnnotationEndLoc(SemiLoc); in LexAfterModuleImport()
1256 SourceLocation SemiLoc = Result.getLocation(); in LexAfterModuleImport() local
1265 SemiLoc = Suffix.back().getLocation(); in LexAfterModuleImport()
1292 makeModuleVisible(Imported, SemiLoc); in LexAfterModuleImport()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseExprCXX.cpp1992 SourceLocation SemiLoc = Tok.getLocation(); in ParseCXXCondition() local
1993 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) { in ParseCXXCondition()
1994 Diag(SemiLoc, diag::warn_empty_init_statement) in ParseCXXCondition()
1996 << FixItHint::CreateRemoval(SemiLoc); in ParseCXXCondition()
1999 *InitStmt = Actions.ActOnNullStmt(SemiLoc); in ParseCXXCondition()
H A DParseStmt.cpp1838 SourceLocation SemiLoc = Tok.getLocation(); in ParseForStatement() local
1839 if (!Tok.hasLeadingEmptyMacro() && !SemiLoc.isMacroID()) in ParseForStatement()
1840 EmptyInitStmtSemiLoc = SemiLoc; in ParseForStatement()
H A DParser.cpp2309 SourceLocation SemiLoc = ConsumeToken(); in ParseModuleDecl() local
2312 << SourceRange(StartLoc, SemiLoc); in ParseModuleDecl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/
H A DTGParser.cpp2944 SMLoc SemiLoc = Lex.getLoc(); in ParseBody() local
2946 PrintError(SemiLoc, "A class or def body should not end with a semicolon"); in ParseBody()
3538 SMLoc SemiLoc = Lex.getLoc(); in ParseMultiClass() local
3540 PrintError(SemiLoc, "A multiclass body should not end with a semicolon"); in ParseMultiClass()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DStmt.h121 SourceLocation SemiLoc; variable
1374 SourceLocation getSemiLoc() const { return NullStmtBits.SemiLoc; } in getSemiLoc()
1375 void setSemiLoc(SourceLocation L) { NullStmtBits.SemiLoc = L; } in setSemiLoc()
/netbsd-src/external/apache2/llvm/dist/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.cpp15896 SourceLocation SemiLoc) { in ActOnEmptyDeclaration() argument
15897 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h2851 SourceLocation SemiLoc);
4603 StmtResult ActOnNullStmt(SourceLocation SemiLoc,