llvm-capstone/clang-tools-extra/clang-tidy
Qizhi Hu eef35c287e
[clang-tidy]: Add TagDecl into LastTagDeclRanges in UseUsingCheck only when it is a definition (#67639)
Fix issue 67529, [clang-tidy: modernize-use-using fails when type is
implicitly forward
declared](https://github.com/llvm/llvm-project/issues/67529)
The problem is that using `Lexer` to get record declaration will lose
the type information when its original type is pointer or reference.
This patch fix this problem by skip adding the tag declaration when it's
only a 'declaration' and not a 'definition'.

Co-authored-by: huqizhi <836744285@qq.com>
2023-10-05 13:49:21 +08:00
..
abseil [clang] NFCI: Use FileEntryRef in 'clang-tools-extra' 2023-09-10 19:53:54 -07:00
altera [clang] NFCI: Use FileEntryRef in 'clang-tools-extra' 2023-09-10 19:53:54 -07:00
android
boost
bugprone [clang-tidy][NFC] Update documentation for bugprone-undefined-memory-manipulation 2023-09-20 21:01:34 +00:00
cert [clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings 2023-08-27 11:59:03 +00:00
concurrency [clang-tidy][NFC] Fix modernize-return-braced-init-list findings 2023-08-27 08:52:10 +00:00
cppcoreguidelines [clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings 2023-08-27 11:59:03 +00:00
darwin
fuchsia [lldb] Fix duplicate word typos; NFC 2023-09-01 21:32:24 -07:00
google [clang-tidy][NFC] Fix llvm-else-after-return findings 2023-08-30 17:41:41 +00:00
hicpp [clang-tidy][NFC][DOC] Update links to HICPP standard 2023-08-30 18:02:34 +00:00
linuxkernel [clang-tidy][NFC] Fix modernize-use-auto findings 2023-08-27 11:59:02 +00:00
llvm [clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings 2023-08-27 11:59:03 +00:00
llvmlibc [clang-tidy][NFC] Removing lefover AST dump() 2023-09-26 20:24:52 +00:00
misc [clang] NFCI: Use FileEntryRef in 'clang-tools-extra' 2023-09-10 19:53:54 -07:00
modernize [clang-tidy]: Add TagDecl into LastTagDeclRanges in UseUsingCheck only when it is a definition (#67639) 2023-10-05 13:49:21 +08:00
mpi
objc [clang-tidy][NFC] Fix modernize-return-braced-init-list findings 2023-08-27 08:52:10 +00:00
openmp
performance [clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings 2023-08-27 11:59:03 +00:00
plugin
portability
readability [clang-tidy] Avoid checking magic numbers if _BitInt (#65888) 2023-09-17 14:00:57 -05:00
tool [clang-tidy][NFC] Minor cleanup in ClangTidyMain.cpp 2023-09-16 06:17:57 +00:00
utils [clang-tidy] Fix support for typedefs in readability-identifier-naming (#66835) 2023-09-20 21:29:54 +02:00
zircon
add_new_check.py
clang-tidy-config.h.cmake
ClangTidy.cpp [clang] NFCI: Use FileEntryRef for FileID creation (#67838) 2023-10-03 13:07:46 -07:00
ClangTidy.h
ClangTidyCheck.cpp [clang-tidy][NFC] Fix cppcoreguidelines-init-variables findings 2023-08-27 11:59:03 +00:00
ClangTidyCheck.h [clang-tidy][NFC] Fix modernize-type-traits findings 2023-08-27 08:52:11 +00:00
ClangTidyDiagnosticConsumer.cpp [clang] NFCI: Use FileEntryRef for FileID creation (#67838) 2023-10-03 13:07:46 -07:00
ClangTidyDiagnosticConsumer.h [clang-tidy][NFC] Fix modernize-use-default-member-init findings 2023-08-27 08:52:11 +00:00
ClangTidyForceLinker.h
ClangTidyModule.cpp [clang-tidy][NFC] Fix modernize-return-braced-init-list findings 2023-08-27 08:52:10 +00:00
ClangTidyModule.h [clang-tidy][NFC] Fix modernize-use-using findings 2023-08-27 08:52:10 +00:00
ClangTidyModuleRegistry.h [clang-tidy][NFC] Fix modernize-use-using findings 2023-08-27 08:52:10 +00:00
ClangTidyOptions.cpp [clang-tidy][NFC] Fix modernize-use-auto findings 2023-08-27 11:59:02 +00:00
ClangTidyOptions.h [clang-tidy][NFC] Fix readability-redundant-access-specifiers findings 2023-08-27 08:52:10 +00:00
ClangTidyProfiling.cpp [clang-tidy][NFC] Fix modernize-raw-string-literal findings 2023-08-27 08:52:10 +00:00
ClangTidyProfiling.h
CMakeLists.txt
ExpandModularHeadersPPCallbacks.cpp [clang] NFCI: Use FileEntryRef in SourceManager::FileInfos (#67742) 2023-09-29 08:04:34 -07:00
ExpandModularHeadersPPCallbacks.h
FileExtensionsSet.h [clang-tidy][NFC] Fix modernize-use-using findings 2023-08-27 08:52:10 +00:00
GlobList.cpp Silence an illegal conversion warning in MSVC; NFC 2023-08-28 08:06:03 -04:00
GlobList.h
NoLintDirectiveHandler.cpp
NoLintDirectiveHandler.h
rename_check.py