Explorar o código

clang-tidy: ignore irrelevant bugprone-exception-escape warnings

Fabian Peter Hammerle %!s(int64=6) %!d(string=hai) anos
pai
achega
cd6a8dae5a
Modificáronse 3 ficheiros con 3 adicións e 2 borrados
  1. 0 1
      .clang-tidy
  2. 1 0
      examples/ReadingSData.cpp
  3. 2 1
      examples/ReadingVData.cpp

+ 0 - 1
.clang-tidy

@@ -35,7 +35,6 @@ Checks: >-
 
 WarningsAsErrors: >-
   *,
-  -bugprone-exception-escape,
   -clang-diagnostic-return-type,
   -cppcoreguidelines-pro-bounds-pointer-arithmetic,
   -cppcoreguidelines-pro-type-member-init,

+ 1 - 0
examples/ReadingSData.cpp

@@ -6,6 +6,7 @@
 
 using namespace hdf4cpp;
 
+// NOLINTNEXTLINE(bugprone-exception-escape)
 int main() {
     // Open the file
     HdfFile file(TEST_DATA_PATH "small_test.hdf");

+ 2 - 1
examples/ReadingVData.cpp

@@ -6,6 +6,7 @@
 
 using namespace hdf4cpp;
 
+// NOLINTNEXTLINE(bugprone-exception-escape)
 int main() {
     // Open the file
     HdfFile file(TEST_DATA_PATH "small_test.hdf");
@@ -43,4 +44,4 @@ int main() {
         }
         std::cout << std::endl;
     }
-}
+}