[clang-tidy] Pop Files only if FileChangeReason is ExitFile
authorJim Lin <jim@andestech.com>
Tue, 25 Jan 2022 07:05:43 +0000 (15:05 +0800)
committerJim Lin <jim@andestech.com>
Tue, 25 Jan 2022 14:46:12 +0000 (22:46 +0800)
commitf3314e3747873fdf026a28742a30f372503baf32
tree43db71186ce47bf284297109b791d759f2039f6c
parent98db33349bcc4d12a56313c406c1f40038258f10
[clang-tidy] Pop Files only if FileChangeReason is ExitFile

enum FileChangeReason has four possible type EnterFile, ExitFile,
SystemHeaderPragma and RenameFile,
It should pop the back element of Files only if FileChangeReason is ExitFile.
clang-tools-extra/clang-tidy/readability/DuplicateIncludeCheck.cpp