[lldb][NFC] Refactor Fix-It filter for warnings
authorRaphael Isemann <teemperor@gmail.com>
Mon, 30 Mar 2020 09:52:20 +0000 (11:52 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 30 Mar 2020 12:01:16 +0000 (14:01 +0200)
commit11a5caee2aeae2546213366e7fc54095bb8163b9
tree594ac8bffc37287a50876da4fe2c87e060f1da8d
parent3b20970de8e613961ee6745f03c04be0ec1d6cb7
[lldb][NFC] Refactor Fix-It filter for warnings

LLDB only automatically applies Fix-Its from errors, but not from warnings.

Currently we only store Fix-Its from errors and then later apply all Fix-Its
we stored. This moves the filter to the application phase, so that we now
store *all* Fix-Its but only apply Fix-Its from errors later on.

This is NFC preparation for an upcoming patch.
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp