Skip to content

Commit 63524c4

Browse files
ahornaceVladimir Kotal
authored andcommitted
Interpret .cu/.cuh files as .cxx files
fixes #3518
1 parent 712a173 commit 63524c4

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/c/CxxAnalyzerFactory.java

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,33 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.analysis.c;
2424

2525
import org.opengrok.indexer.analysis.AbstractAnalyzer;
2626
import org.opengrok.indexer.analysis.FileAnalyzerFactory;
2727

2828
public class CxxAnalyzerFactory extends FileAnalyzerFactory {
29-
30-
private static final String name = "C++";
31-
29+
30+
private static final String NAME = "C++";
31+
3232
private static final String[] SUFFIXES = {
33-
"CPP",
34-
"HPP",
35-
"CC",
36-
"C++",
37-
"HH",
38-
"CXX",
39-
"HXX",
40-
"TXX",
41-
"TCC"
33+
"CPP",
34+
"HPP",
35+
"CC",
36+
"C++",
37+
"HH",
38+
"CXX",
39+
"HXX",
40+
"TXX",
41+
"TCC",
42+
"CU",
43+
"CUH"
4244
};
4345

4446
public CxxAnalyzerFactory() {
45-
super(null, null, SUFFIXES, null, null, "text/plain", AbstractAnalyzer.Genre.PLAIN, name);
47+
super(null, null, SUFFIXES, null, null, "text/plain", AbstractAnalyzer.Genre.PLAIN, NAME);
4648
}
4749

4850
@Override

0 commit comments

Comments
 (0)