[all-commits] [llvm/llvm-project] 19b4d3: [lldb] Don't emit a warning when using Objective-C...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Thu Feb 11 07:49:16 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 19b4d3ce27d5c8ed19bf08cdceb4c03608d2c66d
https://github.com/llvm/llvm-project/commit/19b4d3ce27d5c8ed19bf08cdceb4c03608d2c66d
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2021-02-11 (Thu, 11 Feb 2021)
Changed paths:
M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
A lldb/test/API/lang/objc/warnings-in-expr-parser/Makefile
A lldb/test/API/lang/objc/warnings-in-expr-parser/TestObjCWarningsInExprParser.py
A lldb/test/API/lang/objc/warnings-in-expr-parser/main.m
Log Message:
-----------
[lldb] Don't emit a warning when using Objective-C getters in expressions
Clang emits a warning when accessing an Objective-C getter but not using the result.
This gets triggered when just trying to print a getter value in the expression parser (where
Clang just sees a normal expression like `obj.getter` while parsing).
This patch just disables the warning in the expression parser (similar to what we do with
the C++ equivalent of just accessing a member variable but not doing anything with it).
Reviewed By: kastiglione
Differential Revision: https://reviews.llvm.org/D94307
More information about the All-commits
mailing list