Skip to content
Unverified Commit eef35c28 authored by Qizhi Hu's avatar Qizhi Hu Committed by GitHub
Browse files

[clang-tidy]: Add TagDecl into LastTagDeclRanges in UseUsingCheck only when it...

[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: default avatarhuqizhi <836744285@qq.com>
parent a4765c6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment