Ver código fonte

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

Fabian Peter Hammerle 6 anos atrás
pai
commit
cd6a8dae5a
3 arquivos alterados com 3 adições e 2 exclusões
  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;
     }
-}
+}