File tree Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class IndexerFrontendAction : public clang::ASTFrontendAction {
44
44
std::unique_ptr<clang::ASTConsumer>
45
45
CreateASTConsumer (clang::CompilerInstance &compilerInstance,
46
46
llvm::StringRef filepath) override {
47
+ compilerInstance.getLangOpts ().CommentOpts .ParseAllComments = true ;
47
48
auto &preprocessor = compilerInstance.getPreprocessor ();
48
49
auto callbacks = std::make_unique<IndexerPreprocessorWrapper>(
49
50
compilerInstance.getSourceManager (), this ->preprocessorOptions ,
Original file line number Diff line number Diff line change
1
+ // format-options: showDocs
2
+
3
+ // / Dumhdurum!
4
+ enum class Apink {
5
+ /* * Leader
6
+ * Lead Dancer */
7
+ Chorong,
8
+ // Vocalist
9
+ Bomi,
10
+ Eunji, // Main Vocalist
11
+ // From Busan
12
+ /* Departed
13
+ * :( */
14
+ Naeun,
15
+ Namjoo, /* Vocalist */
16
+ // ! Maknae
17
+ Hayoung,
18
+ };
Original file line number Diff line number Diff line change
1
+ // format-options: showDocs
2
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition [..] `<file>/docs.cc`/
3
+ // documentation
4
+ // | File: docs.cc
5
+
6
+ // / Dumhdurum!
7
+ enum class Apink {
8
+ // ^^^^^ definition [..] Apink#
9
+ // documentation
10
+ // | Dumhdurum!
11
+ /* * Leader
12
+ * Lead Dancer */
13
+ Chorong,
14
+ // ^^^^^^^ definition [..] Apink#Chorong.
15
+ // documentation
16
+ // | Leader
17
+ // | Lead Dancer
18
+ // Vocalist
19
+ Bomi,
20
+ // ^^^^ definition [..] Apink#Bomi.
21
+ // documentation
22
+ // | Vocalist
23
+ Eunji, // Main Vocalist
24
+ // ^^^^^ definition [..] Apink#Eunji.
25
+ // documentation
26
+ // | Main Vocalist
27
+ // | From Busan
28
+ // From Busan
29
+ /* Departed
30
+ * :( */
31
+ Naeun,
32
+ // ^^^^^ definition [..] Apink#Naeun.
33
+ // documentation
34
+ // | Departed
35
+ // | :(
36
+ Namjoo, /* Vocalist */
37
+ // ^^^^^^ definition [..] Apink#Namjoo.
38
+ // documentation
39
+ // | Vocalist
40
+ // ! Maknae
41
+ Hayoung,
42
+ // ^^^^^^^ definition [..] Apink#Hayoung.
43
+ // documentation
44
+ // | Maknae
45
+ };
Original file line number Diff line number Diff line change 33
33
enum D {
34
34
// ^ definition [..] D#
35
35
// documentation
36
- // | No documentation available.
36
+ // | Old MacDonald had a farm
37
+ // | Ee i ee i o
37
38
// And on his farm he had some cows
38
39
D1,
39
40
// ^^ definition [..] D1.
40
41
// documentation
41
- // | No documentation available.
42
+ // | And on his farm he had some cows
42
43
};
43
44
44
45
// / Ee i ee i oh
91
92
F1,
92
93
// ^^ definition [..] has_anon_enum/F1.
93
94
// documentation
94
- // | No documentation available.
95
+ // | Here a moo, there a moo
95
96
/* * Everywhere a moo-moo */
96
97
F2 = E2
97
98
// ^^ definition [..] has_anon_enum/F2.
193
194
enum class PartiallyDocumented {
194
195
// ^^^^^^^^^^^^^^^^^^^ definition [..] PartiallyDocumented#
195
196
// documentation
196
- // | No documentation available.
197
+ // | Regression test for https://github.com/sourcegraph/scip-clang/issues/105
197
198
// / :smugcat:
198
199
Documented,
199
200
// ^^^^^^^^^^ definition [..] PartiallyDocumented#Documented.
You can’t perform that action at this time.
0 commit comments