| Index: tools/clang/blink_gc_plugin/Config.cpp
|
| diff --git a/tools/clang/blink_gc_plugin/Config.cpp b/tools/clang/blink_gc_plugin/Config.cpp
|
| deleted file mode 100644
|
| index 0a6d5b72fd4b3f1a4988bacea4cdc1e6693ad65c..0000000000000000000000000000000000000000
|
| --- a/tools/clang/blink_gc_plugin/Config.cpp
|
| +++ /dev/null
|
| @@ -1,31 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "Config.h"
|
| -
|
| -#include <cassert>
|
| -
|
| -#include "clang/AST/AST.h"
|
| -
|
| -using namespace clang;
|
| -
|
| -bool Config::IsTemplateInstantiation(CXXRecordDecl* record) {
|
| - ClassTemplateSpecializationDecl* spec =
|
| - dyn_cast<clang::ClassTemplateSpecializationDecl>(record);
|
| - if (!spec)
|
| - return false;
|
| - switch (spec->getTemplateSpecializationKind()) {
|
| - case TSK_ImplicitInstantiation:
|
| - case TSK_ExplicitInstantiationDefinition:
|
| - return true;
|
| - case TSK_Undeclared:
|
| - case TSK_ExplicitSpecialization:
|
| - return false;
|
| - // TODO: unsupported cases.
|
| - case TSK_ExplicitInstantiationDeclaration:
|
| - return false;
|
| - }
|
| - assert(false && "Unknown template specialization kind");
|
| - return false;
|
| -}
|
|
|