Lines Matching refs:DT

102 static bool EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT,  in EvaluateDefined()  argument
134 DT.IncludedUndefinedIds = !Macro; in EvaluateDefined()
220 DT.State = DefinedTracker::DefinedMacro; in EvaluateDefined()
221 DT.TheMacro = II; in EvaluateDefined()
233 static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, in EvaluateValue() argument
235 DT.State = DefinedTracker::Unknown; in EvaluateValue()
254 return EvaluateDefined(Result, PeekTok, DT, ValueLive, PP); in EvaluateValue()
282 DT.IncludedUndefinedIds = true; in EvaluateValue()
445 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true; in EvaluateValue()
454 DT.IncludedUndefinedIds, PP)) in EvaluateValue()
463 DT.State = DefinedTracker::Unknown; in EvaluateValue()
474 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true; in EvaluateValue()
482 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true; in EvaluateValue()
496 DT.State = DefinedTracker::Unknown; in EvaluateValue()
503 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true; in EvaluateValue()
509 DT.State = DefinedTracker::Unknown; in EvaluateValue()
516 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true; in EvaluateValue()
523 if (DT.State == DefinedTracker::DefinedMacro) in EvaluateValue()
524 DT.State = DefinedTracker::NotDefinedMacro; in EvaluateValue()
525 else if (DT.State == DefinedTracker::NotDefinedMacro) in EvaluateValue()
526 DT.State = DefinedTracker::DefinedMacro; in EvaluateValue()
632 DefinedTracker DT; in EvaluateDirectiveSubExpr() local
633 if (EvaluateValue(RHS, PeekTok, DT, RHSIsLive, PP)) return true; in EvaluateDirectiveSubExpr()
634 IncludedUndefinedIds = DT.IncludedUndefinedIds; in EvaluateDirectiveSubExpr()
827 DefinedTracker DT; in EvaluateDirectiveSubExpr() local
828 if (EvaluateValue(AfterColonVal, PeekTok, DT, AfterColonLive, PP)) in EvaluateDirectiveSubExpr()
893 DefinedTracker DT; in EvaluateDirectiveExpression() local
895 if (EvaluateValue(ResVal, Tok, DT, true, *this)) { in EvaluateDirectiveExpression()
909 DT.IncludedUndefinedIds, in EvaluateDirectiveExpression()
913 EvaluatedDefined = DT.State != DefinedTracker::Unknown; in EvaluateDirectiveExpression()
921 if (DT.State == DefinedTracker::NotDefinedMacro) in EvaluateDirectiveExpression()
922 IfNDefMacro = DT.TheMacro; in EvaluateDirectiveExpression()
928 return {std::move(ResVal.Val), IsNonZero, DT.IncludedUndefinedIds, in EvaluateDirectiveExpression()
935 Tok, true, DT.IncludedUndefinedIds, *this)) { in EvaluateDirectiveExpression()
943 return {std::nullopt, false, DT.IncludedUndefinedIds, ValRange}; in EvaluateDirectiveExpression()
955 EvaluatedDefined = EvaluatedDefined || DT.State != DefinedTracker::Unknown; in EvaluateDirectiveExpression()
961 return {std::move(ResVal.Val), IsNonZero, DT.IncludedUndefinedIds, ValRange}; in EvaluateDirectiveExpression()