Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPPCallbacks.h405 ConditionValueKind ConditionValue, SourceLocation IfLoc) { in Elif() argument
429 SourceLocation IfLoc) { in Elifdef() argument
453 SourceLocation IfLoc) { in Elifndef() argument
459 virtual void Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
465 virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
707 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
708 First->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
709 Second->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
727 SourceLocation IfLoc) override { in Elifdef() argument
728 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 DToken.h327 SourceLocation IfLoc; member
/freebsd/contrib/llvm-project/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.cpp682 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
713 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
752 CondInfo.IfLoc); in SkipExcludedConditionalBlock()
3500 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
3525 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
3533 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
3539 SkipExcludedConditionalBlock(HashToken.getLocation(), CI.IfLoc, in HandleElseDirective()
3593 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifFamilyDirective()
3596 Callbacks->Elifdef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
3599 Callbacks->Elifndef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
[all …]
H A DLexer.cpp3161 PP->Diag(ConditionalStack.back().IfLoc, in LexEndOfFile()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp84 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
212 SourceLocation IfLoc) { in Elif() argument
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp1503 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1560 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1592 MisleadingIndentationChecker MIChecker(*this, MSK_if, IfLoc); in ParseIfStatement()
1715 return Actions.ActOnIfStmt(IfLoc, Kind, LParen, InitStmt.get(), Cond, RParen, in ParseIfStatement()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h205 SourceLocation IfLoc;
2309 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; }
2310 void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; }
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp908 StmtResult Sema::ActOnIfStmt(SourceLocation IfLoc, in ActOnIfStmt() argument
939 Diags.Report(IfLoc, in ActOnIfStmt()
942 << SourceRange(IfLoc, (ConstevalOrNegatedConsteval in ActOnIfStmt()
974 Diags.Report(IfLoc, diag::warn_consteval_if_always_true) << Immediate; in ActOnIfStmt()
977 return BuildIfStmt(IfLoc, StatementKind, LParenLoc, InitStmt, Cond, RParenLoc, in ActOnIfStmt()
981 StmtResult Sema::BuildIfStmt(SourceLocation IfLoc, in BuildIfStmt() argument
994 return IfStmt::Create(Context, IfLoc, StatementKind, InitStmt, in BuildIfStmt()
H A DTreeTransform.h1415 StmtResult RebuildIfStmt(SourceLocation IfLoc, IfStatementKind Kind, in RebuildIfStmt() argument
1419 return getSema().ActOnIfStmt(IfLoc, Kind, LParenLoc, Init, Cond, RParenLoc, in RebuildIfStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h10713 StmtResult ActOnIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
10717 StmtResult BuildIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp2520 AddSourceLocation(Cond.IfLoc, Record); in WritePreprocessor()