github-actions[bot] wrote:

<!--LLVM CODE LINT COMMENT: clang-tidy-->


:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

```bash

git diff -U0 origin/main...HEAD -- 
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp 
clang-tools-extra/clang-tidy/ClangTidyOptions.h 
clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.cpp 
clang-tools-extra/clang-tidy/boost/UseRangesCheck.cpp 
clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp 
clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp 
clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.h 
clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp 
clang-tools-extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp 
clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 
clang-tools-extra/clang-tidy/readability/AvoidReturnWithVoidValueCheck.cpp 
clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp 
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp 
clang-tools-extra/clang-tidy/readability/SimplifySubscriptExprCheck.cpp 
clang-tools-extra/clang-tidy/readability/StringCompareCheck.cpp 
clang-tools-extra/clang-tidy/utils/OptionsUtils.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py   -path build -p1 
-quiet
```

</details>

<details>
<summary>
View the output from clang-tidy here.
</summary>

```


clang-tools-extra/clang-tidy/boost/UseRangesCheck.cpp:205:30: error: constexpr 
variable cannot have non-literal type 'const Signature' (aka 'const 
SmallVector<Indexes, 2>') [clang-diagnostic-error]
  205 |   static constexpr Signature SingleSig = {{0}};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/boost/UseRangesCheck.cpp:206:30: error: constexpr 
variable cannot have non-literal type 'const Signature' (aka 'const 
SmallVector<Indexes, 2>') [clang-diagnostic-error]
  206 |   static constexpr Signature TwoSig = {{0}, {2}};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^









clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:141:30: error: 
constexpr variable cannot have non-literal type 'const Signature' (aka 'const 
SmallVector<Indexes, 2>') [clang-diagnostic-error]
  141 |   static constexpr Signature SingleRangeArgs = {{0}};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:144:30: error: 
constexpr variable cannot have non-literal type 'const Signature' (aka 'const 
SmallVector<Indexes, 2>') [clang-diagnostic-error]
  144 |   static constexpr Signature TwoRangeArgs = {{0}, {2}};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:147:30: error: 
constexpr variable cannot have non-literal type 'const Signature' (aka 'const 
SmallVector<Indexes, 2>') [clang-diagnostic-error]
  147 |   static constexpr Signature SinglePivotRange = {{0, 2}};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:149:30: error: 
constexpr variable cannot have non-literal type 'const Signature[]' (aka 'const 
SmallVector<Indexes, 2>[]') [clang-diagnostic-error]
  149 |   static constexpr Signature SingleRangeFunc[] = {SingleRangeArgs};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:151:30: error: 
constexpr variable cannot have non-literal type 'const Signature[]' (aka 'const 
SmallVector<Indexes, 2>[]') [clang-diagnostic-error]
  151 |   static constexpr Signature TwoRangeFunc[] = {TwoRangeArgs};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:153:30: error: 
constexpr variable cannot have non-literal type 'const Signature[]' (aka 'const 
SmallVector<Indexes, 2>[]') [clang-diagnostic-error]
  153 |   static constexpr Signature SinglePivotFunc[] = {SinglePivotRange};
      |                              ^
llvm/include/llvm/ADT/SmallVector.h:1202:22: note: 
'SmallVector<clang::tidy::utils::UseRangesCheck::Indexes, 2>' is not literal 
because it is not an aggregate and has no constexpr constructors other than 
copy or move constructors
 1202 | class LLVM_GSL_OWNER SmallVector : public SmallVectorImpl<T>,
      |                      ^
```

</details>


https://github.com/llvm/llvm-project/pull/173406
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to