2 ** LCLint - annotation-assisted static program checker
3 ** Copyright (C) 1994-2001 University of Virginia,
4 ** Massachusetts Institute of Technology
6 ** This program is free software; you can redistribute it and/or modify it
7 ** under the terms of the GNU General Public License as published by the
8 ** Free Software Foundation; either version 2 of the License, or (at your
9 ** option) any later version.
11 ** This program is distributed in the hope that it will be useful, but
12 ** WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ** General Public License for more details.
16 ** The GNU General Public License is available from http://www.gnu.org/ or
17 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 ** MA 02111-1307, USA.
20 ** For information on lclint: lclint-request@cs.virginia.edu
21 ** To report a bug: lclint-bug@cs.virginia.edu
22 ** For more information: http://lclint.cs.virginia.edu
28 # include "lclintMacros.nf"
33 ** from the CC man page:
35 ** -Idir Search for #include files whose names do not begin with a
36 ** slash (/) in the following order: (1) in the directory of
37 ** the dir argument, (2) in the directories specified by -I
38 ** options, (3) in the standard directory (/usr/include).
41 /* needed for string literals literals */
45 /*@null@*/ /*@observer@*/ char *name;
46 /*@null@*/ /*@observer@*/ char *describe;
49 static flagcatinfo categories[] =
51 { FK_ABSTRACT, "abstract", "abstraction violations, representation access" } ,
52 { FK_ALIAS, "aliasing", "unexpected or dangerous aliasing" } ,
53 { FK_USE, "alluse", "all declarations are used" } ,
54 { FK_ANSI, "ansi", "violations of constraints imposed by ANSI/ISO standard" } ,
55 { FK_ARRAY, "arrays", "special checking involving arrays" } ,
56 { FK_BOOL, "booleans", "checking and naming of boolean types" } ,
57 { FK_COMMENTS, "comments", "interpretation of semantic comments" } ,
58 { FK_COMPLETE, "complete", "completely defined, used, or specified system" } ,
59 { FK_CONTROL, "controlflow", "suspicious control structures" } ,
60 { FK_DEBUG, "debug", "flags for debugging lclint" } ,
61 { FK_DECL, "declarations", "consistency of declarations" } ,
62 { FK_DEF, "definition", "undefined storage errors" } ,
63 { FK_DIRECT, "directories", "set directores" } ,
64 { FK_DISPLAY, "display", "control what is displayed" } ,
65 { FK_EFFECT, "effect", "statements with no effects" } ,
66 { FK_ERRORS, "errors", "control expected errors, summary reporting" } ,
67 { FK_EXPORT, "export", "control what may be exported" } ,
68 { FK_EXPOSURE, "exposure", "representation exposure" } ,
69 { FK_FILES, "files", "control system files" } ,
70 { FK_FORMAT, "format", "control format of warning messages" } ,
71 { FK_GLOBALS, "globals", "use of global and file static variables" },
72 { FK_HEADERS, "headers", "control inclusion and generation of header files" },
73 { FK_HELP, "help", "on-line help" },
74 { FK_IMPLICIT, "implicit", "control implicit annotations and interpretations" } ,
75 { FK_INIT, "initializations", "initialization files" } ,
76 { FK_ITER, "iterators", "checking iterator definitions and uses" } ,
77 { FK_LEAK, "leaks", "memory leaks" } ,
78 { FK_LIBS, "libraries", "loading and dumping of user and standard libraries" } ,
79 { FK_LIMITS, "limits", "violations of set limits" } ,
80 { FK_MACROS, "macros", "expansion, definition and use of macros" },
81 { FK_MEMORY, "memory", "memory management" } ,
82 { FK_MODIFIES, "modification", "modification errors" } ,
83 { FK_NAMES, "names", "naming conventions and limits" } ,
84 { FK_NULL, "null", "misuses of null pointers" } ,
85 { FK_NUMBERS, "numbers", "control type-checking of numeric types" } ,
86 { FK_OPS, "operations", "checking of primitive operations" } ,
87 { FK_PARAMS, "parameters", "function and macro parameters" } ,
88 { FK_SPEED, "performance", "speeding up checking" } ,
89 { FK_POINTER, "pointers", "pointers" } ,
90 { FK_PRED, "predicates", "condition test expressions" } ,
91 { FK_PREFIX, "prefixes", "set naming prefixes and control checking" } ,
92 { FK_PREPROC, "preproc", "defines and undefines for the preprocessor" } ,
93 { FK_PROTOS, "prototypes", "function prototypes" } ,
94 { FK_DEAD, "released", "using storage that has been deallocated" } ,
95 { FK_IGNORERET, "returnvals", "ignored return values" },
96 { FK_SECURITY, "security", "possible security vulnerability" },
97 { FK_SPEC, "specifications", "checks involving .lcl specifications" } ,
98 { FK_SUPPRESS, "suppress", "local and global suppression of messages" } ,
99 { FK_TYPEEQ, "typeequivalence", "control what types are equivalent" } ,
100 { FK_BEHAVIOR, "undefined", "code with undefined or implementation-defined behavior" } ,
101 { FK_UNRECOG, "unrecognized", "unrecognized identifiers" } ,
102 { FK_UNSPEC, "unconstrained", "checking in the presence of unconstrained functions" } ,
103 { FK_WARNUSE, "warnuse", "use of possibly problematic function" } ,
104 { FK_SYNTAX, NULL, NULL } ,
105 { FK_TYPE, NULL, NULL } ,
106 { FK_SECRET, NULL, NULL } ,
107 { FK_OBSOLETE, NULL, NULL } ,
108 { FK_NONE, NULL, NULL } /* must be last */
121 bool isSpecial; /* setting this flag may set other flags (or values) */
122 bool isIdem; /* idempotent - always sets to TRUE */
123 bool isGlobal; /* cannot be set locally (using control comments) */
124 bool isModeFlag; /* set by modes */
126 /*@observer@*/ char *flag;
128 /*@observer@*/ /*@null@*/ char *desc;
134 typedef fflag flaglist[];
136 # include "flags.def"
138 /*@iter allFlags (yield observer fflag f); @*/
139 # define allFlags(m_f) \
140 { /*@+enumint@*/ flagcode m_i; for (m_i = 0; m_i < NUMFLAGS; m_i++) { fflag m_f = flags[m_i]; /*@=enumint@*/
141 # define end_allFlags }}
143 static bn_mstring mode_names[] =
145 "weak", "standard", "checks", "strict", NULL,
148 /*@iter allModes (yield bn_mstring modename)@*/
149 # define allModes(m_m) \
150 { int m_ii = 0; while (mstring_isDefined (mode_names[m_ii])) \
151 { bn_mstring m_m = mode_names[m_ii]; m_ii++;
153 # define end_allModes }}
157 static cstring describeFlagCode (flagcode p_flag) /*@*/ ;
158 static cstringSList sortedFlags (void) /*@*/ ;
159 static /*@observer@*/ cstring categoryName (flagkind p_kind) /*@*/ ;
162 static /*@unused@*/ cstring listModes (void) /*@*/ ;
165 bool flagcode_isSpecialFlag (flagcode f)
167 return (flags[f].isSpecial);
170 bool flagcode_isGlobalFlag (flagcode f)
172 return (flags[f].isGlobal);
175 bool flagcode_isIdemFlag (flagcode f)
177 return (flags[f].isIdem);
180 bool flagcode_isModeFlag (flagcode f)
182 return (flags[f].isModeFlag);
185 bool flagcode_isNameChecksFlag (flagcode f)
187 return (flags[f].main == FK_NAMES);
191 ** Internal consistency check on the flags.
194 void flags_initMod ()
199 if (flags[code].code != code)
202 "*** ERROR: inconsistent flag %s / %d / %d",
204 flags[code].code, code);
206 llbug (message ("*** ERROR: inconsistent flag %s / %d / %d",
207 cstring_fromChars (flags[code].flag),
208 flags[code].code, code));
221 char *buf = mstring_create (128);
225 if (f.nreported > 0 || f.nsuppressed > 0)
227 int nrep = f.nreported;
228 int nsup = f.nsuppressed;
229 cstring fs = cstring_fill (cstring_fromChars (f.flag), 23);
233 llmsgplain (cstring_makeLiteral
234 ("\nError Type Reported Suppressed\n"
235 "=================== ======== ========="));
239 sprintf (buf, "%s%7d %9d", cstring_toCharsSafe (fs), nrep, nsup);
245 llmsg (cstring_copy (cstring_fromChars (buf)));
251 cstring ts = cstring_fill (cstring_makeLiteralTemp ("Total"), 23);
253 llmsglit (" ======== =========");
255 sprintf (buf, "%s%7d %9d", cstring_toCharsSafe (ts), sumrep, sumsup);
257 llmsgplain (cstring_copy (cstring_fromChars (buf)));
266 flagcode_recordError (flagcode f)
268 if (f != INVALID_FLAG)
270 if (f == FLG_WARNFLAGS)
272 ; /* don't count these */
276 flags[f].nreported = flags[f].nreported + 1;
281 llcontbug (message ("flagcode_recordError: invalid flag: %d", (int) f));
286 flagcode_recordSuppressed (flagcode f)
288 llassertprint (f != INVALID_FLAG, ("flagcode: %s", flagcode_unparse (f)));
290 flags[f].nsuppressed = flags[f].nsuppressed + 1;
294 flagcode_numReported (flagcode f)
296 llassert (f != INVALID_FLAG);
298 return (flags[f].nreported);
301 /*@observer@*/ cstring
302 flagcodeHint (flagcode f)
304 llassert (f != INVALID_FLAG);
306 if (mstring_isDefined (flags[f].hint))
308 return (cstring_fromChars (flags[f].hint));
312 return (cstring_fromChars (flags[f].desc));
316 static int categorySize (flagkind kind) /*@*/
323 if (f.main == kind || f.sub == kind)
332 flagkind identifyCategory (cstring s)
336 for (i = 0; categories[i].kind != FK_NONE; i++)
338 if (mstring_isDefined (categories[i].name))
340 if (cstring_equalLit (s, categories[i].name))
342 return categories[i].kind;
350 static /*@observer@*/ cstring categoryName (flagkind kind)
354 for (i = 0; categories[i].kind != FK_NONE; i++)
356 if (categories[i].kind == kind)
358 return (cstring_fromChars (categories[i].name));
362 return (cstring_makeLiteralTemp ("<No Category>"));
365 static int categoryIndex (flagkind kind)
369 for (i = 0; categories[i].kind != FK_NONE; i++)
371 if (categories[i].kind == kind)
380 void printCategory (flagkind kind)
382 int index = categoryIndex (kind);
384 llassert (index >= 0);
386 llmsg (message ("%s (%d flags)\n\3%s\n\n",
387 cstring_fromChars (categories[index].name),
389 cstring_fromChars (categories[index].describe)));
393 if (f.main == kind || f.sub == kind)
395 llmsg (message (" %s\n\6%q", cstring_fromChars (f.flag),
396 describeFlagCode (f.code)));
402 listAllCategories (void)
406 for (i = 0; categories[i].kind != FK_NONE; i++)
408 flagkind kind = categories[i].kind ;
410 if (categories[i].describe != NULL)
412 llmsg (message ("%s (%d flags)\n\3%s",
415 cstring_fromChars (categories[i].describe)));
421 printAllFlags (bool desc, bool full)
425 cstringSList fl = sortedFlags ();
427 cstringSList_elements (fl, el)
429 llmsg (message ("%q\n\n", describeFlag (el)));
430 } end_cstringSList_elements ;
432 cstringSList_free (fl);
438 if (f.code != INVALID_FLAG && f.main != FK_OBSOLETE)
440 if (mstring_isDefined (f.desc))
444 llmsg (message ("%s --- %s", cstring_fromChars (f.flag),
445 cstring_fromChars (f.desc)));
454 describeFlagCode (flagcode flag)
456 cstring ret = cstring_undefined;
459 if (flagcode_isInvalid (flag))
461 return (cstring_makeLiteral ("<invalid>"));
464 context_resetAllFlags ();
467 ret = cstring_copy (cstring_fromChars (f.desc));
470 if (f.sub != FK_NONE)
472 ret = message ("%q\nCategories: %s, %s",
474 categoryName (f.main),
475 categoryName (f.sub));
479 if (f.main != FK_NONE)
481 cstring cname = categoryName (f.main);
483 if (cstring_isDefined (cname))
485 ret = message ("%q\nCategory: %s",
497 context_setMode (cstring_fromChars (mname));
501 ret = message ("%q\nMode Settings: %s %s",
502 ret, cstring_fromChars (mname),
503 cstring_makeLiteralTemp
504 (context_getFlag (flag) ? "+" : "-"));
509 ret = message ("%q, %s %s",
510 ret, cstring_fromChars (mname),
511 cstring_makeLiteralTemp
512 (context_getFlag (flag) ? "+" : "-"));
518 ret = message ("%q\nDefault Setting: %s",
520 cstring_makeLiteralTemp
521 (context_getFlag (flag) ? "+" : "-"));
526 ret = message("%q\nSet globally only", ret);
530 ret = message("%q\nSet locally", ret);
539 if (flag == FLG_COMMENTCHAR)
541 ret = message("%q\nCharacter Argument. Default: %h",
542 ret, (char) context_getValue (flag));
546 ret = message("%q\nNumeric Argument. Default: %d",
548 context_getValue (flag));
552 if (cstring_isDefined (context_getString (flag)))
554 ret = message("%q\nString Argument. Default: %s",
556 context_getString (flag));
560 ret = message("%q\nString Argument. No default.", ret);
565 if (mstring_isDefined (f.hint))
567 ret = message("%q\n\3%s", ret, cstring_fromChars (f.hint));
574 describeFlag (cstring flagname)
576 cstring oflagname = cstring_copy (flagname);
577 flagcode f = identifyFlag (flagname);
579 if (flagcode_isSkip (f))
581 cstring_free (oflagname);
582 return cstring_undefined;
584 else if (flagcode_isValid (f))
586 if (cstring_equal (flagname, oflagname))
588 cstring_free (oflagname);
589 return (message ("%s\n\3%q", flagname, describeFlagCode (f)));
593 return (message ("%q (standardized name: %s)\n\3%q",
594 oflagname, flagname, describeFlagCode (f)));
599 if (isMode (flagname))
601 cstring_free (oflagname);
604 (message ("%s: predefined mode (see User's Guide for information)",
609 return (message ("%q: <invalid flag>", oflagname));
617 cstringSList s = cstringSList_new ();
623 s = cstringSList_add (s, cstring_fromChars (f.flag));
627 cstringSList_alphabetize (s);
632 void printAlphaFlags ()
634 cstringSList fl = sortedFlags ();
636 cstringSList_printSpaced (fl, 3, 1, context_getLineLen () - 25);
637 cstringSList_free (fl);
640 /*@observer@*/ cstring
641 flagcode_unparse (flagcode code)
643 if (code == INVALID_FLAG)
645 return cstring_makeLiteralTemp ("<invalid flag>");
648 return cstring_fromChars (flags[code].flag);
652 ** Transforms a flag into its cannonical form.
654 ** The following transformations are made:
660 ** parameter -> param
661 ** unrecognized -> unrecog
663 ** declaration -> decl
664 ** globalias -> (no change)
672 ** unconstrained -> unspec
679 canonicalizeFlag (cstring s)
682 static bn_mstring transform[] =
688 "parameter", "param",
689 "unrecognized", "unrecog",
691 "declaration", "decl",
699 "unconstrained", "uncon",
709 while ((current = transform[i]) != NULL)
711 if (cstring_containsLit (s, current))
713 cstring_replaceLit (s, current, transform[i+1]);
718 /* remove whitespace, -'s, and _'s */
719 cstring_stripChars (s, " -_");
723 identifyFlag (cstring s)
725 if (cstring_length (s) == 0) {
726 /* evs 2000-06-25: A malformed flag. */
730 if (cstring_firstChar (s) == 'I')
732 return FLG_INCLUDEPATH; /* no space after -I */
735 if (cstring_firstChar (s) == 'S')
737 return FLG_SPECPATH; /* no space after -S */
740 if (cstring_firstChar (s) == 'D')
742 return FLG_DEFINE; /* no space after -D */
745 if (cstring_firstChar (s) == 'U')
747 return FLG_UNDEFINE; /* no space after -D */
750 canonicalizeFlag (s);
754 if (cstring_equal (cstring_fromChars (f.flag), s))
764 if (cstring_equalLit (s, "pred"))
769 if (cstring_equalLit (s, "modobserverstrict"))
771 return FLG_MODOBSERVERUNCON;
774 if (cstring_equalLit (s, "czechnames"))
779 if (cstring_equalLit (s, "slovaknames"))
784 if (cstring_equalLit (s, "czechoslovaknames"))
786 return FLG_CZECHOSLOVAK;
789 if (cstring_equalLit (s, "globunspec")
790 || cstring_equalLit (s, "globuncon"))
792 return FLG_GLOBUNSPEC;
795 if (cstring_equalLit (s, "modglobsunspec")
796 || cstring_equalLit (s, "modglobsuncon")
797 || cstring_equalLit (s, "modglobsnomods"))
799 return FLG_MODGLOBSUNSPEC;
802 if (cstring_equalLit (s, "export"))
804 return FLG_EXPORTANY;
807 if (cstring_equalLit (s, "macrospec"))
809 return FLG_MACRODECL;
812 if (cstring_equalLit (s, "ansireservedlocal"))
814 return FLG_ANSIRESERVEDLOCAL;
817 if (cstring_equalLit (s, "warnposix"))
819 return FLG_WARNPOSIX;
822 if (cstring_equalLit (s, "defuse"))
827 if (cstring_equalLit (s, "macroundef"))
829 return FLG_MACROUNDEF;
832 if (cstring_equalLit (s, "showcol"))
837 if (cstring_equalLit (s, "intbool"))
842 if (cstring_equalLit (s, "intchar"))
847 if (cstring_equalLit (s, "intenum"))
853 ** For our European friends...
856 if (cstring_equalLit (s, "isolib"))
861 if (cstring_equalLit (s, "isostrictlib"))
863 return FLG_STRICTLIB;
866 if (cstring_equalLit (s, "ansistrictlib"))
868 return FLG_STRICTLIB;
871 if (cstring_equalLit (s, "skipisoheaders"))
873 return FLG_SKIPANSIHEADERS;
876 if (cstring_equalLit (s, "isoreserved"))
878 return FLG_ANSIRESERVED;
881 if (cstring_equalLit (s, "isoreservedinternal"))
883 return FLG_ANSIRESERVEDLOCAL;
886 if (cstring_equalLit (s, "isolimits"))
888 return FLG_ANSILIMITS;
895 if (cstring_equalLit (s, "accessunspec"))
899 ("accessunspec flag is not supported by LCLint version 2.0 or "
900 "later. It has been replaced by accessmodule, accessfile and "
901 "accessfunction to provide more precise control of accessibility "
902 "of representations. For more information, "
903 "see lclint -help accessmodule"));
908 if (cstring_equalLit (s, "staticmods"))
912 ("staticmods flag is obsolete. You probably "
913 "want impcheckmodstatics. For more information, "
914 "see lclint -help impcheckmodstatics"));
919 if (cstring_equalLit (s, "bool"))
922 (cstring_makeLiteral ("bool flag is obsolete. It never really "
923 "made sense in the first place."));
928 if (cstring_equalLit (s, "ansi"))
931 (cstring_makeLiteral ("ansi flag is obsolete. You probably "
932 "want noparams and/or oldstyle."));
937 if (cstring_equalLit (s, "stdio"))
941 ("stdio flag is obsolete. You may "
942 "want strictlib or one of the gloabls "
943 "checking flags. For more information, "
944 "see lclint -help strictlib or lclint -help flags globals"));
952 void setValueFlag (flagcode opt, cstring arg)
960 case FLG_INDENTSPACES:
962 case FLG_EXTERNALNAMELEN:
963 case FLG_INTERNALNAMELEN:
964 case FLG_CONTROLNESTDEPTH:
965 case FLG_STRINGLITERALLEN:
966 case FLG_NUMSTRUCTFIELDS:
967 case FLG_NUMENUMMEMBERS:
968 case FLG_INCLUDENEST:
970 int val = cstring_toPosInt (arg);
977 ("Flag %s must be followed by a positive number number. "
979 flagcode_unparse (opt), arg));
983 context_setValueAndFlag (opt, val);
987 case FLG_COMMENTCHAR:
989 if (cstring_length (arg) != 1)
993 ("Flag %s should be followed by a single character. Followed by %s",
994 flagcode_unparse (opt), arg));
998 context_setCommentMarkerChar (cstring_firstChar (arg));
1006 void setStringFlag (flagcode opt, /*@only@*/ cstring arg)
1012 if (cstring_lastChar (arg) == CONNECTCHAR)
1014 context_setString (opt, arg);
1018 context_setString (opt, cstring_appendChar (arg, CONNECTCHAR));
1024 context_setString (opt, arg);
1033 cstring s = cstring_makeLiteral ("Flag ");
1034 cstringSList sflags = sortedFlags ();
1038 s = message ("%q%9s", s, cstring_fromChars (modename));
1041 s = message ("%q\n", s);
1043 cstringSList_elements (sflags, flagname)
1045 flagcode code = identifyFlag (flagname);
1046 fflag currentflag = flags[code];
1048 if (mstring_isDefined (currentflag.desc) && flagcode_isModeFlag (code))
1050 s = message ("%q\n%27s", s,
1051 cstring_fromChars (currentflag.flag));
1055 context_setMode (cstring_fromChars (modename));
1057 if (context_getFlag (code))
1059 s = message ("%q%9s", s, cstring_makeLiteralTemp ("+"));
1063 s = message ("%q%9s", s, cstring_makeLiteralTemp (" "));
1066 context_resetModeFlags ();
1069 } end_cstringSList_elements;
1071 cstringSList_free (sflags);
1073 s = cstring_appendChar (s, '\n');
1079 static /*@unused@*/ cstring
1082 cstring s = cstring_makeLiteral ("\t");
1087 if (i != 0 && (i % 4 == 0))
1089 s = message ("%q\n\t%15s", s, cstring_fromChars (modename));
1093 s = message ("%q%15s", s, cstring_fromChars (modename));
1107 if (mstring_isDefined (modename))
1109 if (cstring_equalLit (s, modename))
1119 extern bool flagcode_hasArgument (flagcode f)
1121 return (flags[f].argtype != ARG_NONE);
1124 extern bool flagcode_hasValue (flagcode f)
1126 return (flags[f].argtype == ARG_VALUE);
1129 extern bool flagcode_hasString (flagcode f)
1131 return (flags[f].argtype == ARG_STRING);
1134 extern int flagcode_valueIndex (flagcode f)
1136 /*@unchecked@*/ static bool initialized = FALSE;
1138 /*@unchecked@*/ static flagcode valueFlags[NUMVALUEFLAGS];
1146 if (flagcode_hasValue (code))
1148 llassert (nv < NUMVALUEFLAGS);
1149 DPRINTF (("Value flag: %s [%d]", flagcode_unparse (code), (int) code));
1150 valueFlags[nv] = code;
1155 llassertprint (nv == NUMVALUEFLAGS,
1156 ("Number of value flags: %d (expected %d)",
1157 nv, (int) NUMVALUEFLAGS));
1161 for (i = 0; i < NUMVALUEFLAGS; i++)
1163 /* static valueFlags must be defined */
1164 /*@-usedef@*/ if (f == valueFlags[i]) /*@=usedef@*/
1170 fprintf (stderr, "Cannot find value flag: %d", (int) f);
1171 exit (EXIT_FAILURE);
1172 /* Cannot do this...might call recursively...
1173 llfatalbug (message ("Cannot fine value flag: %d", (int) f));
1178 extern int flagcode_stringIndex (flagcode f)
1180 /*@unchecked@*/ static bool initialized = FALSE;
1181 /*@unchecked@*/ static flagcode stringFlags[NUMSTRINGFLAGS];
1191 if (flagcode_hasString (code))
1193 llassertprint (nv < NUMSTRINGFLAGS, ("Incorrect number of string flags: %d (need at least %d)", NUMSTRINGFLAGS, nv));
1194 stringFlags[nv] = code;
1199 llassertprint (nv == NUMSTRINGFLAGS,
1200 ("number of string flags: %d (expected %d)",
1201 nv, NUMSTRINGFLAGS));
1205 for (i = 0; i < NUMSTRINGFLAGS; i++)
1207 /*@-usedef@*/ if (f == stringFlags[i]) /*@=usedef@*/
1213 llbug (message ("Bad string flag: %s", flagcode_unparse (f)));
1217 bool flagcode_isNamePrefixFlag (flagcode f)
1221 case FLG_MACROVARPREFIX:
1223 case FLG_ENUMPREFIX:
1224 case FLG_FILESTATICPREFIX:
1225 case FLG_GLOBPREFIX:
1226 case FLG_TYPEPREFIX:
1227 case FLG_EXTERNALPREFIX:
1228 case FLG_LOCALPREFIX:
1229 case FLG_UNCHECKEDMACROPREFIX:
1230 case FLG_CONSTPREFIX:
1231 case FLG_ITERPREFIX:
1232 case FLG_DECLPARAMPREFIX: