Skip to content

Commit 219513d

Browse files
committed
mitigated bugprone-exception-escape clang-tidy warnings
1 parent ce7f35b commit 219513d

7 files changed

Lines changed: 9 additions & 0 deletions

File tree

gui/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static void ShowUsage();
4545
static void ShowVersion();
4646
static bool CheckArgs(const QStringList &args);
4747

48+
// NOLINTNEXTLINE(bugprone-exception-escape)
4849
int main(int argc, char *argv[])
4950
{
5051

lib/ctu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ namespace CTU {
9494
bool loadBaseFromXml(const tinyxml2::XMLElement *xmlElement);
9595
};
9696

97+
// NOLINTNEXTLINE(bugprone-exception-escape)
9798
class FunctionCall : public CallBase {
9899
public:
99100
std::string callArgumentExpression;
@@ -106,6 +107,7 @@ namespace CTU {
106107
bool loadFromXml(const tinyxml2::XMLElement *xmlElement);
107108
};
108109

110+
// NOLINTNEXTLINE(bugprone-exception-escape)
109111
class NestedCall : public CallBase {
110112
public:
111113
NestedCall() = default;

lib/importproject.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ bool ImportProject::importVcxproj(const std::string &filename, std::map<std::str
873873

874874
ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::string& filename, const std::vector<std::string>& fileFilters, std::vector<SharedItemsProject> &cache)
875875
{
876+
// NOLINTNEXTLINE(bugprone-exception-escape)
876877
auto isInCacheCheck = [filename](const ImportProject::SharedItemsProject& e) -> bool {
877878
return filename == e.pathToProjectFile;
878879
};

lib/templatesimplifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ namespace {
7474
const Token * const mToken;
7575
};
7676

77+
// NOLINTNEXTLINE(bugprone-exception-escape)
7778
class FindName {
7879
public:
7980
explicit FindName(std::string name) : mName(std::move(name)) {}
@@ -84,6 +85,7 @@ namespace {
8485
const std::string mName;
8586
};
8687

88+
// NOLINTNEXTLINE(bugprone-exception-escape)
8789
class FindFullName {
8890
public:
8991
explicit FindFullName(std::string fullName) : mFullName(std::move(fullName)) {}

lib/tokenlist.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,6 +1806,7 @@ namespace {
18061806
struct OnException {
18071807
std::function<void()> f;
18081808

1809+
// NOLINTNEXTLINE(bugprone-exception-escape)
18091810
~OnException() {
18101811
#ifndef _MSC_VER
18111812
if (std::uncaught_exception())

lib/utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct SelectMapValues {
5353
struct OnExit {
5454
std::function<void()> f;
5555

56+
// NOLINTNEXTLINE(bugprone-exception-escape) - reported with libc++ for any files which includes this (even if not used)
5657
~OnExit() {
5758
f();
5859
}

tools/dmake/dmake.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ static void write_ossfuzz_makefile(std::vector<std::string> libfiles_prio, std::
412412
fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -DNO_FUZZ -c -o $@ main.cpp\n";
413413
}
414414

415+
// NOLINTNEXTLINE(bugprone-exception-escape)
415416
int main(int argc, char **argv)
416417
{
417418
const bool release(argc >= 2 && std::string(argv[1]) == "--release");

0 commit comments

Comments
 (0)