#
9e104151 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-braces-around-statements check
This checks that bodies of if statements and loops (for, do while, and while) are inside braces.
Signed-off-by: George Liu <liuxiwei@ie
clang-tidy: Enable readability-braces-around-statements check
This checks that bodies of if statements and loops (for, do while, and while) are inside braces.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I9b79aaa3d3299d42ae245afe4b9488ae58e2c28d
show more ...
|
#
3d68ed5f |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-redundant-string-cstr check
This check finds unnecessary calls to std::string::c_str() and std::string::data().
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Cha
clang-tidy: Enable readability-redundant-string-cstr check
This check finds unnecessary calls to std::string::c_str() and std::string::data().
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I4ff9cd7f1595a1cd7c6dbab4c7a80d6f7cf05ca2
show more ...
|
#
3d48751b |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-qualified-auto check
This check aims to improve code readability by suggesting the use of const auto * instead of auto for variables that are pointers or iterators. Th
clang-tidy: Enable readability-qualified-auto check
This check aims to improve code readability by suggesting the use of const auto * instead of auto for variables that are pointers or iterators. This helps clarify the const-ness of the pointed-to object or container elements.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ia132b6dd8ae4e3c16809326f6055396666abc95a
show more ...
|
#
349d22e3 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-simplify-boolean-expr check
This checks for boolean expressions involving boolean constants and simplifies them to use the appropriate boolean expression directly.
Si
clang-tidy: Enable readability-simplify-boolean-expr check
This checks for boolean expressions involving boolean constants and simplifies them to use the appropriate boolean expression directly.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: If2316dc52cbd280971f0333ee805b11e1b99d27f
show more ...
|
#
49875a26 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-implicit-bool-conversion check
This check can be used to find implicit conversions between built-in types and booleans. the following conversion types are checked: - i
clang-tidy: Enable readability-implicit-bool-conversion check
This check can be used to find implicit conversions between built-in types and booleans. the following conversion types are checked: - integer expression/literal to boolean - floating expression/literal to boolean - pointer/pointer to member/nullptr/NULL to boolean - boolean expression/literal to integer - boolean expression/literal to floating
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I3f4bc8902e255d1c85ec57f47d9532ee7326a442
show more ...
|
#
80f51bbb |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-avoid-const-params-in-decls check
Checks whether a function declaration has parameters that are top level const. const values in declarations do not affect the signatu
clang-tidy: Enable readability-avoid-const-params-in-decls check
Checks whether a function declaration has parameters that are top level const. const values in declarations do not affect the signature of a function, so they should not be put there.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ic4c2fc0f4ce0ce03fd6621d1f8c928890cf5da88
show more ...
|
#
391bec5f |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-redundant-member-init check
Finds member initializations that are unnecessary because the same default constructor would be called if they were not present.
Signed-of
clang-tidy: Enable readability-redundant-member-init check
Finds member initializations that are unnecessary because the same default constructor would be called if they were not present.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ia112636b43360f6a4e14c0a7a80a2635754325c7
show more ...
|
#
16181d1d |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-static-accessed-through-instance check
Checks for member expressions that access static members through instances, and replaces them with uses of the appropriate quali
clang-tidy: Enable readability-static-accessed-through-instance check
Checks for member expressions that access static members through instances, and replaces them with uses of the appropriate qualified-id.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I24de8ac8897de839594c6c71319febd0209bbc2e
show more ...
|
#
f0592559 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-convert-member-functions-to-static
This check finds non-static member functions that can be made static because the functions don’t use this. This check also triggers
clang-tidy: Enable readability-convert-member-functions-to-static
This check finds non-static member functions that can be made static because the functions don’t use this. This check also triggers readability-static-accessed-through -instance check as we are trying to access a static member function through an instance.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I6efe76666f75fb4f65621796466d9347cea25d01
show more ...
|
#
b6da7888 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-string-compare check
Finds string comparisons using the compare method.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I78c904bca4724e84aa3999d9f34ed66
clang-tidy: Enable readability-string-compare check
Finds string comparisons using the compare method.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I78c904bca4724e84aa3999d9f34ed66b567af984
show more ...
|
#
15c6ec25 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-redundant-access-specifiers check
Finds classes, structs, and unions containing redundant member (field and method) access specifiers.
Signed-off-by: George Liu <liux
clang-tidy: Enable readability-redundant-access-specifiers check
Finds classes, structs, and unions containing redundant member (field and method) access specifiers.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I6ce8c84fbab98de5efd6a11804f9dc58afae5027
show more ...
|
#
405ea286 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability-const-return-type check
Checks for functions with a const-qualified return type and recommends removal of the const keyword. Such use of const is usually superfluous,
clang-tidy: Enable readability-const-return-type check
Checks for functions with a const-qualified return type and recommends removal of the const keyword. Such use of const is usually superfluous, and can prevent valuable compiler optimizations. Does not (yet) fix trailing return types.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ifff7541c95d7881d8c6407b20c906ec7eb13abf1
show more ...
|
#
effb343e |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable readability checks on repo
The readability-* checks in Clang-Tidy focus on improving code readability by enforcing guidelines and suggesting improvements that can enhance the clar
clang-tidy: Enable readability checks on repo
The readability-* checks in Clang-Tidy focus on improving code readability by enforcing guidelines and suggesting improvements that can enhance the clarity and maintainability of C++ code. This enables readability-const-return-type check.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I4253456bcab534ebf1c373988e0a1e5e6cfa1616
show more ...
|
#
b1331181 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Add few cppcoreguidelines check
These checks cover a wide range of best practices and recommendations aimed at improving the safety, readability, maintainability, and performance of our
clang-tidy: Add few cppcoreguidelines check
These checks cover a wide range of best practices and recommendations aimed at improving the safety, readability, maintainability, and performance of our C++ codebase according to the C++ Core Guidelines.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Id929229bdb6b42670f178dd24e8005c1168aa31f
show more ...
|
#
4bb15d80 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable performance-faster-string-find check
Optimize calls to std::string::find() and friends when the needle passed is a single character string literal. The character literal overload
clang-tidy: Enable performance-faster-string-find check
Optimize calls to std::string::find() and friends when the needle passed is a single character string literal. The character literal overload is more efficient.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I7cfc50410d6b6c9057995df8db47084445119d7b
show more ...
|
#
df3ab7c9 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable performance-move-const-arg check
The check warns: - if std::move() is called with a constant argument. - if std::move() is called with an argument of a trivially-copyable type.
clang-tidy: Enable performance-move-const-arg check
The check warns: - if std::move() is called with a constant argument. - if std::move() is called with an argument of a trivially-copyable type. - if the result of std::move() is passed as a const reference argument.
In all three cases, the check will suggest a fix that removes the std::move().
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ibaf1050b39bbcaddd27473c6f2009adbfb96125f
show more ...
|
#
112821cf |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable performance-for-range-copy check
The check is only applied to loop variables of types that are expensive to copy which means they are not trivially copyable or have a non-trivial
clang-tidy: Enable performance-for-range-copy check
The check is only applied to loop variables of types that are expensive to copy which means they are not trivially copyable or have a non-trivial copy constructor or destructor.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I9643e396c6bd95bb9bef9037f018fbaf20d506d7
show more ...
|
#
59ab7279 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Add performance checks
The checks are valuable for improving the runtime efficiency and resource utilization of your programs.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-
clang-tidy: Add performance checks
The checks are valuable for improving the runtime efficiency and resource utilization of your programs.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I04d39729fb764044f7910de0b243974debf5f775
show more ...
|
#
aaa667f2 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable modernize-use-nullptr check
This check converts the usage of null pointer constants (e.g. NULL, 0) to use the new C++11 and C23 nullptr keyword.
Signed-off-by: George Liu <liuxiw
clang-tidy: Enable modernize-use-nullptr check
This check converts the usage of null pointer constants (e.g. NULL, 0) to use the new C++11 and C23 nullptr keyword.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I10dccfd0513385c583ca07d13ed71edb04b58853
show more ...
|
#
c8ddde64 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable modernize-use-override check
This check adds override (introduced in C++11) to overridden virtual functions and removes virtual from those functions as it is not required.
Signed
clang-tidy: Enable modernize-use-override check
This check adds override (introduced in C++11) to overridden virtual functions and removes virtual from those functions as it is not required.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I7ce6bf641dabf4d325a29a1b641e58beac6885bd
show more ...
|
#
fcf08106 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable modernize-use-emplace check
The check flags insertions to an STL-style container done by calling the push_back, push, or push_front methods with an explicitly-constructed temporar
clang-tidy: Enable modernize-use-emplace check
The check flags insertions to an STL-style container done by calling the push_back, push, or push_front methods with an explicitly-constructed temporary of the container element type. In this case, the corresponding emplace equivalent methods result in less verbose and potentially more efficient code.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I540c22d3d26195a9d1ead57a4322541951c9ff53
show more ...
|
#
226059b8 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable modernize-avoid-bind check
The check finds uses of std::bind and boost::bind and replaces them with lambdas.
Lambdas will use value-capture unless reference capture is explicitly
clang-tidy: Enable modernize-avoid-bind check
The check finds uses of std::bind and boost::bind and replaces them with lambdas.
Lambdas will use value-capture unless reference capture is explicitly requested with std::ref or boost::ref.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I4491650a46eaab1588474b26efc622e89232ef02
show more ...
|
#
cc1de72d |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Enable modernize-use-equals-default check
This check replaces default bodies of special member functions with = default;.
The explicitly defaulted function declarations enable more oppo
clang-tidy: Enable modernize-use-equals-default check
This check replaces default bodies of special member functions with = default;.
The explicitly defaulted function declarations enable more opportunities in optimization, because the compiler might treat explicitly defaulted functions as trivial.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I1860b4c1f416f892ae224f9fcd83170f1b63043a
show more ...
|
#
7c737c0e |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Add some modernize checks
This commit adds some modernize tidy checks to enable usage of modern way of using c++ styles.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I9
clang-tidy: Add some modernize checks
This commit adds some modernize tidy checks to enable usage of modern way of using c++ styles.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I9b2dd131e409b52c409ab7491781cb03755cc0ec
show more ...
|
#
9e3a9d57 |
| 22-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
clang-tidy: Add clang-analyzer checks
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ib81c5de3561fdd81a5ab0b210227d1de54cf90c5
|