MCPcopy Create free account
hub / github.com/KDE/kdevelop / literalIfHasField

Function literalIfHasField

plugins/debuggercommon/midebugsession.cpp:57–60  ·  view source on GitHub ↗

* @return the string literal value of a given field of a given tuple value, * or an empty string if the tuple value does not contain the field */

Source from the content-addressed store, hash-verified

55 * or an empty string if the tuple value does not contain the field
56 */
57[[nodiscard]] QString literalIfHasField(const MI::Value& tupleValue, const QString& fieldName)
58{
59 return tupleValue.hasField(fieldName) ? tupleValue[fieldName].literal() : QString{};
60}
61
62struct SignalInfo
63{

Callers 2

fromRecordMethod · 0.85

Calls 2

hasFieldMethod · 0.80
literalMethod · 0.80

Tested by

no test coverage detected