Skip to content

Commit a900384

Browse files
committed
Fix clang-tidy findings
1 parent 4d97b2c commit a900384

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.conan/test_package/test_package.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The Art of C++ / Operators
2-
// Copyright (c) 2013-2018 Daniel Frey
2+
// Copyright (c) 2013-2019 Daniel Frey
33
// Please see LICENSE for license or visit https://github.com/taocpp/operators/
44

55
#include <tao/operators.hpp>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013-2018 Daniel Frey
3+
Copyright (c) 2013-2019 Daniel Frey
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The Art of C++
2-
# Copyright (c) 2015-2018 Daniel Frey
2+
# Copyright (c) 2015-2019 Daniel Frey
33
# Please see LICENSE for license or visit https://github.com/taocpp/json
44

55
.SUFFIXES:
@@ -61,7 +61,7 @@ build/%: %.cpp build/%.d
6161
$(CXX) $(CXXSTD) -Iinclude $(CPPFLAGS) $(CXXFLAGS) $< -o $@
6262

6363
build/%.clang-tidy: %
64-
$(CLANG_TIDY) -extra-arg "-Iinclude" -extra-arg "-std=c++11" -checks=*,-fuchsia-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-misc-macro-parentheses,-hicpp-no-array-decay -warnings-as-errors=* $< 2>/dev/null
64+
$(CLANG_TIDY) -extra-arg "-Iinclude" -extra-arg "-std=c++11" -checks=*,-fuchsia-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-macro-usage,-misc-macro-parentheses,-hicpp-no-array-decay -warnings-as-errors=* $< 2>/dev/null
6565
@mkdir -p $(@D)
6666
@touch $@
6767

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ The Art of C++ / Operators is a modernised C++11 rewrite of the [Boost.Operators
953953

954954
The Art of C++ is certified [Open Source](http://www.opensource.org/docs/definition.html) software. It may be used for any purpose, including commercial purposes, at absolutely no cost. It is distributed under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.html) reproduced here.
955955

956-
> Copyright (c) 2013-2018 Daniel Frey
956+
> Copyright (c) 2013-2019 Daniel Frey
957957
>
958958
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
959959
>

include/tao/operators.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The Art of C++ / Operators
2-
// Copyright (c) 2013-2018 Daniel Frey
2+
// Copyright (c) 2013-2019 Daniel Frey
33
// Please see LICENSE for license or visit https://github.com/taocpp/operators/
44

55
#ifndef TAO_OPERATORS_HPP
@@ -19,7 +19,7 @@
1919
#if defined( _MSC_VER ) && !defined( __clang__ )
2020
#define TAO_OPERATORS_CONSTEXPR
2121
#else
22-
#define TAO_OPERATORS_CONSTEXPR constexpr
22+
#define TAO_OPERATORS_CONSTEXPR constexpr // NOLINT
2323
#endif
2424
#endif
2525

src/test/operators/no_rvalue_reference_results.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The Art of C++ / Operators
2-
// Copyright (c) 2013-2018 Daniel Frey
2+
// Copyright (c) 2013-2019 Daniel Frey
33
// Please see LICENSE for license or visit https://github.com/taocpp/operators/
44

55
#define TAO_OPERATORS_NO_RVALUE_REFERENCE_RESULTS

src/test/operators/test_operators.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The Art of C++ / Operators
2-
// Copyright (c) 2013-2018 Daniel Frey
2+
// Copyright (c) 2013-2019 Daniel Frey
33
// Please see LICENSE for license or visit https://github.com/taocpp/operators/
44

55
#include <tao/operators.hpp>
@@ -87,7 +87,7 @@ class X
8787
return *this;
8888
}
8989

90-
int v_;
90+
int v_; // NOLINT
9191
};
9292

9393
bool operator==( const X& lhs, const X& rhs )
@@ -150,7 +150,7 @@ struct C
150150
: tao::operators::less_than_comparable< C >,
151151
tao::operators::less_than_comparable< C, int >
152152
{
153-
const int i_;
153+
const int i_; // NOLINT
154154

155155
explicit constexpr C( int i ) noexcept
156156
: i_( i )

0 commit comments

Comments
 (0)