Code Inspection | LLVM/Clang Equivalent and Documentation |
Default Level |
Fixable | Introduced in Build |
---|---|---|---|---|
Check emptiness with empty() instead of size() | readability-container-size-empty | 3 | ![]() |
2219 |
Constructor of shared_pointer can be replaced with make_shared | modernize-make-shared | 3 | ![]() |
2210 |
Constructor of unique_ptr can be replaced with make_unique | modernize-make-unique | 3 | ![]() |
2210 |
Escaped string literal can be written as raw string literal | modernize-raw-string-literal | 3 | ![]() |
2217 |
For loop can be converted to range-based loop | modernize-loop-convert | 3 | ![]() |
2210 |
Integer literal can be replaced with 'true' or 'false' | modernize-use-bool-literals | 3 | ![]() |
2235 |
Local variable can be a const reference | performance-unnecessary-copy-initialization | 3 | ![]() |
2248 |
Overriding function without 'override' specifier | modernize-use-override | 3 | ![]() |
2210 |
Prefer transparent functor | modernize-use-transparent-functors | 3 | ![]() |
2248 |
push_back can be replaced with emplace_back | modernize-use-emplace | 3 | ![]() |
2210 |
Range-based loop variable can be a const reference | performance-for-range-copy | 3 | ![]() |
2248 |
Reduce container capacity with shrink_to_fit() instead of copy and swap | modernize-shrink-to-fit | 3 | ![]() |
2235 |
Redundant get() on smart pointer | readability-redundant-smartptr-get | 3 | ![]() |
2219 |
Redundant 'return' or 'continue' statement | readability-redundant-control-flow | 3 | ![]() |
2219 |
Redundant 'void' parameter list | modernize-redundant-void-arg | 5 | ![]() |
2210 |
Reset unique_ptr with '= nullptr' instead of delete 'p.release()' | readability-uniqueptr-delete-release | 3 | ![]() |
2219 |
Special member function body can be replaced with '= default' | modernize-use-equals-default | 3 | ![]() |
2210 |
Typedef can be converted to 'using' declaration | modernize-use-using | 3 | ![]() |
2210 |
Use shuffle() instead of random_shuffle() | modernize-replace-random-shuffle | 3 | ![]() |
2283 |
Variable can be declared 'auto' | modernize-use-auto | 5 | ![]() |
2210 |
Zero constant can be replaced with nullptr | modernize-use-nullptr | 3 | ![]() |
2210 |