| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | PPCallbacks.h | 387 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 D | PPConditionalDirectiveRecord.h | 91 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 D | PreprocessorLexer.h | 96 CI.IfLoc = DirectiveStart; in pushConditionalLevel()
|
| H A D | Token.h | 316 SourceLocation IfLoc; member
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantPreprocessorCheck.cpp | 64 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 D | MisleadingIndentationCheck.cpp | 36 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 D | ElseAfterReturnCheck.cpp | 31 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 D | PPConditionalDirectiveRecord.cpp | 99 SourceLocation IfLoc) { in Elif() argument 127 SourceLocation IfLoc) { in Else() argument 133 SourceLocation IfLoc) { in Endif() argument
|
| H A D | PPDirectives.cpp | 681 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 D | Lexer.cpp | 2974 PP->Diag(ConditionalStack.back().IfLoc, in LexEndOfFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | MacroToEnumCheck.cpp | 159 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 D | PPCallbacksTracker.cpp | 373 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 D | PPCallbacksTracker.h | 141 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 D | HeaderGuard.cpp | 64 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 D | pp-trace.rst | 690 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 D | InclusionRewriter.cpp | 82 ConditionValueKind ConditionValue, SourceLocation IfLoc) override; 211 SourceLocation IfLoc) { in Elif() argument
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Stmt.h | 179 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 D | ParseStmt.cpp | 1417 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 D | PreprocessorTracker.cpp | 756 clang::SourceLocation IfLoc) override; 1356 clang::SourceLocation IfLoc) { in Elif() argument
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 503 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 D | PPCallbacksTest.cpp | 84 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 878 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 D | TreeTransform.h | 1328 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 D | Sema.h | 4955 StmtResult ActOnIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind, 4959 StmtResult BuildIfStmt(SourceLocation IfLoc, IfStatementKind StatementKind,
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 2321 AddSourceLocation(Cond.IfLoc, Record); in WritePreprocessor()
|