Skip to content
Snippets Groups Projects
  • Daniel Jasper's avatar
    2f0a020d
    clang-format: Fix regression introduced by r189353. · 2f0a020d
    Daniel Jasper authored
    Before:
      FirstToken->WhitespaceRange.getBegin()
          .getLocWithOffset(First->LastNewlineOffset);
    
    After:
      FirstToken->WhitespaceRange.getBegin().getLocWithOffset(
          First->LastNewlineOffset);
    
    Re-add logic to prevent breaking after an empty set of parentheses.
    Basically it seems that calling a function without parameters is more
    like navigating along the same object than it is a separate step of a
    builder-type call.
    
    We might need to extends this in future to allow "short" parameters that
    e.g. are an index accessing a specific element.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190126 91177308-0d34-0410-b5e6-96231b3b80d8
    2f0a020d
    History
    clang-format: Fix regression introduced by r189353.
    Daniel Jasper authored
    Before:
      FirstToken->WhitespaceRange.getBegin()
          .getLocWithOffset(First->LastNewlineOffset);
    
    After:
      FirstToken->WhitespaceRange.getBegin().getLocWithOffset(
          First->LastNewlineOffset);
    
    Re-add logic to prevent breaking after an empty set of parentheses.
    Basically it seems that calling a function without parameters is more
    like navigating along the same object than it is a separate step of a
    builder-type call.
    
    We might need to extends this in future to allow "short" parameters that
    e.g. are an index accessing a specific element.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190126 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.