Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: tools/clang/blink_gc_plugin/Config.cpp

Issue 1385193002: Bisect clang Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 246985 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/blink_gc_plugin/Edge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "Config.h"
6
7 #include <cassert>
8
9 #include "clang/AST/AST.h"
10
11 using namespace clang;
12
13 bool Config::IsTemplateInstantiation(CXXRecordDecl* record) {
14 ClassTemplateSpecializationDecl* spec =
15 dyn_cast<clang::ClassTemplateSpecializationDecl>(record);
16 if (!spec)
17 return false;
18 switch (spec->getTemplateSpecializationKind()) {
19 case TSK_ImplicitInstantiation:
20 case TSK_ExplicitInstantiationDefinition:
21 return true;
22 case TSK_Undeclared:
23 case TSK_ExplicitSpecialization:
24 return false;
25 // TODO: unsupported cases.
26 case TSK_ExplicitInstantiationDeclaration:
27 return false;
28 }
29 assert(false && "Unknown template specialization kind");
30 return false;
31 }
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/blink_gc_plugin/Edge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698