[clang-tools-extra] 3eaf483 - [include-cleaner] Remove two commented-out lines of code.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 14 23:44:59 PDT 2024
Author: Haojian Wu
Date: 2024-08-15T08:44:46+02:00
New Revision: 3eaf483c296bd95411bc855674707f289790e2a2
URL: https://github.com/llvm/llvm-project/commit/3eaf483c296bd95411bc855674707f289790e2a2
DIFF: https://github.com/llvm/llvm-project/commit/3eaf483c296bd95411bc855674707f289790e2a2.diff
LOG: [include-cleaner] Remove two commented-out lines of code.
Added:
Modified:
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/include-cleaner/lib/WalkAST.cpp b/clang-tools-extra/include-cleaner/lib/WalkAST.cpp
index f7cc9d19123635..b15d428326ac12 100644
--- a/clang-tools-extra/include-cleaner/lib/WalkAST.cpp
+++ b/clang-tools-extra/include-cleaner/lib/WalkAST.cpp
@@ -271,7 +271,6 @@ class ASTWalker : public RecursiveASTVisitor<ASTWalker> {
// specialized template. Implicit ones are filtered out by RAV.
bool
VisitClassTemplateSpecializationDecl(ClassTemplateSpecializationDecl *CTSD) {
- // if (CTSD->isExplicitSpecialization())
if (clang::isTemplateExplicitInstantiationOrSpecialization(
CTSD->getTemplateSpecializationKind()))
report(CTSD->getLocation(),
@@ -279,7 +278,6 @@ class ASTWalker : public RecursiveASTVisitor<ASTWalker> {
return true;
}
bool VisitVarTemplateSpecializationDecl(VarTemplateSpecializationDecl *VTSD) {
- // if (VTSD->isExplicitSpecialization())
if (clang::isTemplateExplicitInstantiationOrSpecialization(
VTSD->getTemplateSpecializationKind()))
report(VTSD->getLocation(),
More information about the cfe-commits
mailing list