• 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

68.97
/pol-core/bscript/compiler/Report.cpp
1
#include "Report.h"
2

3
#include "bscript/compiler/file/SourceLocation.h"
4
#include "clib/logfacility.h"
5

6
namespace Pol::Bscript::Compiler
7
{
8
Report::Report( bool display_warnings, bool display_errors, bool display_debugs )
2,970✔
9
    : display_warnings( display_warnings ),
2,970✔
10
      display_errors( display_errors ),
2,970✔
11
      display_debugs( display_debugs ),
2,970✔
12
      errors( 0 ),
2,970✔
13
      warnings( 0 )
2,970✔
14
{
15
}
2,970✔
16

17
void Report::report_error( const SourceLocation& source_location, const std::string& msg ) const
385✔
18
{
19
  try
20
  {
21
    ERROR_PRINTLN( "{}: error: {}", source_location, msg );
385✔
22
  }
23
  catch ( ... )
×
24
  {
25
  }
×
26
}
385✔
27

28
void Report::report_warning( const SourceLocation& source_location, const std::string& msg ) const
339✔
29
{
30
  try
31
  {
32
    ERROR_PRINTLN( "{}: warning: {}", source_location, msg );
339✔
33
  }
34
  catch ( ... )
×
35
  {
36
  }
×
37
}
339✔
38

NEW
39
void Report::report_debug( const SourceLocation& source_location, const std::string& msg ) const
×
40
{
41
  try
42
  {
43
    ERROR_PRINTLN( "{}: debug: {}", source_location, msg );
×
44
  }
45
  catch ( ... )
×
46
  {
47
  }
×
48
}
×
49

50
unsigned Report::error_count() const
27,940✔
51
{
52
  return errors;
27,940✔
53
}
54

55
unsigned Report::warning_count() const
4,700✔
56
{
57
  return warnings;
4,700✔
58
}
59

60
void Report::reset()
14✔
61
{
62
  errors = warnings = 0;
14✔
63
}
14✔
64

65

66
}  // 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