• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 21100551564

17 Jan 2026 08:40PM UTC coverage: 60.504% (+0.01%) from 60.492%
21100551564

Pull #857

github

turleypol
fixed scope
Pull Request #857: ClangTidy readability-else-after-return

837 of 1874 new or added lines in 151 files covered. (44.66%)

48 existing lines in 26 files now uncovered.

44445 of 73458 relevant lines covered (60.5%)

515341.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/pol-core/bscript/compiler/astbuilder/AvailableParseTree.cpp
1
#include "AvailableParseTree.h"
2

3
#include <fmt/format.h>
4

5
namespace Pol::Bscript::Compiler
6
{
7
AvailableSecondPassTarget::AvailableSecondPassTarget( const SourceLocation& loc, Type type,
5,255✔
8
                                                      Node* context )
5,255✔
9
    : source_location( loc ), type( type ), context( context )
5,255✔
10
{
11
}
5,255✔
12

13
AvailableGeneratedFunction::AvailableGeneratedFunction( const SourceLocation& loc, Node* context,
233✔
14
                                                        const ScopableName& name,
15
                                                        UserFunctionType type )
233✔
16
    : AvailableSecondPassTarget( loc, Type::GeneratedFunction, context ), name( name ), type( type )
233✔
17
{
18
}
233✔
19
AvailableParseTree::AvailableParseTree( const SourceLocation& loc,
5,022✔
20
                                        antlr4::ParserRuleContext* parse_rule_context,
21
                                        const ScopeName& scope, Node* context )
5,022✔
22
    : AvailableSecondPassTarget( loc, Type::ParseTree, context ),
23
      parse_rule_context( parse_rule_context ),
5,022✔
24
      scope( scope )
5,022✔
25
{
26
}
5,022✔
27
}  // namespace Pol::Bscript::Compiler
28

29
fmt::format_context::iterator
30
fmt::formatter<Pol::Bscript::Compiler::AvailableSecondPassTarget>::format(
×
31
    const Pol::Bscript::Compiler::AvailableSecondPassTarget& aspt, fmt::format_context& ctx ) const
32
{
33
  if ( aspt.type == Pol::Bscript::Compiler::AvailableSecondPassTarget::Type::ParseTree )
×
34
  {
35
    const Pol::Bscript::Compiler::AvailableParseTree& apt =
×
36
        static_cast<const Pol::Bscript::Compiler::AvailableParseTree&>( aspt );
37

38
    std::string tmp = fmt::format( "apt({}, scope={}, ctx={})", (void*)( &apt ), apt.scope.string(),
×
39
                                   (void*)( apt.parse_rule_context ) );
×
40

41
    return fmt::formatter<std::string>::format( std::move( tmp ), ctx );
×
42
  }
×
NEW
43
  if ( aspt.type == Pol::Bscript::Compiler::AvailableSecondPassTarget::Type::GeneratedFunction )
×
44
  {
45
    const Pol::Bscript::Compiler::AvailableGeneratedFunction& agf =
×
46
        static_cast<const Pol::Bscript::Compiler::AvailableGeneratedFunction&>( aspt );
47
    std::string tmp = fmt::format( "agf({}, name={})", (void*)( &agf ), agf.name );
×
48

49
    return fmt::formatter<std::string>::format( std::move( tmp ), ctx );
×
50
  }
×
51

52
  return fmt::formatter<std::string>::format( "", ctx );
×
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc