HomePhabricator

[clang] NFC: Rename rvalue to prvalue

Authored by mizvekov on Fri, Jun 4, 2:15 PM.

Description

[clang] NFC: Rename rvalue to prvalue

This renames the expression value categories from rvalue to prvalue,
keeping nomenclature consistent with C++11 onwards.

C++ has the most complicated taxonomy here, and every other language
only uses a subset of it, so it's less confusing to use the C++ names
consistently, and mentally remap to the C names when working on that
context (prvalue -> rvalue, no xvalues, etc).

Renames:

  • VK_RValue -> VK_PRValue
  • Expr::isRValue -> Expr::isPRValue
  • SK_QualificationConversionRValue -> SK_QualificationConversionPRValue
  • JSON AST Dumper Expression nodes value category: "rvalue" -> "prvalue"

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D103720

Details