[all-commits] [llvm/llvm-project] 3a158c: [clang] Fix -Wreorder-ctor of DependentFunctionTem...
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Sat Oct 7 00:34:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a158cc875a383e2d5b8da487633e53d061942f1
https://github.com/llvm/llvm-project/commit/3a158cc875a383e2d5b8da487633e53d061942f1
Author: Jie Fu <jiefu at tencent.com>
Date: 2023-10-07 (Sat, 07 Oct 2023)
Changed paths:
M clang/lib/AST/Decl.cpp
Log Message:
-----------
[clang] Fix -Wreorder-ctor of DependentFunctionTemplateSpecializationInfo (NFC)
/llvm-project/clang/lib/AST/Decl.cpp:4182:7: error: field 'TemplateArgumentsAsWritten' will be initialized after field 'NumCandidates' [-Werror,-Wreorder-ctor]
: TemplateArgumentsAsWritten(TemplateArgsWritten),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NumCandidates(Candidates.size())
1 error generated.
More information about the All-commits
mailing list