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

polserver / polserver / 16683711876

01 Aug 2025 07:40PM UTC coverage: 59.756% (-0.03%) from 59.79%
16683711876

push

github

web-flow
use c++20 (#799)

* use c++20
* increased used clang version
* compiler report and logfacility use now compile time formatting, which
means that the formatstring gets checked at compile time. (which found 2 errors)
adapted a few places since report only accepts formatting arguments
adapted a few places with logging since char[] is compile time
formatting and string or chr* is runtime formatting
* use std::ranges instead of boost
* disabled pragma_assume vs specific macro (I guess noone cares)
* needed to fix ancient ms exception code
* modernized SpinLock
* removed unused code in ECompile
* replaced std::filesystem::path::u8string with string. It now returns an actual u8string type
* cleanup layers.h added the defines for other layers which where before
  only defined in the pkt
* osmod::OpenConnection and HTTPRequest cleanup: early outs, dont check for pChild which is
  only needed for startscript and placed suspend at the very last
  position

* fix warning

* rebuild cache with new compiler version

* define c++ standard for external libs where possible

* added fixme

156 of 212 new or added lines in 26 files covered. (73.58%)

45 existing lines in 19 files now uncovered.

43621 of 72999 relevant lines covered (59.76%)

409874.73 hits per line

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

89.47
/pol-core/bscript/compiler/ast/ConstantPredicateLoop.cpp
1
#include "ConstantPredicateLoop.h"
2

3

4
#include "bscript/compiler/ast/Block.h"
5
#include "bscript/compiler/ast/NodeVisitor.h"
6

7
namespace Pol::Bscript::Compiler
8
{
9
ConstantPredicateLoop::ConstantPredicateLoop( const SourceLocation& source_location,
224✔
10
                                              std::string label, std::unique_ptr<Block> block,
11
                                              bool endless )
224✔
12
    : LoopStatement( source_location, std::move( label ) ), _endless( endless )
224✔
13
{
14
  children.reserve( 1 );
224✔
15
  children.push_back( std::move( block ) );
224✔
16
}
224✔
17

18
void ConstantPredicateLoop::accept( NodeVisitor& visitor )
917✔
19
{
20
  visitor.visit_constant_loop( *this );
917✔
21
}
917✔
22

23
void ConstantPredicateLoop::describe_to( std::string& w ) const
2✔
24
{
UNCOV
25
  fmt::format_to( std::back_inserter( w ), "constant-loop ({})",
×
26
                  is_endless() ? "endless" : "fallthrough" );
2✔
27
  if ( !get_label().empty() )
2✔
28
    fmt::format_to( std::back_inserter( w ), "(label:{})", get_label() );
×
29
}
2✔
30

31
Block& ConstantPredicateLoop::block()
224✔
32
{
33
  return child<Block>( 0 );
224✔
34
}
35

36
bool ConstantPredicateLoop::is_endless() const
226✔
37
{
38
  return _endless;
226✔
39
}
40
}  // namespace Pol::Bscript::Compiler
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