Removes a bunch of obsolete methods in favor of a single one returning
an ArrayRef of TemplateArgument.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Paths
| Differential D136602
NFC: [clang] Template argument cleanups. ClosedPublic Authored by mizvekov on Oct 24 2022, 7:38 AM.
Details
Summary Removes a bunch of obsolete methods in favor of a single one returning Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 24 2022, 7:38 AM mizvekov added a parent revision: D136566: [clang] Instantiate concepts with sugared template arguments.Oct 24 2022, 7:39 AM
Comment Actions LGTM once that one overload is removed (the non const one). I'd rather we justify at that point WHY we need that overload in a separate review.
This revision is now accepted and ready to land.Oct 24 2022, 12:25 PM mizvekov removed a parent revision: D136566: [clang] Instantiate concepts with sugared template arguments.Oct 24 2022, 12:47 PM This revision was landed with ongoing or failed builds.Oct 24 2022, 3:31 PM Closed by commit rG1acffe81ee91: NFC: [clang] Template argument cleanups. (authored by mizvekov). · Explain Why This revision was automatically updated to reflect the committed changes. thakis added inline comments.
Revision Contents
Diff 470266 clang-tools-extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp
clang-tools-extra/clang-tidy/mpi/TypeMismatchCheck.cpp
clang-tools-extra/clangd/HeuristicResolver.cpp
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/ASTNodeTraverser.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/AST/TemplateBase.h
clang/include/clang/AST/Type.h
clang/include/clang/AST/TypeLoc.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/AST/ASTContext.cpp
clang/lib/AST/ASTDiagnostic.cpp
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ASTStructuralEquivalence.cpp
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/ODRHash.cpp
clang/lib/AST/QualTypeNames.cpp
clang/lib/AST/Type.cpp
clang/lib/AST/TypeLoc.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/Index/USRGeneration.cpp
clang/lib/Sema/SemaCXXScopeSpec.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/lib/Sema/SemaTemplateDeduction.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
|
This is overall a nice change, but here (and a few other places), the RHS looks strictly uglier to me. Maybe it makes sense to keep the getNumArgs() / getArg() functions (and make them call template_arguments() internally), for the cases where the code doesn't iterate over everything?