From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lender Newsgroups: gmane.emacs.help Subject: Semantic with C++ Date: Fri, 05 Jul 2013 23:55:30 +0800 Message-ID: <51D6EC72.2090807@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373041518 27644 80.91.229.3 (5 Jul 2013 16:25:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 16:25:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 05 18:25:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uv8ox-0001rO-18 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 18:25:19 +0200 Original-Received: from localhost ([::1]:37053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv8ow-00081T-JB for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 12:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv8Kz-0004S7-PN for help-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:54:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv8Kw-00004q-Vl for help-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:54:21 -0400 Original-Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:56685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv8Kw-0008WH-PC for help-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:54:18 -0400 Original-Received: by mail-pa0-f42.google.com with SMTP id rl6so2379554pac.1 for ; Fri, 05 Jul 2013 08:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=9QRP7LmNfOCqJSJ64Z7t1CwwqvIzMebrEXW0RRlZ1KE=; b=b+ufBK8MEvZRm50no8UP9gZYGU55Cm1yTyw/6Y+i0mKYLmDgY24a5TSFeDO7QbQRG1 MHVHJkfEZP/B7bgeZEZkdeOuOhSPwZBWAy6hbWo8R9U8W6wvhNwZ1cjmxXLfvRc44BDj G4EecBgUr7axYK+qocIqxQUeUybeXp8+uhfou0hodPMfFrUJFdoXIrozKBbKR/lQksYs S5fyTIUoX7gJlGoH0OgVynTA7u/t9eBLOzCoJXoLwLMAnjxtFpATT2U15x2lJpsv4PyZ 8sCZM7ueCz5Ch82DKtHUUFp+E1XkivB1BcuwLgblvrU/oM+dNl5q1RNK9N0wEOuIYUvS tBCQ== X-Received: by 10.66.163.7 with SMTP id ye7mr12182458pab.24.1373039657068; Fri, 05 Jul 2013 08:54:17 -0700 (PDT) Original-Received: from hex.earl ([14.108.22.197]) by mx.google.com with ESMTPSA id kq2sm8967768pab.19.2013.07.05.08.54.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Jul 2013 08:54:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22a X-Mailman-Approved-At: Fri, 05 Jul 2013 12:25:03 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91958 Archived-At: Hi guys: I get a problem when i use the built-in cedet to write C++ code. It is that cedet can not complete the standard C++ class such as string and vector ... But cedet can complete the classes defined by me.And there is no data in the semanticdb directory about C++ standard headers, I think it cases the problem but I don't know what to do to make it work! Here is my cedet setting: (require 'cedet) (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode global-semanticdb-minor-mode global-semantic-idle-summary-mode global-semantic-mru-bookmark-mode)) (semantic-mode 1) (global-semantic-decoration-mode) (require 'semantic/bovine/gcc) (require 'semantic/bovine/c) (defconst cedet-user-include-dirs (list ".." "../include" "../inc" "../common" "../public" "." "../.." "../../include" "../../inc" "../../common" "../../public")) (setq cedet-sys-include-dirs (list "/usr/include" "/usr/include/bits" "/usr/include/gnu" "/usr/local/include")) (let ((include-dirs cedet-user-include-dirs)) (setq include-dirs (append include-dirs cedet-sys-include-dirs)) (mapc (lambda (dir) (semantic-add-system-include dir 'c++-mode) (semantic-add-system-include dir 'c-mode)) include-dirs)) (setq semantic-c-dependency-system-include-path "/usr/include/") (setq semanticdb-default-save-directory (expand-file-name "~/.emacs.d/semanticdb")) (provide 'cedet-setting) Is there anyone have ideas about this problem? Thank you!!!