Home
last modified time | relevance | path

Searched refs:CondInfo (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Lex/
DPPDirectives.cpp484 PPConditionalInfo CondInfo; in SkipExcludedConditionalBlock() local
485 CondInfo.WasSkipping = true; // Silence bogus warning. in SkipExcludedConditionalBlock()
486 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); in SkipExcludedConditionalBlock()
491 if (!CondInfo.WasSkipping) { in SkipExcludedConditionalBlock()
498 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
507 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); in SkipExcludedConditionalBlock() local
510 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
513 CondInfo.FoundElse = true; in SkipExcludedConditionalBlock()
517 if (!CondInfo.WasSkipping && !CondInfo.FoundNonSkip) { in SkipExcludedConditionalBlock()
518 CondInfo.FoundNonSkip = true; in SkipExcludedConditionalBlock()
[all …]
/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp534 PPConditionalInfo CondInfo; in SkipExcludedConditionalBlock() local
535 CondInfo.WasSkipping = true; // Silence bogus warning. in SkipExcludedConditionalBlock()
536 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); in SkipExcludedConditionalBlock()
541 if (!CondInfo.WasSkipping) { in SkipExcludedConditionalBlock()
548 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
557 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); in SkipExcludedConditionalBlock() local
560 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
563 CondInfo.FoundElse = true; in SkipExcludedConditionalBlock()
567 if (!CondInfo.WasSkipping && !CondInfo.FoundNonSkip) { in SkipExcludedConditionalBlock()
568 CondInfo.FoundNonSkip = true; in SkipExcludedConditionalBlock()
[all …]