From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Problem report # Date: Sun, 30 Apr 2006 09:40:40 -0700 Message-ID: <200604301640.k3UGeeV4028974@scanner2.ics.uci.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146417037 29107 80.91.229.2 (30 Apr 2006 17:10:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 17:10:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 30 19:10:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FaFRL-0000TN-GX for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 19:10:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaFRK-00048C-VU for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 13:10:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaFQa-0003hK-4R for emacs-devel@gnu.org; Sun, 30 Apr 2006 13:09:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaFQZ-0003gp-4E for emacs-devel@gnu.org; Sun, 30 Apr 2006 13:09:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaFQZ-0003gl-1o for emacs-devel@gnu.org; Sun, 30 Apr 2006 13:09:47 -0400 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FaFUB-0007x0-PX for emacs-devel@gnu.org; Sun, 30 Apr 2006 13:13:32 -0400 Original-Received: from vino.ics.uci.edu (vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.13.6/8.13.5) with ESMTP id k3UGeeV4028974 for ; Sun, 30 Apr 2006 09:40:40 -0700 (PDT) Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 65 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@vino.ics.uci.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53675 Archived-At: CID: 2 Checker: DEADCODE (help) File: emacs/lib-src/ebrowse.c Function: member Description: Assigning "1" to "type_seen" 2769 MATCH (); 2770 anonymous = 1; 2771 2772 /* More than one ident here to allow for MS-DOS specialties 2773 like `_export class' etc. The last IDENT seen counts 2774 as the class name. */ 2775 while (!LOOKING_AT4 (YYEOF, ';', ':', '{')) 2776 { 2777 if (LOOKING_AT (IDENT)) 2778 anonymous = 0; 2779 MATCH (); 2780 } 2781 2782 if (LOOKING_AT2 (':', '{')) 2783 class_definition (anonymous ? NULL : cls, class_tag, flags, 1); 2784 else 2785 skip_to (';'); 2786 break; 2787 2788 case INT: case CHAR: case LONG: case UNSIGNED: 2789 case SIGNED: case CONST: case DOUBLE: case VOID: 2790 case SHORT: case VOLATILE: case BOOL: case WCHAR: 2791 case TYPENAME: 2792 typeseen: Event const: After this line, the value of "type_seen" is equal to 1 Event assignment: Assigning "1" to "type_seen" Also see events: [dead_error_line][dead_error_condition][assignment] 2793 type_seen = 1; 2794 MATCH (); 2795 break; 2796 } 2797 } 2798 2799 if (LOOKING_AT (';')) 2800 { 2801 /* The end of a member variable, a friend declaration or an access 2802 declaration. We don't want to add friend classes as members. */ 2803 if (id && sc != SC_FRIEND && cls) 2804 { 2805 regexp = matching_regexp (); 2806 pos = BUFFER_POS (); 2807 2808 if (cls != NULL) 2809 { Event dead_error_line: Cannot reach this line of code Event dead_error_condition: On this path, the condition "type_seen != 0" could not be false Also see events: [dead_error_condition][const][assignment] 2810 if (type_seen || !paren_seen) 2811 add_member_decl (cls, id, regexp, pos, 0, 1, sc, vis, 0); 2812 else 2813 add_member_decl (cls, id, regexp, pos, hash, 0, sc, vis, 0); 2814 } 2815 } 2816