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

daisytuner / sdfglib / 20770413849

06 Jan 2026 10:50PM UTC coverage: 62.168% (+21.4%) from 40.764%
20770413849

push

github

web-flow
Merge pull request #433 from daisytuner/clang-coverage

updates clang coverage flags

14988 of 24109 relevant lines covered (62.17%)

88.57 hits per line

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

79.17
/src/types/scalar.cpp
1
#include "sdfg/types/scalar.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Scalar::Scalar(PrimitiveType primitive_type) : primitive_type_(primitive_type) {};
2,399✔
7

8
Scalar::Scalar(StorageType storage_type, size_t alignment, const std::string& initializer, PrimitiveType primitive_type)
9
    : IType(storage_type, alignment, initializer), primitive_type_(primitive_type) {};
5,819✔
10

11
PrimitiveType Scalar::primitive_type() const { return this->primitive_type_; };
3,284✔
12

13
bool Scalar::is_symbol() const { return types::is_integer(this->primitive_type_); };
1,675✔
14

15
TypeID Scalar::type_id() const { return TypeID::Scalar; };
4,351✔
16

17
bool Scalar::operator==(const IType& other) const {
153✔
18
    if (auto scalar_type = dynamic_cast<const Scalar*>(&other)) {
153✔
19
        return this->primitive_type_ == scalar_type->primitive_type_;
153✔
20
    } else {
153✔
21
        return false;
×
22
    }
×
23
};
153✔
24

25
Scalar Scalar::as_signed() const {
1✔
26
    return Scalar(this->storage_type(), this->alignment(), this->initializer(), types::as_signed(this->primitive_type_));
1✔
27
};
1✔
28

29
Scalar Scalar::as_unsigned() const {
1✔
30
    return Scalar(this->storage_type(), this->alignment(), this->initializer(), types::as_unsigned(this->primitive_type_));
1✔
31
};
1✔
32

33
std::unique_ptr<IType> Scalar::clone() const {
5,689✔
34
    return std::make_unique<Scalar>(this->storage_type(), this->alignment(), this->initializer(), this->primitive_type_);
5,689✔
35
};
5,689✔
36

37
std::string Scalar::print() const {
×
38
    return "Scalar(" + std::string(primitive_type_to_string(this->primitive_type_)) + ")";
×
39
};
×
40

41
} // namespace types
42
} // namespace sdfg
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