Home
last modified time | relevance | path

Searched refs:IfLoc (Results 1 – 15 of 15) sorted by relevance

/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DPPCallbacks.h369 ConditionValueKind ConditionValue, SourceLocation IfLoc) { in Elif() argument
393 SourceLocation IfLoc) { in Elifdef() argument
417 SourceLocation IfLoc) { in Elifndef() argument
423 virtual void Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
429 virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
649 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
650 First->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
651 Second->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
669 SourceLocation IfLoc) override { in Elifdef() argument
670 First->Elifdef(Loc, ConditionRange, IfLoc); in Elifdef()
[all …]
H A DPPConditionalDirectiveRecord.h91 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
99 SourceLocation IfLoc) override;
103 SourceLocation IfLoc) override;
104 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
105 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
H A DPreprocessorLexer.h96 CI.IfLoc = DirectiveStart; in pushConditionalLevel()
H A DToken.h319 SourceLocation IfLoc; member
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DPPConditionalDirectiveRecord.cpp99 SourceLocation IfLoc) { in Elif() argument
127 SourceLocation IfLoc) { in Else() argument
133 SourceLocation IfLoc) { in Endif() argument
H A DPPDirectives.cpp661 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
692 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
731 CondInfo.IfLoc); in SkipExcludedConditionalBlock()
3366 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
3391 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
3399 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
3405 SkipExcludedConditionalBlock(HashToken.getLocation(), CI.IfLoc, in HandleElseDirective()
3459 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifFamilyDirective()
3462 Callbacks->Elifdef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
3465 Callbacks->Elifndef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
[all …]
H A DLexer.cpp3035 PP->Diag(ConditionalStack.back().IfLoc, in LexEndOfFile()
/openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp83 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
208 SourceLocation IfLoc) { in Elif() argument
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmt.h181 SourceLocation IfLoc; variable
2111 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; } in getIfLoc()
2112 void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; } in setIfLoc() argument
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseStmt.cpp1441 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1495 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1527 MisleadingIndentationChecker MIChecker(*this, MSK_if, IfLoc); in ParseIfStatement()
1650 return Actions.ActOnIfStmt(IfLoc, Kind, LParen, InitStmt.get(), Cond, RParen, in ParseIfStatement()
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp503 SourceLocation IfLoc = CurLoc; in ParseIfExpr() local
529 return std::make_unique<IfExprAST>(IfLoc, std::move(Cond), std::move(Then), in ParseIfExpr()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaStmt.cpp878 StmtResult Sema::ActOnIfStmt(SourceLocation IfLoc, in ActOnIfStmt() argument
909 Diags.Report(IfLoc, in ActOnIfStmt()
912 << SourceRange(IfLoc, (ConstevalOrNegatedConsteval in ActOnIfStmt()
943 Diags.Report(IfLoc, diag::warn_consteval_if_always_true) << Immediate; in ActOnIfStmt()
946 return BuildIfStmt(IfLoc, StatementKind, LParenLoc, InitStmt, Cond, RParenLoc, in ActOnIfStmt()
950 StmtResult Sema::BuildIfStmt(SourceLocation IfLoc, in BuildIfStmt() argument
963 return IfStmt::Create(Context, IfLoc, StatementKind, InitStmt, in BuildIfStmt()
H A DTreeTransform.h1369 StmtResult RebuildIfStmt(SourceLocation IfLoc, IfStatementKind Kind, in RebuildIfStmt() argument
1373 return getSema().ActOnIfStmt(IfLoc, Kind, LParenLoc, Init, Cond, RParenLoc, in RebuildIfStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h5078 StmtResult ActOnIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
5082 StmtResult BuildIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTWriter.cpp2329 AddSourceLocation(Cond.IfLoc, Record); in WritePreprocessor()