forked from OSchip/llvm-project
[clang] Strip redundant lambda (NFC)
This commit is contained in:
parent
552d84414d
commit
4e310d89f2
|
@ -770,9 +770,7 @@ static void parseAnalyzerConfigs(AnalyzerOptions &AnOpts,
|
|||
static void getAllNoBuiltinFuncValues(ArgList &Args,
|
||||
std::vector<std::string> &Funcs) {
|
||||
std::vector<std::string> Values = Args.getAllArgValues(OPT_fno_builtin_);
|
||||
auto BuiltinEnd = llvm::partition(Values, [](const std::string FuncName) {
|
||||
return Builtin::Context::isBuiltinFunc(FuncName);
|
||||
});
|
||||
auto BuiltinEnd = llvm::partition(Values, Builtin::Context::isBuiltinFunc);
|
||||
Funcs.insert(Funcs.end(), Values.begin(), BuiltinEnd);
|
||||
}
|
||||
|
||||
|
|
|
@ -2306,9 +2306,7 @@ void Sema::startOpenMPCXXRangeFor() {
|
|||
OpenMPClauseKind Sema::isOpenMPPrivateDecl(ValueDecl *D, unsigned Level,
|
||||
unsigned CapLevel) const {
|
||||
assert(LangOpts.OpenMP && "OpenMP is not allowed");
|
||||
if (DSAStack->hasExplicitDirective(
|
||||
[](OpenMPDirectiveKind K) { return isOpenMPTaskingDirective(K); },
|
||||
Level)) {
|
||||
if (DSAStack->hasExplicitDirective(isOpenMPTaskingDirective, Level)) {
|
||||
bool IsTriviallyCopyable =
|
||||
D->getType().getNonReferenceType().isTriviallyCopyableType(Context) &&
|
||||
!D->getType()
|
||||
|
|
Loading…
Reference in New Issue