llvm-project/clang-tools-extra/clang-tidy
Haojian Wu 7dc410cbff [clang-tidy] Fix a regression of readability-container-size-empty after the AST ElaboratedType change.
With 15f3cd6bfc, we no longer emit a
diagnostic on a real std::vector case where the size method returns a
sugar `size_type`. This patch fixes it.

```
std::vector<int> v;
if (v.size() == 0) // => no check diagnostics
  ;
```

Differential Revision: https://reviews.llvm.org/D131390
2022-08-08 14:40:36 +02:00
..
abseil [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
altera [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
android [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
boost [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
bugprone [clang-tidy] Use is_contained (NFC) 2022-08-07 23:55:25 -07:00
cert Use llvm::is_contained (NFC) 2022-08-07 00:16:17 -07:00
concurrency [clang-tidy][docs] Fix a couple of missed cases from 6e566bc552 2022-06-22 21:37:16 +01:00
cppcoreguidelines [clang-tidy] Initialize boolean variables with `false` in cppcoreguidelines-init-variables' fix-it 2022-07-09 14:48:50 +02:00
darwin [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
fuchsia [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
google [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
hicpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
linuxkernel [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
llvm Use llvm::sort instead of std::sort where possible 2022-07-23 15:19:05 +02:00
llvmlibc [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
misc Use llvm::is_contained (NFC) 2022-08-07 00:16:17 -07:00
modernize [Clang][C++20] Support capturing structured bindings in lambdas 2022-08-04 10:12:53 +02:00
mpi [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
objc [clang-tidy] Use is_contained (NFC) 2022-08-07 23:55:25 -07:00
openmp [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
performance [clang-tools-extra] Fixed a number of typos 2022-08-01 15:32:25 +02:00
plugin [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
portability [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
readability [clang-tidy] Fix a regression of readability-container-size-empty after the AST ElaboratedType change. 2022-08-08 14:40:36 +02:00
tool Use any_of (NFC) 2022-07-22 01:05:17 -07:00
utils Remove redundaunt override specifiers (NFC) 2022-07-24 22:28:11 -07:00
zircon [clang-tidy] Organize check doc files into subdirectories (NFC) 2022-06-16 16:06:20 -06:00
CMakeLists.txt Re-land "Cache the locations of NOLINTBEGIN/END blocks" with fix for build bot 2022-01-27 01:03:27 +13:00
ClangTidy.cpp [clang-tidy] Add `-verify-config` command line argument 2022-06-23 19:23:09 +01:00
ClangTidy.h [clang-tidy] Add `-verify-config` command line argument 2022-06-23 19:23:09 +01:00
ClangTidyCheck.cpp [clang-tidy] Add `-verify-config` command line argument 2022-06-23 19:23:09 +01:00
ClangTidyCheck.h [clang-tools-extra] Use value_or instead of getValueOr (NFC) 2022-06-19 00:13:38 -07:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Add a Standalone diagnostics mode to clang-tidy 2022-04-16 09:53:35 +01:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Add `-verify-config` command line argument 2022-06-23 19:23:09 +01:00
ClangTidyForceLinker.h [clang-tidy] add concurrency module 2020-11-30 12:27:17 +03:00
ClangTidyModule.cpp [clang-tidy][NFC] Add createChecks method that also checks for LangaugeOptions 2022-05-06 17:30:34 +01:00
ClangTidyModule.h [clang-tidy][NFC] Add createChecks method that also checks for LangaugeOptions 2022-05-06 17:30:34 +01:00
ClangTidyModuleRegistry.h
ClangTidyOptions.cpp [clang-tidy] Extend spelling for CheckOptions 2022-06-23 19:59:31 +01:00
ClangTidyOptions.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ClangTidyProfiling.cpp Don't use Optional::hasValue (NFC) 2022-06-20 11:33:56 -07:00
ClangTidyProfiling.h
ExpandModularHeadersPPCallbacks.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
ExpandModularHeadersPPCallbacks.h [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
GlobList.cpp Allow newline characters as separators for checks in Clang-Tidy configurations 2022-03-15 14:30:13 -04:00
GlobList.h [clang-tidy][NFC] Remove Tristate from CachedGlobList 2022-02-23 08:35:31 +00:00
NoLintDirectiveHandler.cpp [clang-tools-extra] Use value_or instead of getValueOr (NFC) 2022-06-19 00:13:38 -07:00
NoLintDirectiveHandler.h Re-land "Cache the locations of NOLINTBEGIN/END blocks" with fix for build bot 2022-01-27 01:03:27 +13:00
add_new_check.py [clang-tidy] Add execute perms back to add_new_check script 2022-07-27 10:41:34 +01:00
clang-tidy-config.h.cmake Add an explicit toggle for the static analyzer in clang-tidy 2020-09-10 10:48:17 -04:00
rename_check.py Fix python 2-vs-3 issues in add_new_check.py and rename_check.py 2021-09-11 09:52:50 +02:00