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

rieske / trans / 29858613021

21 Jul 2026 06:45PM UTC coverage: 90.602% (-0.1%) from 90.735%
29858613021

Pull #52

github

rieske
Fuzz test and fix issues
Pull Request #52: Fuzz test and fix issues

54 of 72 new or added lines in 7 files covered. (75.0%)

100 existing lines in 4 files now uncovered.

5312 of 5863 relevant lines covered (90.6%)

365676.6 hits per line

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

61.54
/src/ast/FunctionDeclarator.cpp
1
#include "FunctionDeclarator.h"
2

3
#include "AbstractSyntaxTreeVisitor.h"
4

5
namespace ast {
6

7
FunctionDeclarator::FunctionDeclarator(std::unique_ptr<DirectDeclarator> declarator) :
432✔
8
        DirectDeclarator(declarator->getName(), declarator->getContext())
432✔
9
{
10
}
432✔
11

12
FunctionDeclarator::FunctionDeclarator(std::unique_ptr<DirectDeclarator> declarator, FormalArguments formalArguments) :
74✔
13
        DirectDeclarator(declarator->getName(), declarator->getContext()),
148✔
14
        formalArguments { std::move(formalArguments) }
222✔
15
{
16
}
74✔
17

18
void FunctionDeclarator::accept(AbstractSyntaxTreeVisitor& visitor) {
1,486✔
19
    visitor.visit(*this);
1,486✔
20
}
1,486✔
21

22
void FunctionDeclarator::visitFormalArguments(AbstractSyntaxTreeVisitor& visitor) {
1,486✔
23
    for (auto& argument : formalArguments) {
2,006✔
24
        argument.accept(visitor);
520✔
25
    }
26
}
1,486✔
27

28
const FormalArguments& ast::FunctionDeclarator::getFormalArguments() const {
504✔
29
    return formalArguments;
504✔
30
}
31

32
type::Type FunctionDeclarator::getFundamentalType(std::vector<Pointer> indirection, const type::Type& returnType) {
×
33
    std::vector<type::Type> argumentTypes;
×
34
    for (const auto& argument : formalArguments) {
×
35
        argumentTypes.push_back(argument.getType());
×
36
    }
UNCOV
37
    type::Type type = type::function(returnType, argumentTypes);
×
UNCOV
38
    for (Pointer pointer : indirection) {
×
UNCOV
39
        type = type::pointer(type, pointer.getQualifiers());
×
40
    }
×
41
    return type;
×
42
}
×
43

44
} // namespace ast
45

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc