[llvm-bugs] [Bug 50429] New: missing space between * and a variable

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 21 00:46:56 PDT 2021


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

            Bug ID: 50429
           Summary: missing space between * and a variable
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hly1204 at qq.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

It seems that the `*` at the end was formatted with no space after it.

------------------------------------------
std::pair<int, int> crt2(int a, int m1, int b, int m2) {
  return std::make_pair(int(ll(b + m2 - a % m2) % m2 * inv_mod(m1, m2) % m2 *
m1 + a), m1 *m2);
}
------------------------------------------

With the following settings:

------------------------------------------
BasedOnStyle: LLVM
Standard: Cpp11
PointerAlignment: Right
UseTab: Never
IndentWidth: 2
AccessModifierOffset: -2
AllowShortIfStatementsOnASingleLine: true
AlwaysBreakTemplateDeclarations: false
AllowShortLoopsOnASingleLine: true
ColumnLimit: 100
------------------------------------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210521/29800e2a/attachment.html>


More information about the llvm-bugs mailing list