llvm-project/clang-tools-extra/clang-doc
Simon Pilgrim 2188e61691 [clang-doc] populateParentNamespaces - use cast<> instead of dyn_cast<> to avoid dereference of nullptr
The pointer is referenced immediately, so assert the cast is correct instead of returning nullptr

It's only later iterations of the loop where the getParent() call might return nullptr
2022-02-12 11:28:50 +00:00
..
assets
tool [clang-tools-extra][cmake] Use `GNUInstallDirs` to support custom installation dirs. 2022-01-22 20:57:21 +00:00
BitcodeReader.cpp [clang-doc] Pass Record argument by const-ref. NFCI. 2021-09-24 10:06:13 +01:00
BitcodeReader.h
BitcodeWriter.cpp
BitcodeWriter.h
CMakeLists.txt [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
ClangDoc.cpp
ClangDoc.h fix typos in comments 2021-11-29 14:06:33 +01:00
Generators.cpp [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Generators.h [clangd] Add access specifier information to hover contents 2020-05-27 19:36:46 +02:00
HTMLGenerator.cpp PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
MDGenerator.cpp [clangd] Add access specifier information to hover contents 2020-05-27 19:36:46 +02:00
Mapper.cpp [clang-tools-extra] Remove unused using (NFC) 2021-12-31 10:51:10 -08:00
Mapper.h
Representation.cpp
Representation.h
Serialize.cpp [clang-doc] populateParentNamespaces - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-02-12 11:28:50 +00:00
Serialize.h
YAMLGenerator.cpp