670N/A/*
670N/A * CDDL HEADER START
670N/A *
670N/A * The contents of this file are subject to the terms of the
670N/A * Common Development and Distribution License (the "License").
670N/A * You may not use this file except in compliance with the License.
670N/A *
670N/A * See LICENSE.txt included in this distribution for the specific
670N/A * language governing permissions and limitations under the License.
670N/A *
670N/A * When distributing Covered Code, include this CDDL HEADER in each
670N/A * file and include the License file at LICENSE.txt.
670N/A * If applicable, add the following below this CDDL HEADER, with the
670N/A * fields enclosed by brackets "[]" replaced with your own identifying
670N/A * information: Portions Copyright [yyyy] [name of copyright owner]
670N/A *
670N/A * CDDL HEADER END
670N/A */
670N/A
670N/A/*
1127N/A * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
670N/A */
670N/Apackage org.opensolaris.opengrok.analysis.c;
670N/A
670N/Aimport java.io.IOException;
921N/Aimport java.io.Reader;
1384N/A
1127N/Aimport org.opensolaris.opengrok.analysis.Definitions;
670N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer;
670N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
670N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
1384N/Aimport org.opensolaris.opengrok.analysis.XrefWriter;
670N/Aimport org.opensolaris.opengrok.configuration.Project;
670N/Aimport org.opensolaris.opengrok.history.Annotation;
670N/A
670N/Apublic class CxxAnalyzerFactory extends FileAnalyzerFactory {
670N/A private static final String[] SUFFIXES = {
670N/A "CPP",
670N/A "HPP",
670N/A "CC",
670N/A "C++",
670N/A "HH",
670N/A "CXX",
670N/A "HXX",
983N/A "TXX"
670N/A };
670N/A
670N/A public CxxAnalyzerFactory() {
670N/A super(null, SUFFIXES, null, null, "text/plain", Genre.PLAIN);
670N/A }
670N/A
670N/A @Override
670N/A protected FileAnalyzer newAnalyzer() {
670N/A return new CxxAnalyzer(this);
670N/A }
670N/A
670N/A @Override
1384N/A public void writeXref(Reader in, XrefWriter out, Definitions defs, Annotation annotation, Project project)
670N/A throws IOException {
1127N/A CxxAnalyzer.writeXref(in, out, defs, annotation, project);
670N/A }
670N/A}