Displaying 3 results from an estimated 3 matches for "registrydata".
2018 Nov 25
6
RFC: Modernizing our use of auto
..., but also with objects which have a validity check such as
isNone(), isValid(), isNull() or just `!= nullptr` etc.
I'd also like to update them so that
llvm::Optional<std::pair<std::string, MatcherCtor>>
getNodeConstructorType(ASTNodeKind targetType) {
auto const &ctors = RegistryData->nodeConstructors();
auto it = llvm::find_if(
ctors, [targetType](const NodeConstructorMap::value_type &ctor) {
return ctor.first.isSame(targetType);
});
if (it == ctors.end())
return llvm::None;
return it->second;
}
is acceptable. The `auto it` is al...
2018 Dec 04
4
[cfe-dev] RFC: Modernizing our use of auto
...e reviewer that is more familiar with the
code and APIs in question.
> > I'd also like to update them so that
> >
> > llvm::Optional<std::pair<std::string, MatcherCtor>>
> > getNodeConstructorType(ASTNodeKind targetType) {
> > auto const &ctors = RegistryData->nodeConstructors();
> > auto it = llvm::find_if(
> > ctors, [targetType](const NodeConstructorMap::value_type &ctor) {
> > return ctor.first.isSame(targetType);
> > });
> > if (it == ctors.end())
> > return llvm::None;
> > ret...
2018 Dec 31
4
RFC: Modernizing our use of auto
On Dec 16, 2018, at 11:44 AM, Stephen Kelly via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> On 25/11/2018 14:43, Stephen Kelly via llvm-dev wrote:
>> However this is a proposal for more modern thinking regarding the permissiveness of auto in LLVM codebases.
>> Currently the rule on the use of auto is here:
>
> Hi,
>
> Thanks for the input on this topic,