mirror of https://github.com/microsoft/clang.git
utils: Silence -Wpedantic warning
llvm/tools/clang/utils/TableGen/ClangAttrEmitter.cpp:1673:67: warning: default argument specified for lambda parameter [-Wpedantic] const Record *Constraint = nullptr) { ^~~~~~~ Found by gcc 5.4.0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f0a1b46cb
commit
088659bc77
|
@ -1670,7 +1670,7 @@ PragmaClangAttributeSupport::PragmaClangAttributeSupport(
|
|||
Records.getAllDerivedDefinitions("AttrSubjectMatcherRule");
|
||||
auto MapFromSubjectsToRules = [this](const Record *SubjectContainer,
|
||||
const Record *MetaSubject,
|
||||
const Record *Constraint = nullptr) {
|
||||
const Record *Constraint) {
|
||||
Rules.emplace_back(MetaSubject, Constraint);
|
||||
std::vector<Record *> ApplicableSubjects =
|
||||
SubjectContainer->getValueAsListOfDefs("Subjects");
|
||||
|
@ -1688,7 +1688,7 @@ PragmaClangAttributeSupport::PragmaClangAttributeSupport(
|
|||
}
|
||||
};
|
||||
for (const auto *MetaSubject : MetaSubjects) {
|
||||
MapFromSubjectsToRules(MetaSubject, MetaSubject);
|
||||
MapFromSubjectsToRules(MetaSubject, MetaSubject, /*Constraints=*/nullptr);
|
||||
std::vector<Record *> Constraints =
|
||||
MetaSubject->getValueAsListOfDefs("Constraints");
|
||||
for (const auto *Constraint : Constraints)
|
||||
|
|
Loading…
Reference in New Issue