From patchwork Mon Feb 6 00:37:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 139672 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C25D6B7240 for ; Mon, 6 Feb 2012 11:37:51 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1329093473; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=Gbc8klx VDS/dvk5jniOoiE/nMuk=; b=Loh4PgbS8laBWsxcd9PqHfpitKGg9Ctosbinbj2 PoBfJK7Uy1bGh4COh/V3gaITtsqm4YbNsRiQzGoiMeT/dk/PoSr4rP6uDkPGRNeB RoMEBqi2L5lzWblxQ3iu+PGFIZi339+n1gg+Bys+njBT8Abje0wmgRoi29zausYc 8a2Y= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=BXlvdik50mlDqRrrnzksnJUBTm43QhlbAzQx6h6H9dKNM6KfAKJZKxhj6Iw5W/ 5DmjLR8OvaMq5Atx4FFIhbXWPl0FFrJ1KTtIQ+5iTMHqULlVsKlQjxQriFdxq7UM wT2/mCq+Z671WRTSLZu/7ZYlu8fmIBjyYzwx59dIr+fI8=; Received: (qmail 23172 invoked by alias); 6 Feb 2012 00:37:48 -0000 Received: (qmail 23147 invoked by uid 22791); 6 Feb 2012 00:37:46 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f47.google.com (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Feb 2012 00:37:25 +0000 Received: by lahc1 with SMTP id c1so2824205lah.20 for ; Sun, 05 Feb 2012 16:37:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.25.33 with SMTP id z1mr4282778lbf.7.1328488643723; Sun, 05 Feb 2012 16:37:23 -0800 (PST) Received: by 10.112.39.42 with HTTP; Sun, 5 Feb 2012 16:37:23 -0800 (PST) Date: Mon, 6 Feb 2012 00:37:23 +0000 Message-ID: Subject: [patch] document which edition of Effective C++ is used for -Weffc++ From: Jonathan Wakely To: gcc-patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org PR c++/48680 * doc/invoke.texi (C++ Dialect Options): Use @option markup for -Weffc++ and specify guidelines come from second edition. Tested with 'make doc html' OK for trunk? diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6105710..6c61e53 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2437,7 +2437,7 @@ the compiler to never throw an exception. Warn when a class has virtual functions and accessible non-virtual destructor, in which case it would be possible but unsafe to delete an instance of a derived class through a pointer to the base class. -This warning is also enabled if -Weffc++ is specified. +This warning is also enabled if @option{-Weffc++} is specified. @item -Wreorder @r{(C++ and Objective-C++ only)} @opindex Wreorder @@ -2467,7 +2467,7 @@ The following @option{-W@dots{}} options are not affected by @option{-Wall}. @opindex Weffc++ @opindex Wno-effc++ Warn about violations of the following style guidelines from Scott Meyers' -@cite{Effective C++} book: +@cite{Effective C++, Second Edition} book: @itemize @bullet @item