1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
3
4 // RUN: %clang_cc1 -x c++ -Wdocumentation -ast-dump-all %t/t.cpp
5
6 //--- t.h
7 /// MyClass in the header file
8 class MyClass {
9 public:
10 template <typename T>
11 void Foo() const;
12
13 /// Bar
14 void Bar() const;
15 };
16
17 //--- t.cpp
18 #include "t.h"
19
20 /// MyClass::Bar: Foo<int>() is implicitly instantiated and called here.
Bar() const21 void MyClass::Bar() const {
22 Foo<int>();
23 }
24
25 /// MyClass::Foo
26 template <typename T>
Foo() const27 void MyClass::Foo() const {
28 }
29
30 // CHECK: TranslationUnitDecl
31