Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPPCallbacks.h387 SourceLocation IfLoc) { in Elifdef() argument
411 SourceLocation IfLoc) { in Elifndef() argument
655 SourceLocation IfLoc) override { in Elifdef() argument
656 First->Elifdef(Loc, ConditionRange, IfLoc); in Elifdef()
657 Second->Elifdef(Loc, ConditionRange, IfLoc); in Elifdef()
675 SourceLocation IfLoc) override { in Elifndef() argument
676 First->Elifndef(Loc, ConditionRange, IfLoc); in Elifndef()
682 First->Else(Loc, IfLoc); in Else()
683 Second->Else(Loc, IfLoc); in Else()
688 First->Endif(Loc, IfLoc); in Endif()
[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.h316 SourceLocation IfLoc; member
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantPreprocessorCheck.cpp64 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
65 if (!IfStack.empty() && IfLoc == IfStack.back().Loc) in Endif()
67 if (!IfdefStack.empty() && IfLoc == IfdefStack.back().Loc) in Endif()
69 if (!IfndefStack.empty() && IfLoc == IfndefStack.back().Loc) in Endif()
H A DMisleadingIndentationCheck.cpp36 SourceLocation IfLoc = If->getIfLoc(); in danglingElseCheck() local
39 if (IfLoc.isMacroID() || ElseLoc.isMacroID()) in danglingElseCheck()
49 IfLoc = PrecedingIf->getIfLoc(); in danglingElseCheck()
51 if (SM.getExpansionColumnNumber(IfLoc) != in danglingElseCheck()
H A DElseAfterReturnCheck.cpp31 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
32 if (!SM.isWrittenInSameFile(Loc, IfLoc)) in Endif()
36 Collection.emplace_back(IfLoc, Loc); in Endif()
/llvm-project-15.0.7/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.cpp681 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
712 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
751 CondInfo.IfLoc); in SkipExcludedConditionalBlock()
3377 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
3402 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
3410 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
3416 SkipExcludedConditionalBlock(HashToken.getLocation(), CI.IfLoc, in HandleElseDirective()
3470 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifFamilyDirective()
3473 Callbacks->Elifdef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
3476 Callbacks->Elifndef(ElifToken.getLocation(), ConditionRange, CI.IfLoc); in HandleElifFamilyDirective()
[all …]
H A DLexer.cpp2974 PP->Diag(ConditionalStack.back().IfLoc, in LexEndOfFile()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp159 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
167 SourceLocation IfLoc) override { in Elifdef() argument
168 PPCallbacks::Elifdef(Loc, ConditionRange, IfLoc); in Elifdef()
175 SourceLocation IfLoc) override { in Elifndef() argument
176 PPCallbacks::Elifndef(Loc, ConditionRange, IfLoc); in Elifndef()
178 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
390 void MacroToEnumCallbacks::Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
/llvm-project-15.0.7/clang-tools-extra/pp-trace/
H A DPPCallbacksTracker.cpp373 SourceLocation IfLoc) { in Elif() argument
378 appendArgument("IfLoc", IfLoc); in Elif()
400 void PPCallbacksTracker::Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
403 appendArgument("IfLoc", IfLoc); in Else()
407 void PPCallbacksTracker::Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
410 appendArgument("IfLoc", IfLoc); in Endif()
H A DPPCallbacksTracker.h141 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
146 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
147 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DHeaderGuard.cpp64 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
66 EndIfs[IfLoc] = Loc; in Endif()
/llvm-project-15.0.7/clang-tools-extra/docs/
H A Dpp-trace.rst690 IfLoc "(file):(line):(col)" SourceLocation …
699 IfLoc: "D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2"
756 IfLoc "(file):(line):(col)" SourceLocation …
763 IfLoc: "D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2"
776 IfLoc "(file):(line):(col)" SourceLocation …
783 IfLoc: "D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2"
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp82 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
211 SourceLocation IfLoc) { in Elif() argument
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h179 SourceLocation IfLoc; in alignas() local
2099 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; } in getIfLoc()
2100 void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; } in setIfLoc() argument
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmt.cpp1417 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1471 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1503 MisleadingIndentationChecker MIChecker(*this, MSK_if, IfLoc); in ParseIfStatement()
1626 return Actions.ActOnIfStmt(IfLoc, Kind, LParen, InitStmt.get(), Cond, RParen, in ParseIfStatement()
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DPreprocessorTracker.cpp756 clang::SourceLocation IfLoc) override;
1356 clang::SourceLocation IfLoc) { in Elif() argument
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPCallbacksTest.cpp84 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
/llvm-project-15.0.7/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.h1328 StmtResult RebuildIfStmt(SourceLocation IfLoc, IfStatementKind Kind, in RebuildIfStmt() argument
1332 return getSema().ActOnIfStmt(IfLoc, Kind, LParenLoc, Init, Cond, RParenLoc, in RebuildIfStmt()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4955 StmtResult ActOnIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
4959 StmtResult BuildIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriter.cpp2321 AddSourceLocation(Cond.IfLoc, Record); in WritePreprocessor()