Skip to content
Snippets Groups Projects
  • Daniel Jasper's avatar
    57fae474
    clang-format: Handle "if constexpr". · 57fae474
    Daniel Jasper authored
    c++1z adds the following constructions to the language:
    
      if constexpr (cond)
        statement1;
      else if constexpr (cond)
        statement2;
      else if constexpr (cond)
        statement3;
      else
        statement4;
    
    A first version of this was proposed in reviews.llvm.org/D26953 by
    Francis Visoiu Mistrih, but never commited. This patch additionally
    fixes the behavior when allowing short if statements on a single line
    and was authored by Jacob Bandes-Storch. Thank you to both authors.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305666 91177308-0d34-0410-b5e6-96231b3b80d8
    57fae474
    History
    clang-format: Handle "if constexpr".
    Daniel Jasper authored
    c++1z adds the following constructions to the language:
    
      if constexpr (cond)
        statement1;
      else if constexpr (cond)
        statement2;
      else if constexpr (cond)
        statement3;
      else
        statement4;
    
    A first version of this was proposed in reviews.llvm.org/D26953 by
    Francis Visoiu Mistrih, but never commited. This patch additionally
    fixes the behavior when allowing short if statements on a single line
    and was authored by Jacob Bandes-Storch. Thank you to both authors.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305666 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.