Debian Codegraph @

tests/cxx/badinc-i2-inl.h

raw symbols SCIP
1 //===--- badinc-i2-inl.h - test input file for iwyu -----------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // This defines a variety of methods, functions, classes, and
11 // variables that are declared in badinc-i2.h. The goal is to make
12 // sure that badinc.cc realizes it needs these definitios, and not
13 // just the declarations in badinc-i2.h.
14
15 #ifndef INCLUDE_WHAT_YOU_USE_TESTS_CXX_BADINC_I2_INL_H_
16 #define INCLUDE_WHAT_YOU_USE_TESTS_CXX_BADINC_I2_INL_H_
17
18 #include "tests/cxx/badinc-i2.h"
19
20
21 inline I2_Class::I2_Class(const char*) {
22 }
23
24 inline I2_Class::~I2_Class() {
25 }
26
27 inline int I2_Class::InlFileFn() {
28 return 3;
29 }
30
31 template<typename T> inline int I2_Class::InlFileTemplateFn() {
32 return 4;
33 }
34
35 /*static*/ inline int I2_Class::InlFileStaticFn() {
36 return 5;
37 }
38
39 template<typename T> inline I2_TemplateClass<T>::I2_TemplateClass(
40 T a, const char* b) {
41 }
42
43 template<typename T> I2_TemplateClass<T>::~I2_TemplateClass() {
44 }
45
46 template<typename T> inline int I2_TemplateClass<T>::InlFileTemplateClassFn() {
47 return 6;
48 }
49
50 class I2_InlFileClass {
51 public:
52 int a;
53 };
54
55 template<typename T> class I2_InlFileTemplateClass {
56 public:
57 T a;
58 };
59
60 inline int InlFileNonMemberFn() {
61 return 7;
62 }
63
64 template <typename T>
65 int InlFileNonMemberTemplateFn() {
66 return 8;
67 }
68
69 template <>
70 int InlFileNonMemberTemplateFn<int>() {
71 return 9;
72 }
73
74 int inlfile_var;
75
76 #endif // INCLUDE_WHAT_YOU_USE_TESTS_CXX_BADINC_I2_INL_H_