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/*
670N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
670N/A * Use is subject to license terms.
670N/A */
670N/Apackage org.opensolaris.opengrok.analysis.c;
670N/A
670N/Aimport java.util.HashSet;
670N/Aimport java.util.Set;
670N/A
670N/A/**
670N/A * Holds static hash set containing the C keywords
670N/A */
670N/Apublic class CxxConsts {
670N/A
670N/A public static final Set<String> kwd = new HashSet<String>();
670N/A
670N/A
670N/A static {
670N/A // Add all of the C keywords
670N/A kwd.addAll(Consts.kwd);
670N/A
670N/A // C++ keywords
670N/A kwd.add("catch");
670N/A kwd.add("class");
670N/A kwd.add("const_cast");
670N/A kwd.add("delete");
670N/A kwd.add("dynamic_cast");
670N/A kwd.add("explicit");
670N/A kwd.add("friend");
670N/A kwd.add("inline");
670N/A kwd.add("mutable");
670N/A kwd.add("namespace");
670N/A kwd.add("new");
670N/A kwd.add("operator");
670N/A kwd.add("private");
670N/A kwd.add("protected");
670N/A kwd.add("public");
670N/A kwd.add("reinterpret_cast");
670N/A kwd.add("static_cast");
670N/A kwd.add("template");
670N/A kwd.add("this");
670N/A kwd.add("throw");
670N/A kwd.add("try");
670N/A kwd.add("typeid");
670N/A kwd.add("typename");
670N/A kwd.add("using");
670N/A kwd.add("virtual");
670N/A kwd.add("wchar_t");
670N/A }
670N/A}