aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
diff options
context:
space:
mode:
authorPeter Klausler <35819229+klausler@users.noreply.github.com>2024-07-30 09:41:46 -0700
committerGitHub <noreply@github.com>2024-07-30 09:41:46 -0700
commit33c27f28d1cd05fd0a739498105927c1fba04666 (patch)
tree5ca6e4af27a84b63351da6346abf4905d61157d4 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
parent971a1ac4451017e625f81a4a8c15092c06dd2eb3 (diff)
downloadllvm-33c27f28d1cd05fd0a739498105927c1fba04666.zip
llvm-33c27f28d1cd05fd0a739498105927c1fba04666.tar.gz
llvm-33c27f28d1cd05fd0a739498105927c1fba04666.tar.bz2
[flang] Warn about undefined function results (#99533)
When the result of a function never appears in a variable definition context, emit a warning. If the function has multiple result variables due to alternate ENTRY statements, any definition will suffice. The implementation of this check is tied to the general variable definability checking utility in semantics. Every variable definition context uses it to ensure that no undefinable variable is being defined. A set of defined variables is maintained in the SemanticsContext and, when the warning is enabled and no fatal error has been reported, the scope tree is traversed and all the function subprograms' results are tested for membership in that set.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions