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

            Bug ID: 47070
           Summary: Bit-wise operators should not be used where logical
                    operators should be used.( & should be
                    &&)(llvm-project/clang-tools-extra/clangd/RIFF.cpp:lin
                    e 32)
           Product: clang-tools-extra
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: clangd
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Bit-wise operators should not be used where logical operators should be used.(
& should be &&)

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/clang-tools-extra/clangd/RIFF.cpp:line 32

    32    if (Len % 2 & !Stream.empty()) { // Skip padding byte.
    33      if (Stream.front())
    34        return makeError("nonzero padding byte");
    35      Stream = Stream.drop_front();
    36    }
    37    return std::move(C);
    38  }

Reported by: Ustchcs Toolsets Bugfinder

(bugfinder-5.2: Bit-wise operators should not be used where logical operators
should be used.( & should be &&))

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to