You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jin Shang (Jira)" <ji...@apache.org> on 2022/09/21 13:14:00 UTC

[jira] [Commented] (ARROW-17547) [C++] Adopt C++17 idioms and features for maintainability

    [ https://issues.apache.org/jira/browse/ARROW-17547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17607745#comment-17607745 ] 

Jin Shang commented on ARROW-17547:
-----------------------------------

Another possible C++17 idiom is the [[nodiscard]] attribute. Clang-tidy has this check ([https://releases.llvm.org/9.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/modernize-use-nodiscard.html)] and can be used to apply it automatically.

> [C++] Adopt C++17 idioms and features for maintainability
> ---------------------------------------------------------
>
>                 Key: ARROW-17547
>                 URL: https://issues.apache.org/jira/browse/ARROW-17547
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: C++
>            Reporter: Antoine Pitrou
>            Priority: Major
>             Fix For: 10.0.0
>
>
> A first version of this task was attempted one year ago in https://github.com/apache/arrow/pull/10414
> Possible idioms to look for:
> * {{if constexpr}} to replace SFINAE hackery
> * {{std::from_chars}} and {{std::to_chars}} to replace locale-dependent number parsing/formatting
> * lambda capture move-construction
> Possibly sub-tasks:
> * regenerate Flatbuffers files for C++17 (see {{build-support/update-flatbuffers.sh}})
> * update {{build-support/cpplint.py}} to newer upstream version



--
This message was sent by Atlassian Jira
(v8.20.10#820010)