https://bugs.llvm.org/show_bug.cgi?id=39067

            Bug ID: 39067
           Summary: The keyword "try" in C++ function-try-blocks doesn't
                    obey BraceWrapping settings
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: owenpi...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

With the configuration file:
BreakBeforeBraces: Custom
BraceWrapping:
    AfterControlStatement: true

The code below (https://en.cppreference.com/w/cpp/language/function-try-block)

int f(int n = 2) try {
   ++n; // increments the function parameter
   throw n;
}

is incorrectly formatted to:

int f(int n = 2) try
{
  ++n; // increments the function parameter
  throw n;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to