Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ecpcitest
proteas
llvm-project
Repository
86497026a266f153d1c2b823fe7758acc4ab959d
Switch branch/tag
llvm-project
clang-tools-extra
clang-tidy
readability
SuspiciousCallArgumentCheck.cpp
Find file
Blame
History
Permalink
[clang-tidy] Use cast<>/castAs<> instead of dyn_cast<>/getAs<> to avoid dereference of nullptr
· 86497026
Simon Pilgrim
authored
Jan 23, 2022
The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr
86497026