From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Emacs 24 semantic C++ completion problem Date: Fri, 30 Dec 2011 17:51:44 +0100 Message-ID: <87r4zm80kf.fsf@engster.org> References: <4EFCE3A1.7030302@siege-engine.com> <87hb0i9zxt.fsf@engster.org> <878vlu9ss2.fsf@engster.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325263926 24900 80.91.229.12 (30 Dec 2011 16:52:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 16:52:06 +0000 (UTC) Cc: "Eric M. Ludlam" , emacs-devel@gnu.org To: Vyacheslav Gonakhchyan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 30 17:51:55 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgfgN-0003sR-P5 for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 17:51:51 +0100 Original-Received: from localhost ([::1]:56092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgfgM-0008F3-UP for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 11:51:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgfgK-0008En-Ki for emacs-devel@gnu.org; Fri, 30 Dec 2011 11:51:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgfgJ-0002CC-MR for emacs-devel@gnu.org; Fri, 30 Dec 2011 11:51:48 -0500 Original-Received: from randomsample.de ([83.169.19.17]:52846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgfgJ-0002C4-At for emacs-devel@gnu.org; Fri, 30 Dec 2011 11:51:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=gLoayuEJAmQvDtSrF2TWJ81Hjj1DvYdUG7/FdJoTS3A=; b=QJtSNJuED35IA7M63qeZKmzAoGAyj/dR2cOyWhbByXIdgQiLPUdS4QwMG7XUEmCgLU+Cw/35+JSn6jvAq9KdL77PiW9Z342aB5ghd6L6lnHD64VTI/04QOC6V608XGVF; Original-Received: from dslc-082-082-166-232.pools.arcor-ip.net ([82.82.166.232] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1RgfgH-00035O-Dg; Fri, 30 Dec 2011 17:51:45 +0100 In-Reply-To: (Vyacheslav Gonakhchyan's message of "Fri, 30 Dec 2011 15:00:17 +0000") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Mail-Followup-To: Vyacheslav Gonakhchyan , "Eric M. Ludlam" , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147063 Archived-At: Vyacheslav Gonakhchyan writes: >>Could you please provide an example, showing what you're trying to >>complete and what member functions you would expect to appear? > Attached zip file with project. There are two markers in code(Tut.cpp): [...] Thanks; I could reproduce these issues. I think the main problem is with preprocessor macros in class definitions, like class _OgreExport Light : public MovableObject While you have defined _OgreExport in your project definition, this will only apply to your own project files, not to system headers. I think the easiest way to fix this is to use (add-to-list 'semantic-lex-c-preprocessor-symbol-file '"/usr/include/OGRE/OgrePlatform.h") You'll have to exit Emacs and delete all files in ~/.semanticdb to make Semantic reparse the headers. -David