Skip to content

Commit ed782ac

Browse files
committed
Revert "mitigated bugprone-exception-escape clang-tidy warnings"
This reverts commit bfa65c2.
1 parent 446fb04 commit ed782ac

7 files changed

Lines changed: 0 additions & 9 deletions

File tree

gui/main.cpp

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

48-
// NOLINTNEXTLINE(bugprone-exception-escape)
4948
int main(int argc, char *argv[])
5049
{
5150
QApplication app(argc, argv);

lib/ctu.h

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

112-
// NOLINTNEXTLINE(bugprone-exception-escape)
113112
class FunctionCall : public CallBase {
114113
public:
115114
std::string callArgumentExpression;
@@ -122,7 +121,6 @@ namespace CTU {
122121
bool loadFromXml(const tinyxml2::XMLElement *xmlElement);
123122
};
124123

125-
// NOLINTNEXTLINE(bugprone-exception-escape)
126124
class NestedCall : public CallBase {
127125
public:
128126
NestedCall() = default;

lib/importproject.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ bool ImportProject::importVcxproj(const std::string &filename, const tinyxml2::X
909909

910910
ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::string& filename, const std::vector<std::string>& fileFilters, std::vector<SharedItemsProject> &cache)
911911
{
912-
// NOLINTNEXTLINE(bugprone-exception-escape)
913912
auto isInCacheCheck = [filename](const ImportProject::SharedItemsProject& e) -> bool {
914913
return filename == e.pathToProjectFile;
915914
};

lib/templatesimplifier.cpp

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

77-
// NOLINTNEXTLINE(bugprone-exception-escape)
7877
class FindName {
7978
public:
8079
explicit FindName(std::string name) : mName(std::move(name)) {}
@@ -85,7 +84,6 @@ namespace {
8584
const std::string mName;
8685
};
8786

88-
// NOLINTNEXTLINE(bugprone-exception-escape)
8987
class FindFullName {
9088
public:
9189
explicit FindFullName(std::string fullName) : mFullName(std::move(fullName)) {}

lib/tokenlist.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,6 @@ namespace {
18411841
struct OnException {
18421842
std::function<void()> f;
18431843

1844-
// NOLINTNEXTLINE(bugprone-exception-escape)
18451844
~OnException() {
18461845
#ifndef _MSC_VER
18471846
if (std::uncaught_exception())

lib/utils.h

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

57-
// NOLINTNEXTLINE(bugprone-exception-escape) - reported with libc++ for any files which includes this (even if not used)
5857
~OnExit() {
5958
f();
6059
}

tools/dmake/dmake.cpp

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

417-
// NOLINTNEXTLINE(bugprone-exception-escape)
418417
int main(int argc, char **argv)
419418
{
420419
const bool release(argc >= 2 && std::string(argv[1]) == "--release");

0 commit comments

Comments
 (0)