[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 24 01:04:36 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d097f430a172a5d798a39b416b1af84f4ec572e1 9edd7f7c3c7183d4d019ab5b508eef2d34340423 --extensions h,cpp -- clang/include/clang/Sema/Overload.h clang/lib/Sema/SemaOverload.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Sema/Overload.h b/clang/include/clang/Sema/Overload.h
index 2cf30d7b11..26ffe057c7 100644
--- a/clang/include/clang/Sema/Overload.h
+++ b/clang/include/clang/Sema/Overload.h
@@ -998,8 +998,9 @@ class Sema;
private:
friend class OverloadCandidateSet;
OverloadCandidate()
- : IsSurrogate(false), IgnoreObjectArgument(false), TookAddressOfOverload(false),
- IsADLCandidate(CallExpr::NotADL), RewriteKind(CRK_None) {}
+ : IsSurrogate(false), IgnoreObjectArgument(false),
+ TookAddressOfOverload(false), IsADLCandidate(CallExpr::NotADL),
+ RewriteKind(CRK_None) {}
};
/// OverloadCandidateSet - A set of overload candidates, used in C++
``````````
</details>
https://github.com/llvm/llvm-project/pull/100318
More information about the cfe-commits
mailing list