Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Lex/
DPPCallbacks.h291 ConditionValueKind ConditionValue, SourceLocation IfLoc) { in Elif() argument
313 virtual void Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
319 virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
475 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
476 First->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
477 Second->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
495 void Else(SourceLocation Loc, SourceLocation IfLoc) override { in Else() argument
496 First->Else(Loc, IfLoc); in Else()
497 Second->Else(Loc, IfLoc); in Else()
501 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
[all …]
DPPConditionalDirectiveRecord.h92 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
97 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
98 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
DPreprocessorLexer.h100 CI.IfLoc = DirectiveStart; in pushConditionalLevel()
DToken.h307 SourceLocation IfLoc; member
/external/llvm-project/clang/include/clang/Lex/
DPPCallbacks.h343 ConditionValueKind ConditionValue, SourceLocation IfLoc) { in Elif() argument
365 virtual void Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
371 virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
577 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
578 First->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
579 Second->Elif(Loc, ConditionRange, ConditionValue, IfLoc); in Elif()
597 void Else(SourceLocation Loc, SourceLocation IfLoc) override { in Else() argument
598 First->Else(Loc, IfLoc); in Else()
599 Second->Else(Loc, IfLoc); in Else()
603 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
[all …]
DPPConditionalDirectiveRecord.h91 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
96 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
97 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
DPreprocessorLexer.h95 CI.IfLoc = DirectiveStart; in pushConditionalLevel()
DToken.h317 SourceLocation IfLoc; member
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantPreprocessorCheck.cpp63 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
64 if (!IfStack.empty() && IfLoc == IfStack.back().Loc) in Endif()
66 if (!IfdefStack.empty() && IfLoc == IfdefStack.back().Loc) in Endif()
68 if (!IfndefStack.empty() && IfLoc == IfndefStack.back().Loc) in Endif()
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()
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()
/external/llvm-project/clang/lib/Lex/
DPPConditionalDirectiveRecord.cpp99 SourceLocation IfLoc) { in Elif() argument
105 SourceLocation IfLoc) { in Else() argument
111 SourceLocation IfLoc) { in Endif() argument
DPPDirectives.cpp548 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
575 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
603 CondInfo.IfLoc); in SkipExcludedConditionalBlock()
3068 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
3093 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
3101 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
3107 SkipExcludedConditionalBlock(HashToken.getLocation(), CI.IfLoc, in HandleElseDirective()
3138 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifDirective()
3153 HashToken.getLocation(), CI.IfLoc, /*Foundnonskip*/ true, in HandleElifDirective()
/external/clang/lib/Lex/
DPPConditionalDirectiveRecord.cpp102 SourceLocation IfLoc) { in Elif() argument
108 SourceLocation IfLoc) { in Else() argument
114 SourceLocation IfLoc) { in Endif() argument
DPPDirectives.cpp401 Diag(CurPPLexer->ConditionalStack.back().IfLoc, in SkipExcludedConditionalBlock()
498 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
525 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
553 … (CondValue ? PPCallbacks::CVK_True : PPCallbacks::CVK_False), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
2708 Callbacks->Endif(EndifToken.getLocation(), CondInfo.IfLoc); in HandleEndifDirective()
2733 Callbacks->Else(Result.getLocation(), CI.IfLoc); in HandleElseDirective()
2736 SkipExcludedConditionalBlock(CI.IfLoc, /*Foundnonskip*/true, in HandleElseDirective()
2768 PPCallbacks::CVK_NotEvaluated, CI.IfLoc); in HandleElifDirective()
2771 SkipExcludedConditionalBlock(CI.IfLoc, /*Foundnonskip*/true, in HandleElifDirective()
/external/llvm-project/clang-tools-extra/pp-trace/
DPPCallbacksTracker.cpp376 SourceLocation IfLoc) { in Elif() argument
381 appendArgument("IfLoc", IfLoc); in Elif()
403 void PPCallbacksTracker::Else(SourceLocation Loc, SourceLocation IfLoc) { in Else() argument
406 appendArgument("IfLoc", IfLoc); in Else()
410 void PPCallbacksTracker::Endif(SourceLocation Loc, SourceLocation IfLoc) { in Endif() argument
413 appendArgument("IfLoc", IfLoc); in Endif()
DPPCallbacksTracker.h142 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
147 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
148 void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DHeaderGuard.cpp64 void Endif(SourceLocation Loc, SourceLocation IfLoc) override { in Endif() argument
66 EndIfs[IfLoc] = Loc; in Endif()
/external/llvm-project/clang-tools-extra/docs/
Dpp-trace.rst710 IfLoc "(file):(line):(col)" SourceLocation …
719 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"
796 IfLoc "(file):(line):(col)" SourceLocation …
803 IfLoc: "D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2"
/external/llvm-project/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp86 ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
216 SourceLocation IfLoc) { in Elif() argument
/external/clang/include/clang/AST/
DStmt.h885 SourceLocation IfLoc; variable
928 SourceLocation getIfLoc() const { return IfLoc; } in getIfLoc()
929 void setIfLoc(SourceLocation L) { IfLoc = L; } in setIfLoc()
936 SourceLocation getLocStart() const LLVM_READONLY { return IfLoc; } in getLocStart()
/external/llvm-project/clang/unittests/Lex/
DPPCallbacksTest.cpp84 ConditionValueKind ConditionValue, SourceLocation IfLoc) override { in Elif() argument
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp1336 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1373 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1405 MisleadingIndentationChecker MIChecker(*this, MSK_if, IfLoc); in ParseIfStatement()
1489 return Actions.ActOnIfStmt(IfLoc, IsConstexpr, LParen, InitStmt.get(), Cond, in ParseIfStatement()
/external/llvm-project/clang/include/clang/AST/
DStmt.h176 SourceLocation IfLoc; variable
2063 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; } in getIfLoc()
2064 void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; } in setIfLoc() argument
/external/clang/lib/Parse/
DParseStmt.cpp1111 SourceLocation IfLoc = ConsumeToken(); // eat the 'if'. in ParseIfStatement() local
1146 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1247 return Actions.ActOnIfStmt(IfLoc, IsConstexpr, InitStmt.get(), Cond, in ParseIfStatement()

12