aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSergei Druzhkov <serzhdruzhok@gmail.com>2025-10-15 23:46:07 +0300
committerGitHub <noreply@github.com>2025-10-15 23:46:07 +0300
commit995eb4ca2ee15daffcc5a20121de955a0e2ca023 (patch)
treeb7bd0571117529a420ebc6719d076775285dc2ea /clang/lib/Frontend/CompilerInvocation.cpp
parent6a0416af54639cdac5b134b7d4f060908892428b (diff)
downloadllvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.zip
llvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.tar.gz
llvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.tar.bz2
[lldb-dap] Add readOnly attribute for variables (#151884)
This patch adds `readOnly` [attribute](https://microsoft.github.io/debug-adapter-protocol/specification#Types_VariablePresentationHint) for variables. When this attribute is returned for a variable, VS Code prevents editing (and grays out the `Set Value` button). Without this, users might be confused if the UI allows edits but the debug adapter often returns an error. I checked `SetValueFromCString` function implementation and found that it doesn't support aggregate data types, so I added simple check for them. Also, I found that I can update value of registers sets (but without any effects). So I also added checks for those as well.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions