From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20576 invoked by alias); 1 Sep 2016 18:36:47 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 20562 invoked by uid 89); 1 Sep 2016 18:36:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HCc:D*ca X-HELO: mail-lf0-f45.google.com Received: from mail-lf0-f45.google.com (HELO mail-lf0-f45.google.com) (209.85.215.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Sep 2016 18:36:37 +0000 Received: by mail-lf0-f45.google.com with SMTP id p41so48739681lfi.1 for ; Thu, 01 Sep 2016 11:36:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=b6spbw1x2nSHgPqElErQpJor+TdJVpDYVN5A4s49x1w=; b=Qs5YEICFXM9os+KumoqWjZk1LckYi/udfF1kZCLEF0G3TGU3+L7+SqG5SKDLqFI6/r uy3r+yE5n0wZ9mi8z+nZW9Yc0gWFAAiBOWlPzXiohSyZ14EF6esdON2cX+RlIsqOkC5e zm179cxQI50u6oEsyzueOys9RBtSTfPR/pFzFoKeFWh7Ari+31sVW0i0JhLtewmdn0TE Yk+FWdYGkgq/+o3HX3YM8CbmNeiKyc1XCl0+uwqxAFSpKqJrbbrcIfzU4nivRrli/dpO Lmipjaxv4E8Z4VGWbzLjJ6Bqvgi+9eloEDiwFILhIgpP3USA9umGc2l8rJe2J5WQHAEl gpVw== X-Gm-Message-State: AE9vXwMDV+TC8DIMthOsE5yQA9qKy1JWT56sk4SytrI/fNvMSZAopFwuCAUUtckMz07/kTpeJ+N7ukFT7U8c7Q== X-Received: by 10.46.5.15 with SMTP id 15mr5425646ljf.65.1472754994793; Thu, 01 Sep 2016 11:36:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.166.76 with HTTP; Thu, 1 Sep 2016 11:36:34 -0700 (PDT) In-Reply-To: <5479c5a0-a346-1718-5573-eeb4b19bc9db@redhat.com> References: <212bc30a-e6ad-886b-0881-8206dd91b933@redhat.com> <410fa84696e520ca3845c841fc7391b8@simark.ca> <5479c5a0-a346-1718-5573-eeb4b19bc9db@redhat.com> From: Andrew Pinski Date: Thu, 01 Sep 2016 18:36:00 -0000 Message-ID: Subject: Re: Go C++ only To: Pedro Alves Cc: Simon Marchi , GDB Development Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00009.txt.bz2 On Thu, Sep 1, 2016 at 11:22 AM, Pedro Alves wrote: > On 09/01/2016 07:07 PM, Simon Marchi wrote: > >> Are there some guidelines about which C++ features we can use or not? > > I think the biggest guideline so far is that people still want to build > gdb on systems with compilers that predate C++11, so we're stuck with > C++03 for the moment. > >> Perhaps some precisions about the coding style, for C++-specific >> constructs (e.g. initializer lists). > > List initialization is C++11, so it's out, at least for now. > >> I suppose we'll end up copying >> what GCC does for the most part, but it should be clear. > > Right, the proposal is to follow GCC's conventions: > > https://sourceware.org/gdb/wiki/cxx-conversion#Coding_conventions > > Naturally we'll need to update the coding standards > pages to mention C++ and point at that: > > https://sourceware.org/gdb/wiki/Internals%20Coding-Standards Note the only feature I want to use right now is bool instead of char or int were the value is a boolean. This is new code and back-porting is a simple change to char instead of bool so it is not normally a big issue. Thanks, Andrew Pinski > > Thanks, > Pedro Alves >