aboutsummaryrefslogtreecommitdiff
path: root/clang/docs
diff options
context:
space:
mode:
authormartinboehme <mboehme@google.com>2024-06-11 08:40:02 +0200
committerGitHub <noreply@github.com>2024-06-11 08:40:02 +0200
commit275196d866c86d95fc46b3324876ccbea09da79b (patch)
tree7b2eef1b5f31b72e1a5df91785c4498dcbc2599d /clang/docs
parent05e87a583ce2680fc7309491c8bc23fd0e3bd049 (diff)
downloadllvm-275196d866c86d95fc46b3324876ccbea09da79b.zip
llvm-275196d866c86d95fc46b3324876ccbea09da79b.tar.gz
llvm-275196d866c86d95fc46b3324876ccbea09da79b.tar.bz2
[clang][nullability] Don't return null fields from `getReferencedDecls()`. (#94983)
The patch includes a repro for a case where we were returning a null `FieldDecl` when calling `getReferencedDecls()` on the `InitListExpr` for a union. Also, I noticed while working on this that `RecordInitListHelper` has a bug where it doesn't work correctly for empty unions. This patch also includes a repro and fix for this bug.
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/tools/clang-formatted-files.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/docs/tools/clang-formatted-files.txt b/clang/docs/tools/clang-formatted-files.txt
index dee51e4..4866bd4 100644
--- a/clang/docs/tools/clang-formatted-files.txt
+++ b/clang/docs/tools/clang-formatted-files.txt
@@ -622,6 +622,7 @@ clang/tools/libclang/CXCursor.h
clang/tools/scan-build-py/tests/functional/src/include/clean-one.h
clang/unittests/Analysis/CFGBuildResult.h
clang/unittests/Analysis/MacroExpansionContextTest.cpp
+clang/unittests/Analysis/FlowSensitive/ASTOpsTest.cpp
clang/unittests/Analysis/FlowSensitive/CNFFormula.cpp
clang/unittests/Analysis/FlowSensitive/DataflowAnalysisContextTest.cpp
clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp