Skip to content

Commit

Permalink
Suppress using-namespace lint in GENERATE* macros
Browse files Browse the repository at this point in the history
Closes #1799
  • Loading branch information
horenmar committed Nov 16, 2019
1 parent e1c9d55 commit a537cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/internal/catch_generators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ namespace Generators {
} // namespace Catch

#define GENERATE( ... ) \
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } ) //NOLINT(google-build-using-namespace)
#define GENERATE_COPY( ... ) \
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } ) //NOLINT(google-build-using-namespace)
#define GENERATE_REF( ... ) \
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } ) //NOLINT(google-build-using-namespace)

#endif // TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED

0 comments on commit a537cca

Please sign in to comment.