Skip to content

Commit 1d89f1d

Browse files
Merge pull request diffblue#457 from diffblue/cleanup/remove-noexcept
Remove noexcept from methods that allocate heap memory
2 parents 6168049 + f52b241 commit 1d89f1d

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/pointer-analysis/local_value_set_analysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class lvsaa_single_external_set_summaryt : public summaryt
5151
lvsaa_single_external_set_summaryt &
5252
operator=(lvsaa_single_external_set_summaryt &&) = default;
5353

54-
std::string kind() const noexcept override
54+
std::string kind() const override
5555
{
5656
return "lvsaa";
5757
}

src/summaries/summary.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ class summaryt
3939
summaries. For example, it can be a unique name of an analysis which has
4040
computed them.
4141
\*******************************************************************/
42-
virtual std::string kind() const noexcept=0;
42+
virtual std::string kind() const = 0;
4343

4444
/*******************************************************************\
4545
A textual human-readable description of the summaries.
4646
\*******************************************************************/
47-
virtual std::string description() const noexcept { return std::string(); }
47+
virtual std::string description() const
48+
{
49+
return std::string();
50+
}
4851
};
4952

5053
#endif

src/taint-analysis/taint_summary.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ static void populate_formals_to_actuals(
328328
///
329329
////////////////////////////////////////////////////////////////////////////////
330330

331-
std::string taint_summaryt::kind() const noexcept
331+
std::string taint_summaryt::kind() const
332332
{
333333
return "cbmc://src/taint-analysis/taint_summary";
334334
}
335335

336-
std::string taint_summaryt::description() const noexcept
336+
std::string taint_summaryt::description() const
337337
{
338338
return "Function summary of taint analysis of java web applications.";
339339
}

src/taint-analysis/taint_summary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ class taint_summaryt:public summaryt
137137
taint_summaryt &operator=(const taint_summaryt &) = delete;
138138
taint_summaryt &operator=(taint_summaryt &&) = default;
139139

140-
std::string kind() const noexcept override;
141-
std::string description() const noexcept override;
140+
std::string kind() const override;
141+
std::string description() const override;
142142

143143
const taint_summary_inputt& get_input() const noexcept
144144
{

0 commit comments

Comments
 (0)