Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPPCallbacks.h406 ConditionValueKind ConditionValue, SourceLocation IfLoc) { in Elif() argument
430 SourceLocation IfLoc) { in Elifdef() argument
454 SourceLocation IfLoc) { in Elifndef() argument
460 virtual void Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
466 virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
708 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
709 First->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
710 Second->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
728 SourceLocation IfLoc) override { in Elifdef() argument
729 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 DNoTrivialPPDirectiveTracer.h235 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
262 SourceLocation IfLoc) override { in Elifdef() argument
289 SourceLocation IfLoc) override { in Elifndef() argument
296 void Else(SourceLocation Loc, SourceLocation IfLoc) override { in Else() argument
303 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
H A DToken.h333 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.cpp708 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
739 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
778 CondInfo.IfLoc); in SkipExcludedConditionalBlock()
3517 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
3542 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
3550 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
3556 SkipExcludedConditionalBlock(HashToken.getLocation(), CI.IfLoc, in HandleElseDirective()
3610 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifFamilyDirective()
3613 Callbacks->Elifdef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
3616 Callbacks->Elifndef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
[all …]
H A DLexer.cpp3182 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.cpp1401 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1463 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1495 MisleadingIndentationChecker MIChecker(*this, MSK_if, IfLoc); in ParseIfStatement()
1618 return Actions.ActOnIfStmt(IfLoc, Kind, LParen, InitStmt.get(), Cond, RParen, in ParseIfStatement()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h207 SourceLocation IfLoc;
2428 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; }
2429 void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; }
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp960 StmtResult Sema::ActOnIfStmt(SourceLocation IfLoc, in ActOnIfStmt() argument
991 Diags.Report(IfLoc, in ActOnIfStmt()
994 << SourceRange(IfLoc, (ConstevalOrNegatedConsteval in ActOnIfStmt()
1026 Diags.Report(IfLoc, diag::warn_consteval_if_always_true) << Immediate; in ActOnIfStmt()
1038 return BuildIfStmt(IfLoc, StatementKind, LParenLoc, InitStmt, Cond, RParenLoc, in ActOnIfStmt()
1042 StmtResult Sema::BuildIfStmt(SourceLocation IfLoc, in BuildIfStmt() argument
1055 return IfStmt::Create(Context, IfLoc, StatementKind, InitStmt, in BuildIfStmt()
H A DTreeTransform.h1409 StmtResult RebuildIfStmt(SourceLocation IfLoc, IfStatementKind Kind, in RebuildIfStmt() argument
1413 return getSema().ActOnIfStmt(IfLoc, Kind, LParenLoc, Init, Cond, RParenLoc, in RebuildIfStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h10928 StmtResult ActOnIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
10932 StmtResult BuildIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp2596 AddSourceLocation(Cond.IfLoc, Record); in WritePreprocessor()