• Home
  • Raw
  • Download

Lines Matching refs:prescanner

141     const std::vector<TokenSequence> &args, Prescanner &prescanner) {  in Apply()  argument
178 result.Put(Stringify(args[index], prescanner.allSources())); in Apply()
189 prescanner.preprocessor().MacroReplacement(*arg, prescanner); in Apply()
200 prescanner.preprocessor().allSources().CompilerInsertionProvenance( in Apply()
258 const TokenSequence &input, Prescanner &prescanner) { in MacroReplacement() argument
295 allSources_.GetPath(prescanner.GetCurrentProvenance()) + '"'; in MacroReplacement()
299 ss << allSources_.GetLineNumber(prescanner.GetCurrentProvenance()); in MacroReplacement()
312 TokenPasting(ReplaceMacros(def.replacement(), prescanner))}; in MacroReplacement()
374 ReplaceMacros(def.Apply(args, prescanner), prescanner)}; in MacroReplacement()
389 const TokenSequence &tokens, Prescanner &prescanner) { in ReplaceMacros() argument
390 if (std::optional<TokenSequence> repl{MacroReplacement(tokens, prescanner)}) { in ReplaceMacros()
396 void Preprocessor::Directive(const TokenSequence &dir, Prescanner *prescanner) { in Directive() argument
403 prescanner->Say(dir.GetTokenProvenanceRange(j), "missing '#'"_err_en_US); in Directive()
427 prescanner->Say(dir.GetTokenProvenanceRange(j < tokens ? j : tokens - 1), in Directive()
445 prescanner->Say(dir.GetTokenProvenanceRange(j), in Directive()
453 prescanner->Say(dir.GetTokenProvenanceRange(tokens - 1), in Directive()
462 prescanner->Say(dir.GetTokenProvenanceRange(j), in Directive()
468 prescanner->Say(dir.GetTokenProvenanceRange(tokens - 1), in Directive()
475 prescanner->Say(dir.GetTokenProvenance(dirOffset), in Directive()
490 prescanner->Say( in Directive()
495 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
504 prescanner->Say( in Directive()
509 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
517 SkipDisabledConditionalCode(dirName, IsElseActive::Yes, prescanner, in Directive()
521 if (IsIfPredicateTrue(dir, j, tokens - j, prescanner)) { in Directive()
524 SkipDisabledConditionalCode(dirName, IsElseActive::Yes, prescanner, in Directive()
529 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
532 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
535 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
539 SkipDisabledConditionalCode("else", IsElseActive::No, prescanner, in Directive()
544 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
547 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
551 SkipDisabledConditionalCode("elif", IsElseActive::No, prescanner, in Directive()
556 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
559 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
565 prescanner->Say( in Directive()
570 prescanner->Say( in Directive()
575 prescanner->Say( in Directive()
584 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
592 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
596 include = ReplaceMacros(braced, *prescanner).ToString(); in Directive()
602 prescanner->Say(dir.GetTokenProvenanceRange(j < tokens ? j : tokens - 1), in Directive()
607 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
613 prescanner->Say(dir.GetIntervalProvenanceRange(j, tokens - j), in Directive()
620 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
625 Prescanner{*prescanner} in Directive()
630 prescanner->Say(dir.GetTokenProvenanceRange(dirOffset), in Directive()
662 IsElseActive isElseActive, Prescanner *prescanner, in SkipDisabledConditionalCode() argument
665 while (!prescanner->IsAtEnd()) { in SkipDisabledConditionalCode()
666 if (!prescanner->IsNextLinePreprocessorDirective()) { in SkipDisabledConditionalCode()
667 prescanner->NextLine(); in SkipDisabledConditionalCode()
670 TokenSequence line{prescanner->TokenizePreprocessorDirective()}; in SkipDisabledConditionalCode()
686 line, rest, line.SizeInTokens() - rest, prescanner)) { in SkipDisabledConditionalCode()
692 prescanner->Say(provenanceRange, "#%s: missing #endif"_err_en_US, dirName); in SkipDisabledConditionalCode()
1042 std::size_t first, std::size_t exprTokens, Prescanner *prescanner) { in IsIfPredicateTrue() argument
1068 TokenSequence expr3{ReplaceMacros(expr2, *prescanner)}; in IsIfPredicateTrue()
1073 prescanner->Say(expr.GetProvenanceRange(), "empty expression"_err_en_US); in IsIfPredicateTrue()
1080 prescanner->Say(std::move(*error)); in IsIfPredicateTrue()
1083 prescanner->Say(expr3.GetIntervalProvenanceRange( in IsIfPredicateTrue()