[Lldb-commits] [clang] [compiler-rt] [libc] [libclc] [libcxxabi] [lld] [lldb] [llvm] [mlir] Add clarifying parenthesis around non-trivial conditions in ternary expressions. (PR #90391)

via lldb-commits lldb-commits at lists.llvm.org
Mon May 6 09:06:01 PDT 2024


================
@@ -801,7 +801,7 @@ static OutputDesc *addInputSec(StringMap<TinyPtrVector<OutputSection *>> &map,
       auto *firstIsec = cast<InputSectionBase>(
           cast<InputSectionDescription>(sec->commands[0])->sectionBases[0]);
       OutputSection *firstIsecOut =
-          firstIsec->flags & SHF_LINK_ORDER
----------------
luolent wrote:

Hi @MaskRay ,

the PR modifies all the files with non-trivial ternary operators given by Cppcheck ([issue](https://github.com/llvm/llvm-project/issues/85868)).
You can find the Cppcheck report inside the comments thread of the issue.

https://github.com/llvm/llvm-project/pull/90391


More information about the lldb-commits mailing list