-
Notifications
You must be signed in to change notification settings - Fork 15k
Closed
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute
Description
Instead of doing ExprEvalContexts[ExprEvalContexts.size() - 2]
call now parentEvaluationContext
. There are a few places where this can be done:
[source/llvm-project/clang]
$ grep -rni "ExprEvalContexts\[ExprEvalContexts.size() - 2\]"
lib/Sema/SemaExpr.cpp:17227: ExprEvalContexts[ExprEvalContexts.size() - 2].Context;
lib/Sema/SemaExpr.cpp:17244: ExprEvalContexts[ExprEvalContexts.size() - 2]
lib/Sema/SemaExpr.cpp:17251: const auto &Prev = ExprEvalContexts[ExprEvalContexts.size() - 2];
lib/Sema/SemaExpr.cpp:17696: auto &PrevRecord = ExprEvalContexts[ExprEvalContexts.size() - 2];
include/clang/Sema/Sema.h:5159: return ExprEvalContexts[ExprEvalContexts.size() - 2];
include/clang/Sema/Sema.h:6292: ExprEvalContexts[ExprEvalContexts.size() - 2]
include/clang/Sema/Sema.h:6295: auto &PrevRecord = ExprEvalContexts[ExprEvalContexts.size() - 2]
shafik
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute