llvm-project/clang-tools-extra/clang-doc
Paul Kirth 30360d88d4 [clang-doc] Add check for pointer validity
clang-doc would SEGV when running over the Fuchsia code base.
This patch adds a check to avoid dereferencing potentially null pointers
in the Values vector. These pointers were either never valid or had been
invalidated when the underlying pointer in std::unique_ptr was moved from,
hence making it nullptr within the vector.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D130279
2022-07-22 17:36:30 +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 Don't use Optional::getValue (NFC) 2022-06-20 23:35:53 -07:00
BitcodeWriter.h
CMakeLists.txt
ClangDoc.cpp
ClangDoc.h fix typos in comments 2021-11-29 14:06:33 +01:00
Generators.cpp
Generators.h
HTMLGenerator.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
MDGenerator.cpp Don't use Optional::getValue (NFC) 2022-06-20 23:35:53 -07:00
Mapper.cpp [clang-tools-extra] Remove unused using (NFC) 2021-12-31 10:51:10 -08:00
Mapper.h
Representation.cpp [clang-doc] Add check for pointer validity 2022-07-22 17:36:30 +00:00
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