aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaPseudoObject.cpp
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2024-08-29 12:00:28 -0700
committerGitHub <noreply@github.com>2024-08-29 12:00:28 -0700
commitff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05 (patch)
treedff44502eeb3eea0829fc5f1db265040a9d09b92 /clang/lib/Sema/SemaPseudoObject.cpp
parente9eaf19eb605c14bed7a0f76d206c13a8eaf842f (diff)
downloadllvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.zip
llvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.tar.gz
llvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.tar.bz2
[NFC][Sema] Move `Sema::AssignmentAction` into its own scoped enum (#106453)
The primary motivation behind this is to allow the enum type to be referred to earlier in the Sema.h file which is needed for #106321. It was requested in #106321 that a scoped enum be used (rather than moving the enum declaration earlier in the Sema class declaration). Unfortunately doing this creates a lot of churn as all use sites of the enum constants had to be changed. Appologies to all downstream forks in advanced. Note the AA_ prefix has been dropped from the enum value names as they are now redundant.
Diffstat (limited to 'clang/lib/Sema/SemaPseudoObject.cpp')
-rw-r--r--clang/lib/Sema/SemaPseudoObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaPseudoObject.cpp b/clang/lib/Sema/SemaPseudoObject.cpp
index fdb584c..30ed47e 100644
--- a/clang/lib/Sema/SemaPseudoObject.cpp
+++ b/clang/lib/Sema/SemaPseudoObject.cpp
@@ -787,7 +787,7 @@ ExprResult ObjCPropertyOpBuilder::buildSet(Expr *op, SourceLocation opcLoc,
if (opResult.isInvalid() ||
S.DiagnoseAssignmentResult(assignResult, opcLoc, paramType,
op->getType(), opResult.get(),
- Sema::AA_Assigning))
+ AssignmentAction::Assigning))
return ExprError();
op = opResult.get();